hanko 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: d9e22a32ae5fb1b4255ea42713e9545b05dbc5ba
4
- data.tar.gz: 721693c30aeca71ad2ea07fbcfeb645ab67f443a
3
+ metadata.gz: 805a48dc94a8b763fc93173b5aebdb94c3d075ec
4
+ data.tar.gz: f5b83e5c960334359cf9579396ee7576f1bdceca
5
5
  SHA512:
6
- metadata.gz: 147246f21ffc435e9ce4e1c3256bc99a69c76d2d97048c90b84440bb6632ab54602f6705023db4466b7ea669e3c19f0eb71b143eddbb20f0dd3c306f2e38323f
7
- data.tar.gz: a0783fa66b6a5c1da857f9fd5e85a7f4f70379904865f5d18a29b94328cf6348e6bbf18573a884da77b62c983fee5a74f6c2f73b8dc563efd636ba10fb3aabef
6
+ metadata.gz: fce42a425a25484f5807376384e2a37635079fc1643a898c96741fb285b18f5de8e49372d7d08eeda3e49518b190d19032d670588a15ff61704f19fdae6cd62d
7
+ data.tar.gz: 2e2c722828b961bdbdefef3ecde515aafad6b71e6ce2e9bab58c3e701717cf2bf115ea3ba429281757100b1814be51738236052ca5c1185690de623b068c74bd
data/README.md CHANGED
@@ -32,6 +32,11 @@ For example ```config/application.rb```
32
32
  config.hanko.digest_class = Digest::MD5
33
33
  ```
34
34
 
35
+ If you would like to disable caching, sets false to ``config.hanko.cachable```.
36
+ ```ruby
37
+ config.hanko.cachable = false
38
+ ```
39
+
35
40
  ## Development
36
41
 
37
42
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -6,12 +6,10 @@ module Hanko
6
6
  attr_writer :digest_class, :cachable
7
7
 
8
8
  def pon(assets_dir, source)
9
- fingerprint = generate_pon(assets_dir, source)
10
-
11
9
  if cachable?
12
- cached_pon[source] ||= fingerprint
10
+ cached_pon[source] ||= generate_pon(assets_dir, source)
13
11
  else
14
- fingerprint
12
+ generate_pon(assets_dir, source)
15
13
  end
16
14
  end
17
15
 
@@ -1,3 +1,3 @@
1
1
  module Hanko
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - tsukasaoishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack