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 +4 -4
- data/lib/registry/registry.rb +2 -1
- data/lib/registry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 268dd1aec5b4e778d6b1008be633575ac37d076d
|
4
|
+
data.tar.gz: 79fbb9e626b10d41343897e757b8e803c77c4b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cce5e4063e67fb9c5a57cc3c9553f7d06ac8d7e43cb908fafcb005219b6582bd878744536857cc6e3874e520c4e772f92f82b0b74cf5c75bf3e77c91848a5c23
|
7
|
+
data.tar.gz: e4aa32abced0d1c17133bd8189939a9efa9cdbb7de296ff67dbf31e1ec401972919b5a780292a259c4eb55223e7b94454fa5f6f26efb51053111977728d50c62
|
data/lib/registry/registry.rb
CHANGED
@@ -291,7 +291,8 @@ class DockerRegistry2::Registry
|
|
291
291
|
raise DockerRegistry2::NotFound, error
|
292
292
|
end
|
293
293
|
# now save the web token
|
294
|
-
|
294
|
+
result = JSON.parse(response)
|
295
|
+
return result["token"] || result["access_token"]
|
295
296
|
end
|
296
297
|
|
297
298
|
def split_auth_header(header = '')
|
data/lib/registry/version.rb
CHANGED
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
|
+
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:
|
14
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|