asset_id 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/asset_id/asset.rb +2 -1
  2. metadata +1 -1
@@ -49,7 +49,8 @@ module AssetID
49
49
 
50
50
  def self.fingerprint(path)
51
51
  asset = Asset.new(path)
52
- return hit[:fingerprint] if hit = Cache.get(asset)
52
+ hit = Cache.get(asset)
53
+ return hit[:fingerprint] if hit
53
54
  return asset.fingerprint
54
55
  end
55
56
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: asset_id
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.3
5
+ version: 0.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Richard Taylor