From 48b3dd36ff59882dee94da74c363de762674a0a0 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Fri, 19 Feb 2021 12:42:56 +0100 Subject: [PATCH] Release v1.0 --- CHANGELOG.md | 11 +++++++++++ lib/opal/sprockets/version.rb | 9 +-------- opal-sprockets.gemspec | 4 ++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d445fb2..ef8df94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.0.0](https://github.com/opal/opal-sprockets/compare/v0.4.9.1.0.3.7...v1.0.0) + +*19 February 2021* + +- Bump the supported sprockets version to v4 +- Add support for Opal v1.1 +- Only support Ruby comments in directive preprocessor (no one should have ever used "//", ["/*", or "*/") +- Fix the namespaces and move everything under Opal::Sprockets (the legacy namespaces will be dropped in version 1.1) +- The version schema has been simplified, not expecting sprockets to have major earthquakes like it was for v4 + + ## [v0.4.9](https://github.com/opal/opal-sprockets/compare/v0.4.8.1.0.3.7...v0.4.9.1.0.3.7) *11 September 2020* diff --git a/lib/opal/sprockets/version.rb b/lib/opal/sprockets/version.rb index 3c30093..970e4d6 100644 --- a/lib/opal/sprockets/version.rb +++ b/lib/opal/sprockets/version.rb @@ -1,12 +1,5 @@ module Opal module Sprockets - BASE_VERSION = '0.5.0' - OPAL_VERSION = '1.0.0' - SPROCKETS_VERSION = '4.0' - - # Just keep the first two segments of dependencies' versions - v = -> v { v.split('.')[0..1].compact.join('.') } - - VERSION = "#{BASE_VERSION}.#{v[OPAL_VERSION]}.#{v[SPROCKETS_VERSION]}" + VERSION = '1.0.0' end end diff --git a/opal-sprockets.gemspec b/opal-sprockets.gemspec index a1b1e1c..d0b3196 100644 --- a/opal-sprockets.gemspec +++ b/opal-sprockets.gemspec @@ -26,8 +26,8 @@ Gem::Specification.new do |spec| spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency 'sprockets', "~> #{Opal::Sprockets::SPROCKETS_VERSION}" - spec.add_dependency 'opal', [">= #{Opal::Sprockets::OPAL_VERSION}", "< 1.2"] + spec.add_dependency 'sprockets', "~> 4.0" + spec.add_dependency 'opal', [">= 1.0", "< 1.2"] spec.add_dependency 'tilt', '>= 1.4' spec.add_development_dependency 'rake'