hanami-assets 2.1.0.rc3 → 2.2.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +6 -10
- data/hanami-assets.gemspec +2 -2
- data/lib/hanami/assets/base_url.rb +2 -0
- data/lib/hanami/assets/version.rb +1 -1
- data/lib/hanami/assets.rb +14 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b94a8d3e0e9c270d8fff9006f8ebe8d70a410040ba41bb94ed34a58d15afba6b
|
4
|
+
data.tar.gz: 748fd04fb19df44fe2820c3f515ae95f7599dafd13958884ac1429b55a289096
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaca83bdb0e6a8eaaa1a373399b04e1225ff24b8f6df0e975fddf577168163f0439b68584a2990a0c32860e346372dc419277a23fdef0904bba1296d1fc85389
|
7
|
+
data.tar.gz: db0cb5b7121157bf025251b869c56347328c2402378fcdb01c2d5e588e0dd82fda12b44ee531b68a93366a515e5692b091d971da712b0f57ddbb26394eaccbc6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Hanami::Assets
|
2
2
|
Assets management for Ruby web applications
|
3
3
|
|
4
|
+
## v2.2.0.beta1 - 2024-07-16
|
5
|
+
|
6
|
+
### Changed
|
7
|
+
|
8
|
+
- Drop support for Ruby 3.0
|
9
|
+
|
10
|
+
## v2.1.0 - 2024-02-27
|
11
|
+
|
4
12
|
## v2.1.0.rc3 - 2024-02-16
|
5
13
|
### Changed
|
6
14
|
- [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.
|
data/README.md
CHANGED
@@ -5,10 +5,9 @@ Assets management for Ruby web projects
|
|
5
5
|
## Status
|
6
6
|
|
7
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/workflows/ci/badge.svg
|
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
9
|
[![Test Coverage](https://codecov.io/gh/hanami/assets/branch/main/graph/badge.svg)](https://codecov.io/gh/hanami/assets)
|
10
10
|
[![Depfu](https://badges.depfu.com/badges/4b37347bd74042ff96477495cc16531d/overview.svg)](https://depfu.com/github/hanami/assets?project=Bundler)
|
11
|
-
[![Inline Docs](http://inch-ci.org/github/hanami/assets.svg)](http://inch-ci.org/github/hanami/assets)
|
12
11
|
|
13
12
|
## Contact
|
14
13
|
|
@@ -16,18 +15,15 @@ Assets management for Ruby web projects
|
|
16
15
|
* Community: http://hanamirb.org/community
|
17
16
|
* Guides: https://guides.hanamirb.org
|
18
17
|
* Mailing List: http://hanamirb.org/mailing-list
|
19
|
-
* API Doc: http://
|
20
|
-
*
|
21
|
-
* Support: http://stackoverflow.com/questions/tagged/hanami
|
22
|
-
* Forum: https://discuss.hanamirb.org
|
18
|
+
* API Doc: http://rubydoc.info/gems/hanami-assets
|
19
|
+
* Forum: https://discourse.hanamirb.org
|
23
20
|
* Chat: http://chat.hanamirb.org
|
24
21
|
|
25
|
-
## Rubies
|
26
|
-
|
27
|
-
__Hanami::Assets__ supports Ruby (MRI) 3.0+
|
28
22
|
|
29
23
|
## Installation
|
30
24
|
|
25
|
+
__Hanami::Assets__ supports Ruby (MRI) 3.1+
|
26
|
+
|
31
27
|
Add this line to your application's Gemfile:
|
32
28
|
|
33
29
|
```ruby
|
@@ -264,4 +260,4 @@ __Hanami::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
|
|
264
260
|
|
265
261
|
## Copyright
|
266
262
|
|
267
|
-
Copyright © 2014
|
263
|
+
Copyright © 2014–2024 Hanami Team – Released under MIT License
|
data/hanami-assets.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
spec.metadata["rubygems_mfa_required"] = "true"
|
21
|
-
spec.required_ruby_version = ">= 3.
|
21
|
+
spec.required_ruby_version = ">= 3.1"
|
22
22
|
|
23
|
-
spec.
|
23
|
+
spec.add_dependency "zeitwerk", "~> 2.6"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", ">= 1.6", "< 3"
|
26
26
|
spec.add_development_dependency "rake", "~> 13"
|
data/lib/hanami/assets.rb
CHANGED
@@ -29,6 +29,20 @@ module Hanami
|
|
29
29
|
require_relative "assets/version"
|
30
30
|
require_relative "assets/errors"
|
31
31
|
|
32
|
+
# Returns the directory (under `public/assets/`) to be used for storing a slice's compiled
|
33
|
+
# assets.
|
34
|
+
#
|
35
|
+
# This is shared logic used by both Hanami (for the assets provider) and Hanami::CLI (for the
|
36
|
+
# assets commands).
|
37
|
+
#
|
38
|
+
# @since 2.1.0
|
39
|
+
# @api private
|
40
|
+
def self.public_assets_dir(slice)
|
41
|
+
return nil if slice.app.eql?(slice)
|
42
|
+
|
43
|
+
slice.slice_name.to_s.split("/").map { |name| "_#{name}" }.join("/")
|
44
|
+
end
|
45
|
+
|
32
46
|
# @api private
|
33
47
|
# @since 2.1.0
|
34
48
|
MANIFEST_PATH = "assets.json"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -173,14 +173,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: '3.
|
176
|
+
version: '3.1'
|
177
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - ">="
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.5.
|
183
|
+
rubygems_version: 3.5.9
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Assets management
|