hanami-assets 2.3.0 → 3.0.0.rc1

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: 6ee75ee56db9dd5b4d6db04887657a02d99ce43bf49c78c4baf70733752c76ce
4
- data.tar.gz: d43d55e58b795a6e23b5eb9847e4345b570ccee97147e6bcc0c36979455ee92c
3
+ metadata.gz: bb068dfbb3f66779fb4f3e7f90851e9dfceb3f90b1179f5086710f394eed2024
4
+ data.tar.gz: 9fda06a5aebe4d0c6f5eb4bd11209d8584359b38b1e3cfcb095d40b7349d4436
5
5
  SHA512:
6
- metadata.gz: a13afd29057b8d7b4ab179d09023b6e2df8a15ef0156dd85895d37ca05c7483cfab5aa9f8ac6670706dd3f9910d812403e4bb42b2aba28ec5842ab88bb1a5421
7
- data.tar.gz: 5c846cc61e83e8ddd8c5f1fa1ddc8e886b5fcfd7d3389f98e6bf56a9ee23bec946eb4ca4580285865ff1749826d109836ef82f685d153e088d74da9eea71f749
6
+ metadata.gz: ee518c103898cfde26ac0473841973dc38f3a6398dedab2d479b62bc43e7ad01757912734357bd9a48a28bf697cfbf42fdbfed3f9aa744f293afa9f16d60c53e
7
+ data.tar.gz: db86423cbb3964390e9c9b52fb16cc4a266aacd6110c0db4888118a0a7597c32a4a1e81f639b70a304f88431c59481dd658ae2886acae5cbcd8da4e1789f89e0
data/CHANGELOG.md CHANGED
@@ -1,187 +1,336 @@
1
- # Hanami::Assets
2
- Assets management for Ruby web applications
1
+ # Changelog
3
2
 
4
- ## v2.3.0 - 2025-11-12
3
+ All notable changes to this project will be documented in this file.
5
4
 
6
- ## v2.3.0.beta2 - 2025-10-17
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
20
+ ### Security
21
+
22
+ [Unreleased]: https://github.com/hanami/assets/compare/v2.3.0...HEAD
23
+
24
+ ## [3.0.0.rc1] - 2026-06-16
25
+
26
+ ### Added
27
+
28
+ - Add [specification](SPEC.md) for compliant asset bundlers. (@timriley in #150)
7
29
 
8
30
  ### Changed
9
31
 
10
- - Drop support for Ruby 3.1
32
+ - Require Ruby 3.3 or newer.
33
+
34
+ [3.0.0.rc1]: https://github.com/hanami/assets/compare/v2.3.0...v3.0.0.rc1
35
+
36
+ ## [2.3.0] - 2025-11-12
37
+
38
+ [2.3.0]: https://github.com/hanami/assets/compare/v2.3.0.beta2...v2.3.0
39
+
40
+ ## [2.3.0.beta2] - 2025-10-17
41
+
42
+ ### Changed
43
+
44
+ - Drop support for Ruby 3.1.
45
+
46
+ [2.3.0.beta2]: https://github.com/hanami/assets/compare/v2.3.0.beta1...v2.3.0.beta2
47
+
48
+ ## [2.3.0.beta1] - 2025-10-03
49
+
50
+ [2.3.0.beta1]: https://github.com/hanami/assets/compare/v2.2.0...v2.3.0.beta1
51
+
52
+ ## [2.2.0] - 2024-11-05
11
53
 
12
- ## v2.3.0.beta1 - 2025-10-03
54
+ [2.2.0]: https://github.com/hanami/assets/compare/v2.2.0.rc1...v2.2.0
13
55
 
14
- ## v2.2.0 - 2024-11-05
56
+ ## [2.2.0.rc1] - 2024-10-29
15
57
 
16
- ## v2.2.0.rc1 - 2024-10-29
58
+ [2.2.0.rc1]: https://github.com/hanami/assets/compare/v2.2.0.beta2...v2.2.0.rc1
17
59
 
18
- ## v2.2.0.beta2 - 2024-09-25
60
+ ## [2.2.0.beta2] - 2024-09-25
19
61
 
20
- ## v2.2.0.beta1 - 2024-07-16
62
+ [2.2.0.beta2]: https://github.com/hanami/assets/compare/v2.2.0.beta1...v2.2.0.beta2
63
+
64
+ ## [2.2.0.beta1] - 2024-07-16
21
65
 
22
66
  ### Changed
23
67
 
24
- - Drop support for Ruby 3.0
68
+ - Drop support for Ruby 3.0.
69
+
70
+ [2.2.0.beta1]: https://github.com/hanami/assets/compare/v2.1.0...v2.2.0.beta1
71
+
72
+ ## [2.1.0] - 2024-02-27
73
+
74
+ [2.1.0]: https://github.com/hanami/assets/compare/v2.1.0.rc3...v2.1.0
25
75
 
26
- ## v2.1.0 - 2024-02-27
76
+ ## [2.1.0.rc3] - 2024-02-16
27
77
 
28
- ## v2.1.0.rc3 - 2024-02-16
29
78
  ### Changed
30
- - [Tim Riley] Require a `root:` argument when initializing `Hanami::Assets`. This should be the directory containing the compiled assets and their `assets.json` manifest file.
31
- - [Tim Riley] Removed `manifest_path` setting; the manifest path is no longer user-configurable.
32
- - [Tim Riley] Replaced `package_manager_run_command` setting with `node_command` setting.
33
- - [Tim Riley] Removed unused `sources`, `entry_point_patterns` and `destination` settings.
34
- - [Tim Riley] Removed `bin/hanami-assets` executable.
35
79
 
36
- ## v2.1.0.rc2 - 2023-11-08
80
+ - Require a `root:` argument when initializing `Hanami::Assets`. This should be the directory containing the compiled assets and their `assets.json` manifest file. (Tim Riley)
81
+ - Removed `manifest_path` setting; the manifest path is no longer user-configurable. (Tim Riley)
82
+ - Replaced `package_manager_run_command` setting with `node_command` setting. (Tim Riley)
83
+ - Removed unused `sources`, `entry_point_patterns` and `destination` settings. (Tim Riley)
84
+ - Removed `bin/hanami-assets` executable. (Tim Riley)
85
+
86
+ [2.1.0.rc3]: https://github.com/hanami/assets/compare/v2.1.0.rc2...v2.1.0.rc3
87
+
88
+ ## [2.1.0.rc2] - 2023-11-08
89
+
90
+ [2.1.0.rc2]: https://github.com/hanami/assets/compare/v2.1.0.rc1...v2.1.0.rc2
37
91
 
38
- ## v2.1.0.rc1 - 2023-11-01
92
+ ## [2.1.0.rc1] - 2023-11-01
93
+
94
+ [2.1.0.rc1]: https://github.com/hanami/assets/compare/v2.1.0.beta2...v2.1.0.rc1
95
+
96
+ ## [2.1.0.beta2] - 2023-10-04
39
97
 
40
- ## v2.1.0.beta2 - 2023-10-04
41
98
  ### Added
42
- - [Luca Guidi] Official support for Ruby: Ruby 3.1, and 3.2
99
+
100
+ - Official support for Ruby: Ruby 3.1, and 3.2. (Luca Guidi)
43
101
 
44
102
  ### Changed
45
- - [Luca Guidi] Drop support for Ruby: MRI 2 and JRuby
46
- - [Luca Guidi] This gem now requires a working Node and Yarn installation
47
- - [Tim Riley] Changed the gem to load using Zeitwerk, via `require "hanami/assets"`
48
- - [Tim Riley] Changed `Hanami::Assets` to a class, initialized with a `Hanami::Assets::Config` (see below) and providing a `#[]` method returning a `Hanami::Assets::Asset` instance per asset.
49
- - [Tim Riley] Moved `Hanami::Assets::Helpers` to `Hanami::Helpers::AssetsHelper` in the hanami gem (along with various helper methods renamed; see the hanami CHANGELOG for details)
50
- - [Luca Guidi] Renamed `Hanami::Assets::Configuration` to `Config`
51
- - [Luca Guidi] Removed `Hanami::Assets.configure`, use `Hanami::Assets::Config.new`
52
- - [Luca Guidi] Removed `Hanami::Assets.deploy`, `.precompile`, `.load!` as precompile process is now handled via JavaScript
53
- - [Luca Guidi] Removed `Hanami::Assets.sources`, as third-party libraries should be handled via Yarn
54
- - [Luca Guidi] Removed `Hanami::Assets::Config#fingerprint`, as fingerprinting will be always activated
55
- - [Luca Guidi] Changed `Hanami::Assets::Config#subresource_integrity`. To activate the feature, pass an array of algorithms to use (e.g. `config.subresource_integrity = ["sha-384"]`)
56
- - [Luca Guidi] Removed `Hanami::Assets::Config#cdn`. To activate the feature, pass the CDN base URL to the initializer of the configuration (`base_url` keyword argument).
57
- - [Luca Guidi] Removed `Hanami::Assets::Config#javascript_compressor` and `stylesheet_compressor`, as the compression is now handled via JavaScript
58
- - [Luca Guidi] Removed `Hanami::Assets::Config#scheme`, `#host`, `#port`, and `#prefix`. Use `base_url` keyword argument to pass to configuration initializer
59
- - [Luca Guidi] Removed `Hanami::Assets::Config#root`, `#public_directory`, `#destination_directory`, and `#manifest` as they will now looked up via conventions
60
- - [Luca Guidi] Moved `Hanami::Assets::Precompiler` and `Watcher` to `hanami-cli`
61
-
62
- ## v1.3.5 - 2021-01-14
103
+
104
+ - Drop support for Ruby: MRI 2 and JRuby. (Luca Guidi)
105
+ - This gem now requires a working Node and Yarn installation. (Luca Guidi)
106
+ - Changed the gem to load using Zeitwerk, via `require "hanami/assets"`. (Tim Riley)
107
+ - Changed `Hanami::Assets` to a class, initialized with a `Hanami::Assets::Config` (see below) and providing a `#[]` method returning a `Hanami::Assets::Asset` instance per asset. (Tim Riley)
108
+ - Moved `Hanami::Assets::Helpers` to `Hanami::Helpers::AssetsHelper` in the hanami gem (along with various helper methods renamed; see the hanami CHANGELOG for details). (Tim Riley)
109
+ - Renamed `Hanami::Assets::Configuration` to `Config`. (Luca Guidi)
110
+ - Removed `Hanami::Assets.configure`, use `Hanami::Assets::Config.new`. (Luca Guidi)
111
+ - Removed `Hanami::Assets.deploy`, `.precompile`, `.load!` as precompile process is now handled via JavaScript. (Luca Guidi)
112
+ - Removed `Hanami::Assets.sources`, as third-party libraries should be handled via Yarn. (Luca Guidi)
113
+ - Removed `Hanami::Assets::Config#fingerprint`, as fingerprinting will be always activated. (Luca Guidi)
114
+ - Changed `Hanami::Assets::Config#subresource_integrity`. To activate the feature, pass an array of algorithms to use (e.g. `config.subresource_integrity = ["sha-384"]`). (Luca Guidi)
115
+ - Removed `Hanami::Assets::Config#cdn`. To activate the feature, pass the CDN base URL to the initializer of the configuration (`base_url` keyword argument). (Luca Guidi)
116
+ - Removed `Hanami::Assets::Config#javascript_compressor` and `stylesheet_compressor`, as the compression is now handled via JavaScript. (Luca Guidi)
117
+ - Removed `Hanami::Assets::Config#scheme`, `#host`, `#port`, and `#prefix`. Use `base_url` keyword argument to pass to configuration initializer. (Luca Guidi)
118
+ - Removed `Hanami::Assets::Config#root`, `#public_directory`, `#destination_directory`, and `#manifest` as they will now looked up via conventions. (Luca Guidi)
119
+ - Moved `Hanami::Assets::Precompiler` and `Watcher` to `hanami-cli`. (Luca Guidi)
120
+
121
+ [2.1.0.beta2]: https://github.com/hanami/assets/compare/v1.3.5...v2.1.0.beta2
122
+
123
+ ## [1.3.5] - 2021-01-14
124
+
63
125
  ### Added
64
- - [Luca Guidi] Official support for Ruby: MRI 3.0
65
- - [Luca Guidi] Official support for Ruby: MRI 2.7
66
126
 
67
- ## v1.3.4 - 2019-10-11
127
+ - Official support for Ruby: MRI 3.0. (Luca Guidi)
128
+ - Official support for Ruby: MRI 2.7. (Luca Guidi)
129
+
130
+ [1.3.5]: https://github.com/hanami/assets/compare/v1.3.4...v1.3.5
131
+
132
+ ## [1.3.4] - 2019-10-11
133
+
68
134
  ### Fixed
69
- - [unleashy] Precompile assets using binary mode to ensure compatibility with Windows
70
135
 
71
- ## v1.3.3 - 2019-09-13
136
+ - Precompile assets using binary mode to ensure compatibility with Windows. (unleashy)
137
+
138
+ [1.3.4]: https://github.com/hanami/assets/compare/v1.3.3...v1.3.4
139
+
140
+ ## [1.3.3] - 2019-09-13
141
+
72
142
  ### Fixed
73
- - [Landon Grindheim] Lazily load `sassc` only when required
74
- - [Landon Grindheim] Ensure assets precompilation to not crash when SASS stylesheet doesn't have dependencies
75
143
 
76
- ## v1.3.2 - 2019-08-02
144
+ - Lazily load `sassc` only when required. (Landon Grindheim)
145
+ - Ensure assets precompilation to not crash when SASS stylesheet doesn't have dependencies. (Landon Grindheim)
146
+
147
+ [1.3.3]: https://github.com/hanami/assets/compare/v1.3.2...v1.3.3
148
+
149
+ ## [1.3.2] - 2019-08-02
150
+
77
151
  ### Added
78
- - [Landon Grindheim & Sean Collins] Added support for `sassc` gem, because `sass` is no longer maintained
79
152
 
80
- ## v1.3.1 - 2019-01-18
153
+ - Added support for `sassc` gem, because `sass` is no longer maintained. (Landon Grindheim & Sean Collins)
154
+
155
+ [1.3.2]: https://github.com/hanami/assets/compare/v1.3.1...v1.3.2
156
+
157
+ ## [1.3.1] - 2019-01-18
158
+
81
159
  ### Added
82
- - [Luca Guidi] Official support for Ruby: MRI 2.6
83
- - [Luca Guidi] Support `bundler` 2.0+
160
+
161
+ - Official support for Ruby: MRI 2.6. (Luca Guidi)
162
+ - Support `bundler` 2.0+. (Luca Guidi)
84
163
 
85
164
  ### Fixed
86
- - [Luca Guidi] Make optional nested assets feature to maintain backward compatibility with `1.2.x`
87
165
 
88
- ## v1.3.0 - 2018-10-24
166
+ - Make optional nested assets feature to maintain backward compatibility with `1.2.x`. (Luca Guidi)
167
+
168
+ [1.3.1]: https://github.com/hanami/assets/compare/v1.3.0...v1.3.1
169
+
170
+ ## [1.3.0] - 2018-10-24
171
+
172
+ [1.3.0]: https://github.com/hanami/assets/compare/v1.3.0.beta1...v1.3.0
173
+
174
+ ## [1.3.0.beta1] - 2018-08-08
89
175
 
90
- ## v1.3.0.beta1 - 2018-08-08
91
176
  ### Added
92
- - [Paweł Świątkowski] Preserve directory structure of assets at the precompile time.
93
- - [Luca Guidi] Official support for JRuby 9.2.0.0
94
177
 
95
- ## v1.2.0 - 2018-04-11
178
+ - Preserve directory structure of assets at the precompile time. (Paweł Świątkowski)
179
+ - Official support for JRuby 9.2.0.0. (Luca Guidi)
180
+
181
+ [1.3.0.beta1]: https://github.com/hanami/assets/compare/v1.2.0...v1.3.0.beta1
182
+
183
+ ## [1.2.0] - 2018-04-11
184
+
185
+ [1.2.0]: https://github.com/hanami/assets/compare/v1.2.0.rc2...v1.2.0
186
+
187
+ ## [1.2.0.rc2] - 2018-04-06
96
188
 
97
- ## v1.2.0.rc2 - 2018-04-06
189
+ [1.2.0.rc2]: https://github.com/hanami/assets/compare/v1.2.0.rc1...v1.2.0.rc2
98
190
 
99
- ## v1.2.0.rc1 - 2018-03-30
191
+ ## [1.2.0.rc1] - 2018-03-30
100
192
 
101
- ## v1.2.0.beta2 - 2018-03-23
193
+ [1.2.0.rc1]: https://github.com/hanami/assets/compare/v1.2.0.beta2...v1.2.0.rc1
194
+
195
+ ## [1.2.0.beta2] - 2018-03-23
196
+
197
+ [1.2.0.beta2]: https://github.com/hanami/assets/compare/v1.2.0.beta1...v1.2.0.beta2
198
+
199
+ ## [1.2.0.beta1] - 2018-02-28
102
200
 
103
- ## v1.2.0.beta1 - 2018-02-28
104
201
  ### Added
105
- - [Luca Guidi] Collect assets informations for Early Hints (103)
106
- - [Luca Guidi] Send automatically javascripts and stylesheets via Push Promise / Early Hints
107
- - [Luca Guidi] Add the ability to send audio, video, and generic assets for Push Promise / Early Hints
108
202
 
109
- ## v1.1.1 - 2018-02-27
203
+ - Collect assets informations for Early Hints (103). (Luca Guidi)
204
+ - Send automatically javascripts and stylesheets via Push Promise / Early Hints. (Luca Guidi)
205
+ - Add the ability to send audio, video, and generic assets for Push Promise / Early Hints. (Luca Guidi)
206
+
207
+ [1.2.0.beta1]: https://github.com/hanami/assets/compare/v1.1.1...v1.2.0.beta1
208
+
209
+ ## [1.1.1] - 2018-02-27
210
+
110
211
  ### Added
111
- - [Luca Guidi] Official support for Ruby: MRI 2.5
212
+
213
+ - Official support for Ruby: MRI 2.5. (Luca Guidi)
112
214
 
113
215
  ### Fixed
114
- - [Malina Sulca] Print `href` and `src` first in output HTML
115
216
 
116
- ## v1.1.0 - 2017-10-25
217
+ - Print `href` and `src` first in output HTML. (Malina Sulca)
218
+
219
+ [1.1.1]: https://github.com/hanami/assets/compare/v1.1.0...v1.1.1
220
+
221
+ ## [1.1.0] - 2017-10-25
222
+
117
223
  ### Fixed
118
- - [Luca Guidi] Don't let `#javascript` and `#stylesheet` helpers to append file extension if the URL contains a query string
119
224
 
120
- ## v1.1.0.rc1 - 2017-10-16
225
+ - Don't let `#javascript` and `#stylesheet` helpers to append file extension if the URL contains a query string. (Luca Guidi)
226
+
227
+ [1.1.0]: https://github.com/hanami/assets/compare/v1.1.0.rc1...v1.1.0
228
+
229
+ ## [1.1.0.rc1] - 2017-10-16
230
+
231
+ [1.1.0.rc1]: https://github.com/hanami/assets/compare/v1.1.0.beta3...v1.1.0.rc1
232
+
233
+ ## [1.1.0.beta3] - 2017-10-04
234
+
235
+ [1.1.0.beta3]: https://github.com/hanami/assets/compare/v1.1.0.beta2...v1.1.0.beta3
236
+
237
+ ## [1.1.0.beta2] - 2017-10-03
238
+
239
+ [1.1.0.beta2]: https://github.com/hanami/assets/compare/v1.1.0.beta1...v1.1.0.beta2
240
+
241
+ ## [1.1.0.beta1] - 2017-08-11
242
+
243
+ [1.1.0.beta1]: https://github.com/hanami/assets/compare/v1.0.0...v1.1.0.beta1
121
244
 
122
- ## v1.1.0.beta3 - 2017-10-04
245
+ ## [1.0.0] - 2017-04-06
123
246
 
124
- ## v1.1.0.beta2 - 2017-10-03
247
+ [1.0.0]: https://github.com/hanami/assets/compare/v1.0.0.rc1...v1.0.0
125
248
 
126
- ## v1.1.0.beta1 - 2017-08-11
249
+ ## [1.0.0.rc1] - 2017-03-31
127
250
 
128
- ## v1.0.0 - 2017-04-06
251
+ [1.0.0.rc1]: https://github.com/hanami/assets/compare/v1.0.0.beta2...v1.0.0.rc1
129
252
 
130
- ## v1.0.0.rc1 - 2017-03-31
253
+ ## [1.0.0.beta2] - 2017-03-17
131
254
 
132
- ## v1.0.0.beta2 - 2017-03-17
255
+ [1.0.0.beta2]: https://github.com/hanami/assets/compare/v1.0.0.beta1...v1.0.0.beta2
256
+
257
+ ## [1.0.0.beta1] - 2017-02-14
133
258
 
134
- ## v1.0.0.beta1 - 2017-02-14
135
259
  ### Added
136
- - [Luca Guidi] Official support for Ruby: MRI 2.4
137
260
 
138
- ## v0.4.0 - 2016-11-15
139
- ### Fixed
140
- - [Luca Guidi] Ensure `NullManifest` to be pretty printable
261
+ - Official support for Ruby: MRI 2.4. (Luca Guidi)
262
+
263
+ [1.0.0.beta1]: https://github.com/hanami/assets/compare/v0.4.0...v1.0.0.beta1
264
+
265
+ ## [0.4.0] - 2016-11-15
141
266
 
142
267
  ### Changed
143
- - [Luca Guidi] Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+
144
- - [Sean Collins] Rename digest into fingerprint
145
268
 
146
- ## v0.3.0 - 2016-07-22
147
- ### Added
148
- - [Matthew Gibbons & Sean Collins] Subresource Integrity (SRI)
149
- - [Matthew Gibbons & Sean Collins] Allow `javascript` and `stylesheet` helpers to accept a Hash representing HTML attributes. Eg. `<%= javascript 'application', async: true %>`
269
+ - Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+. (Luca Guidi)
270
+ - Rename digest into fingerprint. (Sean Collins)
150
271
 
151
272
  ### Fixed
152
- - [Alexander Gräfe] Safely precompile assets from directories with a dot in their name.
153
- - [Luca Guidi] Detect changes for Sass/SCSS dependencies.
154
- - [Maxim Dorofienko & Luca Guidi] Preserve static assets under public directory, by removing only assets directory and manifest at the precompile time.
273
+
274
+ - Ensure `NullManifest` to be pretty printable. (Luca Guidi)
275
+
276
+ [0.4.0]: https://github.com/hanami/assets/compare/v0.3.0...v0.4.0
277
+
278
+ ## [0.3.0] - 2016-07-22
279
+
280
+ ### Added
281
+
282
+ - Subresource Integrity (SRI). (Matthew Gibbons & Sean Collins)
283
+ - Allow `javascript` and `stylesheet` helpers to accept a Hash representing HTML attributes. Eg. `<%= javascript 'application', async: true %>`. (Matthew Gibbons & Sean Collins)
155
284
 
156
285
  ### Changed
157
- – [Luca Guidi] Drop support for Ruby 2.0 and 2.1. Official support for JRuby 9.0.5.0+.
158
- - [Luca Guidi] Don't create digest version of files under public directory, but only for precompiled files.
159
286
 
160
- ## v0.2.1 - 2016-02-05
287
+ - Drop support for Ruby 2.0 and 2.1. Official support for JRuby 9.0.5.0+. (Luca Guidi)
288
+ - Don't create digest version of files under public directory, but only for precompiled files. (Luca Guidi)
289
+
290
+ ### Fixed
291
+
292
+ - Safely precompile assets from directories with a dot in their name. (Alexander Gräfe)
293
+ - Detect changes for Sass/SCSS dependencies. (Luca Guidi)
294
+ - Preserve static assets under public directory, by removing only assets directory and manifest at the precompile time. (Maxim Dorofienko & Luca Guidi)
295
+
296
+ [0.3.0]: https://github.com/hanami/assets/compare/v0.2.1...v0.3.0
297
+
298
+ ## [0.2.1] - 2016-02-05
299
+
161
300
  ### Changed
162
- - [Derk-Jan Karrenbeld] Don't precompile `.map` files
301
+
302
+ - Don't precompile `.map` files. (Derk-Jan Karrenbeld)
163
303
 
164
304
  ### Fixed
165
- - [Luca Guidi] Fix recursive Sass imports
166
- - [Luca Guidi] Ensure to truncate assets in public before to precompile/copy them
167
305
 
168
- ## v0.2.0 - 2016-01-22
306
+ - Fix recursive Sass imports. (Luca Guidi)
307
+ - Ensure to truncate assets in public before to precompile/copy them. (Luca Guidi)
308
+
309
+ [0.2.1]: https://github.com/hanami/assets/compare/v0.2.0...v0.2.1
310
+
311
+ ## [0.2.0] - 2016-01-22
312
+
169
313
  ### Changed
170
- - [Luca Guidi] Renamed the project
171
314
 
172
- ## v0.1.0 - 2016-01-12
315
+ - Renamed the project. (Luca Guidi)
316
+
317
+ [0.2.0]: https://github.com/hanami/assets/compare/v0.1.0...v0.2.0
318
+
319
+ ## 0.1.0 - 2016-01-12
320
+
173
321
  ### Added
174
- - [Luca Guidi] Configurable assets compressors
175
- - [Luca Guidi] Builtin JavaScript and stylesheet compressors
176
- - [deepj & Michael Deol] Added `Lotus::Assets::Helpers#favicon`
177
- - [Leigh Halliday] Added `Lotus::Assets::Helpers#video`
178
- - [Kleber Correia] Added `Lotus::Assets::Helpers#audio`
179
- - [Gonzalo Rodríguez-Baltanás Díaz] Added `Lotus::Assets::Helpers#image`
180
- - [Luca Guidi] Added `Lotus::Assets::Helpers#javascript` and `#stylesheet`
181
- - [Luca Guidi] Added `Lotus::Assets::Helpers#asset_path` and `#asset_url`
182
- - [Luca Guidi] "CDN Mode" let helpers to generate CDN URLs (eg. `https://123.cloudfront.net/assets/application-d1829dc353b734e3adc24855693b70f9.js`)
183
- - [Luca Guidi] "Digest Mode" let helpers to generate digest URLs (eg. `/assets/application-d1829dc353b734e3adc24855693b70f9.js`)
184
- - [Luca Guidi] Added `hanami-assets` command to precompile assets at the deploy time
185
- - [Luca Guidi] Added support for third party gems that want to ship gemified assets for Lotus
186
- - [Luca Guidi] Assets preprocessors (eg. Sass, ES6, CoffeeScript, Opal, JSX)
187
- - [Luca Guidi] Official support for Ruby 2.0+
322
+
323
+ - Configurable assets compressors. (Luca Guidi)
324
+ - Builtin JavaScript and stylesheet compressors. (Luca Guidi)
325
+ - Added `Lotus::Assets::Helpers#favicon`. (deepj & Michael Deol)
326
+ - Added `Lotus::Assets::Helpers#video`. (Leigh Halliday)
327
+ - Added `Lotus::Assets::Helpers#audio`. (Kleber Correia)
328
+ - Added `Lotus::Assets::Helpers#image`. (Gonzalo Rodríguez-Baltanás Díaz)
329
+ - Added `Lotus::Assets::Helpers#javascript` and `#stylesheet`. (Luca Guidi)
330
+ - Added `Lotus::Assets::Helpers#asset_path` and `#asset_url`. (Luca Guidi)
331
+ - "CDN Mode" let helpers to generate CDN URLs (eg. `https://123.cloudfront.net/assets/application-d1829dc353b734e3adc24855693b70f9.js`). (Luca Guidi)
332
+ - "Digest Mode" let helpers to generate digest URLs (eg. `/assets/application-d1829dc353b734e3adc24855693b70f9.js`). (Luca Guidi)
333
+ - Added `hanami-assets` command to precompile assets at the deploy time. (Luca Guidi)
334
+ - Added support for third party gems that want to ship gemified assets for Lotus. (Luca Guidi)
335
+ - Assets preprocessors (eg. Sass, ES6, CoffeeScript, Opal, JSX). (Luca Guidi)
336
+ - Official support for Ruby 2.0+. (Luca Guidi)
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2026 Hanakai team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,22 +1,14 @@
1
- # Hanami::Assets
1
+ <!--- This file is synced from hanakai-rb/repo-sync -->
2
2
 
3
- Assets management for Ruby web projects
3
+ [actions]: https://github.com/hanami/hanami-assets/actions
4
+ [chat]: https://discord.gg/naQApPAsZB
5
+ [forum]: https://discourse.hanamirb.org
6
+ [rubygem]: https://rubygems.org/gems/hanami-assets
4
7
 
5
- ## Status
6
-
7
- [![Gem Version](https://badge.fury.io/rb/hanami-assets.svg)](https://badge.fury.io/rb/hanami-assets)
8
- [![CI](https://github.com/hanami/hanami-assets/actions/workflows/ci.yml/badge.svg)](https://github.com/hanami/hanami-assets/actions?query=workflow%3Aci+branch%3Amain)
9
-
10
- ## Contact
11
-
12
- * Home page: http://hanamirb.org
13
- * Community: http://hanamirb.org/community
14
- * Guides: https://guides.hanamirb.org
15
- * Mailing List: http://hanamirb.org/mailing-list
16
- * API Doc: http://rubydoc.info/gems/hanami-assets
17
- * Forum: https://discourse.hanamirb.org
18
- * Chat: http://chat.hanamirb.org
8
+ # Hanami Assets [![Gem Version](https://badge.fury.io/rb/hanami-assets.svg)][rubygem] [![CI Status](https://github.com/hanami/hanami-assets/workflows/CI/badge.svg)][actions]
19
9
 
10
+ [![Forum](https://img.shields.io/badge/Forum-dc360f?logo=discourse&logoColor=white)][forum]
11
+ [![Chat](https://img.shields.io/badge/Chat-717cf8?logo=discord&logoColor=white)][chat]
20
12
 
21
13
  ## Installation
22
14
 
@@ -242,10 +234,6 @@ $ npm install
242
234
  $ bundle exec rake test
243
235
  ```
244
236
 
245
- ## Versioning
246
-
247
- __Hanami::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
248
-
249
237
  ## Contributing
250
238
 
251
239
  1. Fork it (https://github.com/hanami/assets/fork)
@@ -254,6 +242,13 @@ __Hanami::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
254
242
  4. Push to the branch (`git push origin my-new-feature`)
255
243
  5. Create new Pull Request
256
244
 
257
- ## Copyright
245
+ ## Links
246
+
247
+ - [User documentation](https://hanamirb.org)
248
+ - [API documentation](http://rubydoc.info/gems/hanami-assets)
249
+
250
+
251
+ ## License
252
+
253
+ See `LICENSE` file.
258
254
 
259
- Copyright © 2014–2024 Hanami Team – Released under MIT License
@@ -1,33 +1,35 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path("../lib", __FILE__)
3
+ # This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
4
+
5
+ lib = File.expand_path("lib", __dir__)
4
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
7
  require "hanami/assets/version"
6
8
 
7
9
  Gem::Specification.new do |spec|
8
10
  spec.name = "hanami-assets"
9
- spec.version = Hanami::Assets::VERSION
10
11
  spec.authors = ["Hanakai team"]
11
12
  spec.email = ["info@hanakai.org"]
12
- spec.summary = "Assets management"
13
- spec.description = "Assets management for Ruby web applications"
14
- spec.homepage = "http://hanamirb.org"
15
13
  spec.license = "MIT"
14
+ spec.version = Hanami::Assets::VERSION.dup
16
15
 
17
- spec.files = `git ls-files -- lib/* bin/* CHANGELOG.md LICENSE.md README.md hanami-assets.gemspec`.split($/)
18
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.summary = "Assets management for Ruby web applications"
17
+ spec.description = spec.summary
18
+ spec.homepage = "https://hanamirb.org"
19
+ spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "hanami-assets.gemspec", "lib/**/*"]
20
+ spec.bindir = "exe"
21
+ spec.executables = Dir["exe/*"].map { |f| File.basename(f) }
19
22
  spec.require_paths = ["lib"]
20
- spec.metadata["rubygems_mfa_required"] = "true"
21
- spec.required_ruby_version = ">= 3.2"
22
-
23
- spec.add_dependency "zeitwerk", "~> 2.6"
24
-
25
- spec.add_development_dependency "bundler", ">= 1.6", "< 3"
26
- spec.add_development_dependency "rake", "~> 13"
27
- spec.add_development_dependency "rspec", "~> 3.9"
28
- spec.add_development_dependency "rubocop", "~> 1.0"
29
- spec.add_development_dependency "rack", "~> 2.2"
30
- spec.add_development_dependency "rack-test", "~> 1.1"
31
- spec.add_development_dependency "dry-configurable", "~> 1.1"
32
- spec.add_development_dependency "dry-inflector", "~> 1.0"
23
+
24
+ spec.extra_rdoc_files = ["README.md", "CHANGELOG.md", "LICENSE"]
25
+
26
+ spec.metadata["changelog_uri"] = "https://github.com/hanami/hanami-assets/blob/main/CHANGELOG.md"
27
+ spec.metadata["source_code_uri"] = "https://github.com/hanami/hanami-assets"
28
+ spec.metadata["bug_tracker_uri"] = "https://github.com/hanami/hanami-assets/issues"
29
+ spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
30
+
31
+ spec.required_ruby_version = ">= 3.3"
32
+
33
+ spec.add_runtime_dependency "zeitwerk", "~> 2.6"
33
34
  end
35
+
@@ -5,6 +5,6 @@ module Hanami
5
5
  # Defines the version
6
6
  #
7
7
  # @since 0.1.0
8
- VERSION = "2.3.0"
8
+ VERSION = "3.0.0.rc1"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team
8
- bindir: bin
8
+ bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -23,133 +23,18 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '2.6'
26
- - !ruby/object:Gem::Dependency
27
- name: bundler
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: '1.6'
33
- - - "<"
34
- - !ruby/object:Gem::Version
35
- version: '3'
36
- type: :development
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: '1.6'
43
- - - "<"
44
- - !ruby/object:Gem::Version
45
- version: '3'
46
- - !ruby/object:Gem::Dependency
47
- name: rake
48
- requirement: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - "~>"
51
- - !ruby/object:Gem::Version
52
- version: '13'
53
- type: :development
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '13'
60
- - !ruby/object:Gem::Dependency
61
- name: rspec
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '3.9'
67
- type: :development
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '3.9'
74
- - !ruby/object:Gem::Dependency
75
- name: rubocop
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '1.0'
81
- type: :development
82
- prerelease: false
83
- version_requirements: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '1.0'
88
- - !ruby/object:Gem::Dependency
89
- name: rack
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '2.2'
95
- type: :development
96
- prerelease: false
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '2.2'
102
- - !ruby/object:Gem::Dependency
103
- name: rack-test
104
- requirement: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '1.1'
109
- type: :development
110
- prerelease: false
111
- version_requirements: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '1.1'
116
- - !ruby/object:Gem::Dependency
117
- name: dry-configurable
118
- requirement: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '1.1'
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '1.1'
130
- - !ruby/object:Gem::Dependency
131
- name: dry-inflector
132
- requirement: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - "~>"
135
- - !ruby/object:Gem::Version
136
- version: '1.0'
137
- type: :development
138
- prerelease: false
139
- version_requirements: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '1.0'
144
26
  description: Assets management for Ruby web applications
145
27
  email:
146
28
  - info@hanakai.org
147
29
  executables: []
148
30
  extensions: []
149
- extra_rdoc_files: []
31
+ extra_rdoc_files:
32
+ - CHANGELOG.md
33
+ - LICENSE
34
+ - README.md
150
35
  files:
151
36
  - CHANGELOG.md
152
- - LICENSE.md
37
+ - LICENSE
153
38
  - README.md
154
39
  - hanami-assets.gemspec
155
40
  - lib/hanami-assets.rb
@@ -159,11 +44,14 @@ files:
159
44
  - lib/hanami/assets/config.rb
160
45
  - lib/hanami/assets/errors.rb
161
46
  - lib/hanami/assets/version.rb
162
- homepage: http://hanamirb.org
47
+ homepage: https://hanamirb.org
163
48
  licenses:
164
49
  - MIT
165
50
  metadata:
166
- rubygems_mfa_required: 'true'
51
+ changelog_uri: https://github.com/hanami/hanami-assets/blob/main/CHANGELOG.md
52
+ source_code_uri: https://github.com/hanami/hanami-assets
53
+ bug_tracker_uri: https://github.com/hanami/hanami-assets/issues
54
+ funding_uri: https://github.com/sponsors/hanami
167
55
  rdoc_options: []
168
56
  require_paths:
169
57
  - lib
@@ -171,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
59
  requirements:
172
60
  - - ">="
173
61
  - !ruby/object:Gem::Version
174
- version: '3.2'
62
+ version: '3.3'
175
63
  required_rubygems_version: !ruby/object:Gem::Requirement
176
64
  requirements:
177
65
  - - ">="
@@ -180,5 +68,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
68
  requirements: []
181
69
  rubygems_version: 3.6.9
182
70
  specification_version: 4
183
- summary: Assets management
71
+ summary: Assets management for Ruby web applications
184
72
  test_files: []
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Copyright © 2014-2021 Luca Guidi
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.