dragonfly-cache 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
  SHA256:
3
- metadata.gz: 4fd73e1bc8725ffc8009186949f37ad03c654ed5720720ba99e4e09d8752a008
4
- data.tar.gz: 32b86ada94e394059fd6fde499d150f41866386df9940ddea17000e674819dfc
3
+ metadata.gz: b6c6ea22322a6f115cdf37d3e4bf92358d610028d48a950bf66b14db868573d3
4
+ data.tar.gz: '039beda58f19b595cbb8a1395c39b62439314ad607652edf08ba2e25a4835d1d'
5
5
  SHA512:
6
- metadata.gz: 032eb51f19639eb8f6efabde440e4e916e3232d53e277c3dd8ef085019050f6b70fcef5defedd1a2a00d28f30c07aaf569ce5c252fac88cbab70a9b6e00853db
7
- data.tar.gz: 672f9461ec58b4cdf647a7f176486ec43096bb023271e09ed2132f90685625a30f38cd397cd5392105844ce46c6f20d038a6874f23c8255b611502efe47bbbc3
6
+ metadata.gz: 1f3ce1e536b1e3b1b11fef5ff23dd29398303d2cb50b3f3bfb7ebf156fdafe0a10e2de74d638dd3b098145933790255bb35dda2545e57803bc35451a4bb2de12
7
+ data.tar.gz: 6fb87cfd33c7402209177e883ee28c9e6c1c924395ffaaf78e8fa6f025a67bf8c555b61845781a06be6786dec74299420ba29651c8912700861e0552d143c655
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dragonfly-cache (0.1.4)
4
+ dragonfly-cache (0.1.5)
5
5
  dragonfly (~> 1.1.5)
6
6
  i18n
7
7
 
@@ -11,22 +11,22 @@ GEM
11
11
  addressable (2.5.2)
12
12
  public_suffix (>= 2.0.2, < 4.0)
13
13
  ast (2.4.0)
14
- concurrent-ruby (1.0.5)
14
+ concurrent-ruby (1.1.4)
15
15
  diff-lcs (1.3)
16
16
  dragonfly (1.1.5)
17
17
  addressable (~> 2.3)
18
18
  multi_json (~> 1.0)
19
19
  rack (>= 1.3)
20
- i18n (1.1.0)
20
+ i18n (1.2.0)
21
21
  concurrent-ruby (~> 1.0)
22
22
  jaro_winkler (1.5.1)
23
23
  multi_json (1.13.1)
24
24
  parallel (1.12.1)
25
- parser (2.5.1.2)
25
+ parser (2.5.3.0)
26
26
  ast (~> 2.4.0)
27
27
  powerpack (0.1.2)
28
28
  public_suffix (3.0.3)
29
- rack (2.0.5)
29
+ rack (2.0.6)
30
30
  rainbow (3.0.0)
31
31
  rake (10.5.0)
32
32
  rspec (3.8.0)
@@ -35,21 +35,21 @@ GEM
35
35
  rspec-mocks (~> 3.8.0)
36
36
  rspec-core (3.8.0)
37
37
  rspec-support (~> 3.8.0)
38
- rspec-expectations (3.8.1)
38
+ rspec-expectations (3.8.2)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
40
  rspec-support (~> 3.8.0)
41
41
  rspec-mocks (3.8.0)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
43
  rspec-support (~> 3.8.0)
44
44
  rspec-support (3.8.0)
45
- rubocop (0.59.2)
45
+ rubocop (0.61.1)
46
46
  jaro_winkler (~> 1.5.1)
47
47
  parallel (~> 1.10)
48
48
  parser (>= 2.5, != 2.5.1.1)
49
49
  powerpack (~> 0.1)
50
50
  rainbow (>= 2.2.2, < 4.0)
51
51
  ruby-progressbar (~> 1.7)
52
- unicode-display_width (~> 1.0, >= 1.0.1)
52
+ unicode-display_width (~> 1.4.0)
53
53
  ruby-progressbar (1.10.0)
54
54
  unicode-display_width (1.4.0)
55
55
 
@@ -29,6 +29,7 @@ module Dragonfly
29
29
 
30
30
  def valid?(job, uri)
31
31
  valid = (@map.key?(job.sha) && @map[job.sha] == uri) || !@map.key?(job.sha)
32
+ valid &= (@map.value?(uri) && @map.key(uri) == job.sha) || !@map.value?(uri)
32
33
  increase_sha_size! unless valid
33
34
  valid
34
35
  end
@@ -9,7 +9,7 @@ module Dragonfly
9
9
  extend Forwardable
10
10
 
11
11
  attr_reader :root, :internal
12
- delegate %i[[] key? value? keys values] => :internal
12
+ delegate %i[[] key? value? key keys values] => :internal
13
13
 
14
14
  def initialize(config)
15
15
  @root = config[:server_root]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dragonfly
4
4
  module Cache
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly-cache
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
  - Gaël-Ian Havard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-09 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly