diff --git a/CHANGELOG.md b/CHANGELOG.md index ca7c327..ce27715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.0.4](https://github.com/opal/opal-sprockets/compare/v1.0.3...v1.0.4) + +*3 August 2024* + +- Fix issue with upgrading gems breaking Opal compilation in Rails applications due to incorrect Sprockets caching + +## [1.0.3](https://github.com/opal/opal-sprockets/compare/v1.0.2...v1.0.3) + +*24 December 2024* + +- Supporting Ruby 3.1 + ## [1.0.2](https://github.com/opal/opal-sprockets/compare/v1.0.1...v1.0.2) *24 August 2021* diff --git a/lib/opal/sprockets/processor.rb b/lib/opal/sprockets/processor.rb index f3638aa..20bddc5 100644 --- a/lib/opal/sprockets/processor.rb +++ b/lib/opal/sprockets/processor.rb @@ -11,7 +11,8 @@ class Opal::Sprockets::Processor @@cache_key = nil def self.cache_key - @@cache_key ||= ['Opal', Opal::VERSION, Opal::Config.config].to_json.freeze + gem_config = Gem.loaded_specs.map {|gem_key, gem_spec| [gem_spec.name, gem_spec.version.to_s] } + @@cache_key ||= ['Opal', Opal::VERSION, Opal::Config.config, gem_config].to_json.freeze end def self.reset_cache_key! diff --git a/lib/opal/sprockets/version.rb b/lib/opal/sprockets/version.rb index 7426b8d..01eb14f 100644 --- a/lib/opal/sprockets/version.rb +++ b/lib/opal/sprockets/version.rb @@ -1,5 +1,5 @@ module Opal module Sprockets - VERSION = '1.0.3' + VERSION = '1.0.4' end end diff --git a/opal-sprockets.gemspec b/opal-sprockets.gemspec index 31c762d..7a0d083 100644 --- a/opal-sprockets.gemspec +++ b/opal-sprockets.gemspec @@ -3,7 +3,7 @@ require_relative 'lib/opal/sprockets/version' Gem::Specification.new do |spec| spec.name = 'opal-sprockets' spec.version = Opal::Sprockets::VERSION - spec.authors = ['Elia Schito', 'Adam Beynon'] + spec.authors = ['Elia Schito', 'Adam Beynon', 'Andy Maleh'] spec.email = 'elia@schito.me' spec.summary = 'Sprockets support for Opal.'