docker_registry2 1.4.1 → 1.5.0

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: 376793410ce5e278e77bfa52c96ff2c666bbeb1a
4
- data.tar.gz: 62fa7564a2cd0e4517d50ac0eb69f32b06e8aba3
3
+ metadata.gz: 268dd1aec5b4e778d6b1008be633575ac37d076d
4
+ data.tar.gz: 79fbb9e626b10d41343897e757b8e803c77c4b49
5
5
  SHA512:
6
- metadata.gz: 75e2dfdf6d663904d8cf6d3f96a5adf36876525447c8417d62a5ea9c79749634803cc5b3ddad0dc4ede6f2f5e4320c5feb8c478d6c27e11e798da253c8bb6f57
7
- data.tar.gz: 9bedff13668e278cb6d6072ef1ef45bba9cd79c0ead83b6ea729c9e724ec17abd9d2b4d1c0f4c8302ee940b8ba9ae2ff7a197f989bb3e2a471aa878490d93b94
6
+ metadata.gz: cce5e4063e67fb9c5a57cc3c9553f7d06ac8d7e43cb908fafcb005219b6582bd878744536857cc6e3874e520c4e772f92f82b0b74cf5c75bf3e77c91848a5c23
7
+ data.tar.gz: e4aa32abced0d1c17133bd8189939a9efa9cdbb7de296ff67dbf31e1ec401972919b5a780292a259c4eb55223e7b94454fa5f6f26efb51053111977728d50c62
@@ -291,7 +291,8 @@ class DockerRegistry2::Registry
291
291
  raise DockerRegistry2::NotFound, error
292
292
  end
293
293
  # now save the web token
294
- return JSON.parse(response)["token"]
294
+ result = JSON.parse(response)
295
+ return result["token"] || result["access_token"]
295
296
  end
296
297
 
297
298
  def split_auth_header(header = '')
@@ -1,3 +1,3 @@
1
1
  module DockerRegistry2
2
- VERSION = '1.4.1'
2
+ VERSION = '1.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_registry2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avi Deitcher https://github.com/deitch
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-09-30 00:00:00.000000000 Z
14
+ date: 2019-02-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler