docker_registry2 1.3.0 → 1.3.1

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: f8e366499e6fd775167d81e169e2f4996224d7d5
4
- data.tar.gz: 883e219f5b5782f0573b62893954e075d5e8f246
3
+ metadata.gz: 7649e99c46121517b5f0b9623af91520fcae6ca3
4
+ data.tar.gz: 16685235f7120b6091853c28bb8f97cd12d4bb60
5
5
  SHA512:
6
- metadata.gz: 6b0d7005b5511de80c0034afe83eb0157b8a43c7783ecf8bdc840642a679e4fd2cfe43fe616271abb3fbf9408add87a3d410ff33d54d998517709f3456c4505c
7
- data.tar.gz: b6f14af6e5b24085943df7d0d204d8372d4d4e77f1447f130410db5d5ea443e109e8a74bb935dce094cd01f82b90ff1f67a7d34b90d3f1f04dcf4de2f61c4a49
6
+ metadata.gz: 180a04d76af3f9bca5acc880dd2f501e8328b19c7ab925f9d27b36f9806f0a386a8598db69eb6fd040038b33080db2609696db7c8745bb2cefd8347bf3fda517
7
+ data.tar.gz: d6db1eb2ccc302d914bf290f52393e124cabd50143302680f6106a70f87dac32add45a271d0a05bb10587faaed63d7512edda95cc5a1eddfe69850e7f1cd307a
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ sudo: required
2
+
3
+ services:
4
+ - docker
5
+
6
+ script:
7
+ - make build
8
+ - make test
data/Makefile CHANGED
@@ -1,3 +1,5 @@
1
+ .PHONY: build test deploy all clean
2
+
1
3
  GEM ?= $(shell ruby ./get-gem-name.rb)
2
4
 
3
5
  all: deploy
@@ -21,6 +21,9 @@ module DockerRegistry2
21
21
  class UnknownRegistryException < Exception
22
22
  end
23
23
 
24
+ class NotFound < Exception
25
+ end
26
+
24
27
  class InvalidMethod < Exception
25
28
  end
26
29
  end
@@ -247,6 +247,8 @@ class DockerRegistry2::Registry
247
247
  raise DockerRegistry2::RegistryAuthenticationException
248
248
  rescue RestClient::MethodNotAllowed
249
249
  raise DockerRegistry2::InvalidMethod
250
+ rescue RestClient::NotFound => error
251
+ raise DockerRegistry2::NotFound, error
250
252
  end
251
253
 
252
254
  return response
@@ -1,3 +1,3 @@
1
1
  module DockerRegistry2
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avi Deitcher https://github.com/deitch
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-10-22 00:00:00.000000000 Z
13
+ date: 2017-12-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -75,6 +75,7 @@ extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - ".gitignore"
78
+ - ".travis.yml"
78
79
  - CHANGELOG.md
79
80
  - Gemfile
80
81
  - Makefile