hanami-assets 2.3.0.beta2 → 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: 72f2c41309b308a245f61414308d5ca6077048a117a88cade88c0af2b29f98f8
4
- data.tar.gz: 76d468446140e343d18953190efca80236fecb8e797e4d9d436ff48aab766d2a
3
+ metadata.gz: bb068dfbb3f66779fb4f3e7f90851e9dfceb3f90b1179f5086710f394eed2024
4
+ data.tar.gz: 9fda06a5aebe4d0c6f5eb4bd11209d8584359b38b1e3cfcb095d40b7349d4436
5
5
  SHA512:
6
- metadata.gz: 5201be01a6bc8cb9fd4abb20cda3edeeed39c901f887cfee85eb57f9ea8b4e715c486081b0ce2799eb045bab35c386561bc1e469b7dd40b88a16acffe448a241
7
- data.tar.gz: d6945c811f8d29ff8bf21d83e7e251d4967dba861fe9af29dab449474068815eb4611cd157e75836e331c7581fea9617d0c6dd8105a5dd1e608efeda1743860c
6
+ metadata.gz: ee518c103898cfde26ac0473841973dc38f3a6398dedab2d479b62bc43e7ad01757912734357bd9a48a28bf697cfbf42fdbfed3f9aa744f293afa9f16d60c53e
7
+ data.tar.gz: db86423cbb3964390e9c9b52fb16cc4a266aacd6110c0db4888118a0a7597c32a4a1e81f639b70a304f88431c59481dd658ae2886acae5cbcd8da4e1789f89e0
data/CHANGELOG.md CHANGED
@@ -1,185 +1,336 @@
1
- # Hanami::Assets
2
- Assets management for Ruby web applications
1
+ # Changelog
3
2
 
4
- ## v2.3.0.beta2 - 2025-10-17
3
+ All notable changes to this project will be documented in this file.
4
+
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)
5
29
 
6
30
  ### Changed
7
31
 
8
- - 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
9
51
 
10
- ## v2.3.0.beta1 - 2025-10-03
52
+ ## [2.2.0] - 2024-11-05
11
53
 
12
- ## v2.2.0 - 2024-11-05
54
+ [2.2.0]: https://github.com/hanami/assets/compare/v2.2.0.rc1...v2.2.0
13
55
 
14
- ## v2.2.0.rc1 - 2024-10-29
56
+ ## [2.2.0.rc1] - 2024-10-29
15
57
 
16
- ## v2.2.0.beta2 - 2024-09-25
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.beta1 - 2024-07-16
60
+ ## [2.2.0.beta2] - 2024-09-25
61
+
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
19
65
 
20
66
  ### Changed
21
67
 
22
- - 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
23
73
 
24
- ## v2.1.0 - 2024-02-27
74
+ [2.1.0]: https://github.com/hanami/assets/compare/v2.1.0.rc3...v2.1.0
75
+
76
+ ## [2.1.0.rc3] - 2024-02-16
25
77
 
26
- ## v2.1.0.rc3 - 2024-02-16
27
78
  ### Changed
28
- - [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.
29
- - [Tim Riley] Removed `manifest_path` setting; the manifest path is no longer user-configurable.
30
- - [Tim Riley] Replaced `package_manager_run_command` setting with `node_command` setting.
31
- - [Tim Riley] Removed unused `sources`, `entry_point_patterns` and `destination` settings.
32
- - [Tim Riley] Removed `bin/hanami-assets` executable.
33
79
 
34
- ## 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
35
89
 
36
- ## v2.1.0.rc1 - 2023-11-01
90
+ [2.1.0.rc2]: https://github.com/hanami/assets/compare/v2.1.0.rc1...v2.1.0.rc2
91
+
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
37
97
 
38
- ## v2.1.0.beta2 - 2023-10-04
39
98
  ### Added
40
- - [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)
41
101
 
42
102
  ### Changed
43
- - [Luca Guidi] Drop support for Ruby: MRI 2 and JRuby
44
- - [Luca Guidi] This gem now requires a working Node and Yarn installation
45
- - [Tim Riley] Changed the gem to load using Zeitwerk, via `require "hanami/assets"`
46
- - [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.
47
- - [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)
48
- - [Luca Guidi] Renamed `Hanami::Assets::Configuration` to `Config`
49
- - [Luca Guidi] Removed `Hanami::Assets.configure`, use `Hanami::Assets::Config.new`
50
- - [Luca Guidi] Removed `Hanami::Assets.deploy`, `.precompile`, `.load!` as precompile process is now handled via JavaScript
51
- - [Luca Guidi] Removed `Hanami::Assets.sources`, as third-party libraries should be handled via Yarn
52
- - [Luca Guidi] Removed `Hanami::Assets::Config#fingerprint`, as fingerprinting will be always activated
53
- - [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"]`)
54
- - [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).
55
- - [Luca Guidi] Removed `Hanami::Assets::Config#javascript_compressor` and `stylesheet_compressor`, as the compression is now handled via JavaScript
56
- - [Luca Guidi] Removed `Hanami::Assets::Config#scheme`, `#host`, `#port`, and `#prefix`. Use `base_url` keyword argument to pass to configuration initializer
57
- - [Luca Guidi] Removed `Hanami::Assets::Config#root`, `#public_directory`, `#destination_directory`, and `#manifest` as they will now looked up via conventions
58
- - [Luca Guidi] Moved `Hanami::Assets::Precompiler` and `Watcher` to `hanami-cli`
59
-
60
- ## 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
+
61
125
  ### Added
62
- - [Luca Guidi] Official support for Ruby: MRI 3.0
63
- - [Luca Guidi] Official support for Ruby: MRI 2.7
64
126
 
65
- ## 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
+
66
134
  ### Fixed
67
- - [unleashy] Precompile assets using binary mode to ensure compatibility with Windows
68
135
 
69
- ## 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
+
70
142
  ### Fixed
71
- - [Landon Grindheim] Lazily load `sassc` only when required
72
- - [Landon Grindheim] Ensure assets precompilation to not crash when SASS stylesheet doesn't have dependencies
73
143
 
74
- ## 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
+
75
151
  ### Added
76
- - [Landon Grindheim & Sean Collins] Added support for `sassc` gem, because `sass` is no longer maintained
77
152
 
78
- ## 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
+
79
159
  ### Added
80
- - [Luca Guidi] Official support for Ruby: MRI 2.6
81
- - [Luca Guidi] Support `bundler` 2.0+
160
+
161
+ - Official support for Ruby: MRI 2.6. (Luca Guidi)
162
+ - Support `bundler` 2.0+. (Luca Guidi)
82
163
 
83
164
  ### Fixed
84
- - [Luca Guidi] Make optional nested assets feature to maintain backward compatibility with `1.2.x`
85
165
 
86
- ## 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
87
175
 
88
- ## v1.3.0.beta1 - 2018-08-08
89
176
  ### Added
90
- - [Paweł Świątkowski] Preserve directory structure of assets at the precompile time.
91
- - [Luca Guidi] Official support for JRuby 9.2.0.0
92
177
 
93
- ## 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
94
186
 
95
- ## v1.2.0.rc2 - 2018-04-06
187
+ ## [1.2.0.rc2] - 2018-04-06
96
188
 
97
- ## v1.2.0.rc1 - 2018-03-30
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.beta2 - 2018-03-23
191
+ ## [1.2.0.rc1] - 2018-03-30
192
+
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
100
200
 
101
- ## v1.2.0.beta1 - 2018-02-28
102
201
  ### Added
103
- - [Luca Guidi] Collect assets informations for Early Hints (103)
104
- - [Luca Guidi] Send automatically javascripts and stylesheets via Push Promise / Early Hints
105
- - [Luca Guidi] Add the ability to send audio, video, and generic assets for Push Promise / Early Hints
106
202
 
107
- ## 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
+
108
211
  ### Added
109
- - [Luca Guidi] Official support for Ruby: MRI 2.5
212
+
213
+ - Official support for Ruby: MRI 2.5. (Luca Guidi)
110
214
 
111
215
  ### Fixed
112
- - [Malina Sulca] Print `href` and `src` first in output HTML
113
216
 
114
- ## 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
+
115
223
  ### Fixed
116
- - [Luca Guidi] Don't let `#javascript` and `#stylesheet` helpers to append file extension if the URL contains a query string
117
224
 
118
- ## 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
119
242
 
120
- ## v1.1.0.beta3 - 2017-10-04
243
+ [1.1.0.beta1]: https://github.com/hanami/assets/compare/v1.0.0...v1.1.0.beta1
121
244
 
122
- ## v1.1.0.beta2 - 2017-10-03
245
+ ## [1.0.0] - 2017-04-06
123
246
 
124
- ## v1.1.0.beta1 - 2017-08-11
247
+ [1.0.0]: https://github.com/hanami/assets/compare/v1.0.0.rc1...v1.0.0
125
248
 
126
- ## v1.0.0 - 2017-04-06
249
+ ## [1.0.0.rc1] - 2017-03-31
127
250
 
128
- ## v1.0.0.rc1 - 2017-03-31
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.beta2 - 2017-03-17
253
+ ## [1.0.0.beta2] - 2017-03-17
254
+
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
131
258
 
132
- ## v1.0.0.beta1 - 2017-02-14
133
259
  ### Added
134
- - [Luca Guidi] Official support for Ruby: MRI 2.4
135
260
 
136
- ## v0.4.0 - 2016-11-15
137
- ### Fixed
138
- - [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
139
266
 
140
267
  ### Changed
141
- - [Luca Guidi] Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+
142
- - [Sean Collins] Rename digest into fingerprint
143
268
 
144
- ## v0.3.0 - 2016-07-22
145
- ### Added
146
- - [Matthew Gibbons & Sean Collins] Subresource Integrity (SRI)
147
- - [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)
148
271
 
149
272
  ### Fixed
150
- - [Alexander Gräfe] Safely precompile assets from directories with a dot in their name.
151
- - [Luca Guidi] Detect changes for Sass/SCSS dependencies.
152
- - [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)
153
284
 
154
285
  ### Changed
155
- – [Luca Guidi] Drop support for Ruby 2.0 and 2.1. Official support for JRuby 9.0.5.0+.
156
- - [Luca Guidi] Don't create digest version of files under public directory, but only for precompiled files.
157
286
 
158
- ## 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
+
159
300
  ### Changed
160
- - [Derk-Jan Karrenbeld] Don't precompile `.map` files
301
+
302
+ - Don't precompile `.map` files. (Derk-Jan Karrenbeld)
161
303
 
162
304
  ### Fixed
163
- - [Luca Guidi] Fix recursive Sass imports
164
- - [Luca Guidi] Ensure to truncate assets in public before to precompile/copy them
165
305
 
166
- ## 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
+
167
313
  ### Changed
168
- - [Luca Guidi] Renamed the project
169
314
 
170
- ## 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
+
171
321
  ### Added
172
- - [Luca Guidi] Configurable assets compressors
173
- - [Luca Guidi] Builtin JavaScript and stylesheet compressors
174
- - [deepj & Michael Deol] Added `Lotus::Assets::Helpers#favicon`
175
- - [Leigh Halliday] Added `Lotus::Assets::Helpers#video`
176
- - [Kleber Correia] Added `Lotus::Assets::Helpers#audio`
177
- - [Gonzalo Rodríguez-Baltanás Díaz] Added `Lotus::Assets::Helpers#image`
178
- - [Luca Guidi] Added `Lotus::Assets::Helpers#javascript` and `#stylesheet`
179
- - [Luca Guidi] Added `Lotus::Assets::Helpers#asset_path` and `#asset_url`
180
- - [Luca Guidi] "CDN Mode" let helpers to generate CDN URLs (eg. `https://123.cloudfront.net/assets/application-d1829dc353b734e3adc24855693b70f9.js`)
181
- - [Luca Guidi] "Digest Mode" let helpers to generate digest URLs (eg. `/assets/application-d1829dc353b734e3adc24855693b70f9.js`)
182
- - [Luca Guidi] Added `hanami-assets` command to precompile assets at the deploy time
183
- - [Luca Guidi] Added support for third party gems that want to ship gemified assets for Lotus
184
- - [Luca Guidi] Assets preprocessors (eg. Sass, ES6, CoffeeScript, Opal, JSX)
185
- - [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,29 +1,17 @@
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/assets/actions/workflows/ci.yml/badge.svg)](https://github.com/hanami/assets/actions?query=workflow%3Aci+branch%3Amain)
9
- [![Test Coverage](https://codecov.io/gh/hanami/assets/branch/main/graph/badge.svg)](https://codecov.io/gh/hanami/assets)
10
- [![Depfu](https://badges.depfu.com/badges/4b37347bd74042ff96477495cc16531d/overview.svg)](https://depfu.com/github/hanami/assets?project=Bundler)
11
-
12
- ## Contact
13
-
14
- * Home page: http://hanamirb.org
15
- * Community: http://hanamirb.org/community
16
- * Guides: https://guides.hanamirb.org
17
- * Mailing List: http://hanamirb.org/mailing-list
18
- * API Doc: http://rubydoc.info/gems/hanami-assets
19
- * Forum: https://discourse.hanamirb.org
20
- * 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]
21
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]
22
12
 
23
13
  ## Installation
24
14
 
25
- __Hanami::Assets__ supports Ruby (MRI) 3.1+
26
-
27
15
  Add this line to your application's Gemfile:
28
16
 
29
17
  ```ruby
@@ -246,10 +234,6 @@ $ npm install
246
234
  $ bundle exec rake test
247
235
  ```
248
236
 
249
- ## Versioning
250
-
251
- __Hanami::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
252
-
253
237
  ## Contributing
254
238
 
255
239
  1. Fork it (https://github.com/hanami/assets/fork)
@@ -258,6 +242,13 @@ __Hanami::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
258
242
  4. Push to the branch (`git push origin my-new-feature`)
259
243
  5. Create new Pull Request
260
244
 
261
- ## 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.
262
254
 
263
- 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
- spec.authors = ["Luca Guidi"]
11
- spec.email = ["me@lucaguidi.com"]
12
- spec.summary = "Assets management"
13
- spec.description = "Assets management for Ruby web applications"
14
- spec.homepage = "http://hanamirb.org"
11
+ spec.authors = ["Hanakai team"]
12
+ spec.email = ["info@hanakai.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.beta2"
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.beta2
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
- - Luca Guidi
8
- bindir: bin
7
+ - Hanakai team
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
- - me@lucaguidi.com
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.