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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9269759054f3b1925db4b1331f1fe27f6ec4107
4
- data.tar.gz: 932f3e4bd6f00796f587f6c8944188c48c0354e8
3
+ metadata.gz: 193383af04e2d134ce151170ff4583c9dc7c5d34
4
+ data.tar.gz: 39411affe836722cda9c3824255aa2fe5ddc65ee
5
5
  SHA512:
6
- metadata.gz: f1b70be5a2a8ec58936e0dc0a0be1275eb41515bdb6a2a45cc984aac8feee6d5c71d16c760fd06aa4b7042c618b7d604b80313743bce73a08234e839b84eb561
7
- data.tar.gz: 25126a1100f2533132eae47e13bfb52f07ba54b37b44af0fe993f0dc87df3eb85ca30b97402db5efce66a445a817a2203e223748e95f160a7541303005b8231b
6
+ metadata.gz: f8384e2cc4bea81bda3c66058338d734b5b0ccd0688f22bc8df702a48e8db7e984cd3f92fbf45881f2f10887c5ef018b9155c7e81a70fc481342606d18ef70a8
7
+ data.tar.gz: 1003243f366cceac7299adbcd6c49b117baef492b6e27a63ecb3c25bd11c2952562b735c31478896dd2f3771813d372654bfb0c1b5c409128e699acab51ab485
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::Assets
2
2
  Assets management for Ruby web applications
3
3
 
4
+ ## v1.0.0.beta2 - 2017-03-17
5
+
4
6
  ## v1.0.0.beta1 - 2017-02-14
5
7
  ### Added
6
8
  - [Luca Guidi] Official support for Ruby: MRI 2.4
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2014-2016 Luca Guidi
1
+ Copyright © 2014-2017 Luca Guidi
2
2
 
3
3
  MIT License
4
4
 
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-2016 Luca Guidi – Released under MIT License
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
@@ -1,6 +1,9 @@
1
1
  require 'thread'
2
2
  require 'hanami/utils/class_attribute'
3
3
 
4
+ # Hanami
5
+ #
6
+ # @since 0.1.0
4
7
  module Hanami
5
8
  # Assets management for Ruby web applications
6
9
  #
@@ -48,6 +48,7 @@ require 'strscan'
48
48
  #
49
49
  # File.open('example.js', 'r') {|file| puts JSMin.minify(file) }
50
50
  #
51
+ # @api private
51
52
  module JSMin
52
53
  CHR_APOS = "'".freeze
53
54
  CHR_ASTERISK = '*'.freeze
@@ -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)
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.0.0.beta1'.freeze
6
+ VERSION = '1.0.0.beta2'.freeze
7
7
  end
8
8
  end
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.beta1
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-02-14 00:00:00.000000000 Z
13
+ date: 2017-03-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hanami-utils