sprockets_terser_with_source_maps 1.1.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4480da4d60e1d2d7c44e4e2d407f8225362cd0cec031c1ac258b7952f110cf16
4
- data.tar.gz: 07d9974cc54bfb4179b2c56c703ead0022c1e1646e5457551b9adb1211b9fb03
3
+ metadata.gz: 7461ad60908917ec9d0064cd636610f3e40a36195a946aa285c9e8ed9ae43c56
4
+ data.tar.gz: 7bfcd21e6be326b2e9d5effa04f8bc74af0175f4f499d6676bbd0a116f861061
5
5
  SHA512:
6
- metadata.gz: acea96c9cbaea22ceccfbf23ef6eb7474b23cd0326fb9f4e03e9b62c48d59318ee99240c14e279bf75bd269810ecfeec06647420acfd3378bae4c17122dd107b
7
- data.tar.gz: ae442f86dcb7f6fd33d16c0165a25bd5b53a30113da7ed6c2b09eb4587ba8d0a93b4d53baf6d53c9f9be0f0dcc772a7b675ee9fdf10ce11f48d5f1408f8721cb
6
+ metadata.gz: 3743e09ace0542390f9659586e47c939db9e368ccbd13abef341522548e83be1cc6f67b6d07dfd9df227ecaecc7946a400402ffa14a85ed93bfec202c0966d1f
7
+ data.tar.gz: 3f18985dcc531bc9235048890e3444438b56987158780e2d7104a036ac3be3dbf8a253270bd70fb8509541fa335564a0faf178d9e0d3799d9b724045d1265d53
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0 (27 April 2024)
4
+
5
+ - Terser dependency to ~> 1.2
6
+
7
+ ## 2.0.0 (31 March 2024)
8
+
9
+ - Ruby required >= 2.6
10
+ - Compressor output as hash with data key
11
+ - Ruby 3.3.x added to CI matrix
12
+ - Fix GHA warning for nodejs 16 deprecation
13
+ - Documentation uri by version
14
+
3
15
  ## 1.1.0 (6 October 2023)
4
16
 
5
17
  - Ruby required >= 2.2
@@ -13,7 +13,7 @@ module SprocketsTerserWithSourceMaps
13
13
  @logger = Logger.new($stdout)
14
14
  @logger.level = Logger::INFO
15
15
  @options = options.merge(Rails.application.config.assets.terser.to_h)
16
- super @options
16
+ super(@options)
17
17
  end
18
18
 
19
19
  def call(input)
@@ -45,7 +45,9 @@ module SprocketsTerserWithSourceMaps
45
45
  'js.map'
46
46
  )
47
47
 
48
- compressed_js.concat "\n//# sourceMappingURL=#{sourcemap_url}\n"
48
+ js = compressed_js.concat "\n//# sourceMappingURL=#{sourcemap_url}\n"
49
+
50
+ { data: js, map: sourcemap }
49
51
  end
50
52
 
51
53
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SprocketsTerserWithSourceMaps
4
- VERSION = '1.1.0'
4
+ VERSION = '2.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets_terser_with_source_maps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Menéndez Rizo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-07 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets-rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.0
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.0
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -127,10 +127,8 @@ homepage: https://github.com/javier-menendez/sprockets_terser_with_source_maps
127
127
  licenses:
128
128
  - MIT
129
129
  metadata:
130
- homepage_uri: https://github.com/javier-menendez/sprockets_terser_with_source_maps
131
- source_code_uri: https://github.com/javier-menendez/sprockets_terser_with_source_maps
132
130
  changelog_uri: https://github.com/javier-menendez/sprockets_terser_with_source_maps/blob/main/CHANGELOG.md
133
- documentation_uri: https://www.rubydoc.info/gems/sprockets_terser_with_source_maps
131
+ documentation_uri: https://www.rubydoc.info/gems/sprockets_terser_with_source_maps/2.1.0
134
132
  bug_tracker_uri: https://github.com/javier-menendez/sprockets_terser_with_source_maps/issues
135
133
  rubygems_mfa_required: 'true'
136
134
  post_install_message:
@@ -141,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
139
  requirements:
142
140
  - - ">="
143
141
  - !ruby/object:Gem::Version
144
- version: 2.2.0
142
+ version: 2.6.0
145
143
  required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements:
147
145
  - - ">="