hanami-assets 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/LICENSE.md +1 -1
- data/README.md +1 -1
- data/lib/hanami/assets.rb +3 -0
- data/lib/hanami/assets/compressors/jsmin.rb +1 -0
- data/lib/hanami/assets/configuration.rb +1 -0
- data/lib/hanami/assets/helpers.rb +2 -0
- data/lib/hanami/assets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 193383af04e2d134ce151170ff4583c9dc7c5d34
|
4
|
+
data.tar.gz: 39411affe836722cda9c3824255aa2fe5ddc65ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8384e2cc4bea81bda3c66058338d734b5b0ccd0688f22bc8df702a48e8db7e984cd3f92fbf45881f2f10887c5ef018b9155c7e81a70fc481342606d18ef70a8
|
7
|
+
data.tar.gz: 1003243f366cceac7299adbcd6c49b117baef492b6e27a63ecb3c25bd11c2952562b735c31478896dd2f3771813d372654bfb0c1b5c409128e699acab51ab485
|
data/CHANGELOG.md
CHANGED
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -472,6 +472,6 @@ __Hanami::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
|
|
472
472
|
|
473
473
|
## Copyright
|
474
474
|
|
475
|
-
Copyright © 2014-
|
475
|
+
Copyright © 2014-2017 Luca Guidi – Released under MIT License
|
476
476
|
|
477
477
|
This project was formerly known as Lotus (`lotus-assets`).
|
data/lib/hanami/assets.rb
CHANGED
@@ -521,6 +521,7 @@ module Hanami
|
|
521
521
|
# This MUST be executed before to accept the first HTTP request
|
522
522
|
#
|
523
523
|
# @since 0.1.0
|
524
|
+
# @api private
|
524
525
|
def load!
|
525
526
|
if (fingerprint || subresource_integrity) && manifest_path.exist?
|
526
527
|
@public_manifest = Config::Manifest.new(
|
@@ -762,10 +762,12 @@ module Hanami
|
|
762
762
|
asset_path(source)
|
763
763
|
end
|
764
764
|
|
765
|
+
# @api private
|
765
766
|
def _subresource_integrity?
|
766
767
|
!!self.class.assets_configuration.subresource_integrity # rubocop:disable Style/DoubleNegation
|
767
768
|
end
|
768
769
|
|
770
|
+
# @api private
|
769
771
|
def _subresource_integrity_value(source, ext)
|
770
772
|
source = "#{source}#{ext}" unless source =~ /#{Regexp.escape(ext)}\z/
|
771
773
|
self.class.assets_configuration.subresource_integrity_value(source) unless _absolute_url?(source)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hanami-utils
|