docker-distribution-api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTQxNTU3OWExYzg0ZjI5MDkxNTY0OTJhNmI3YmZjZjZkNGUyZDUwZQ==
5
- data.tar.gz: !binary |-
6
- NzBiZTIxYmNiZmUwYWUxOGQ5ODg1NmUwOGMwNjMyMWJhNjMzMmUzMg==
2
+ SHA1:
3
+ metadata.gz: 69bfb6ab82d84517acf8b0dd9c0473759f6e148b
4
+ data.tar.gz: 3e4bb3a707566c953457302a0f4b934138304fcc
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzVkNmM1OTk4MzAzNmE5MDcyZWM3OGUxMDFkOTI5MjczMjE5OTliNGU0MmU2
10
- NTRkZTk3MzA4NTJlZmUzMGJmNmE1MmZkNGJmMDU0MGIxYmMwZjM5OGRmYWEx
11
- OGJlNWUwNzUxNjdmOGEzZDE3ODExMDZhMjk1NDA0ODM4YzA3NGU=
12
- data.tar.gz: !binary |-
13
- NDc1MTFjYTQ5NGY1MmYxMzZkMDU2YWUxMWVlODZhOGI0N2M4OTM2OTViMjg0
14
- YzVkNDFkNGRlMGVmZGIxYWQ1MjIwOWI5NjMyYTAyZTZlY2ZhYjE3MWUwYTgy
15
- MWFjZjNlZGUzMjk0ZThkMDNmYTE1YzE2NTI5ZWFlZGY5ODc2NzI=
6
+ metadata.gz: 13c2f8f606edf801e489e799bf841dc74dfc84d009077c372849454ef85a5c68d8d13bf84e5e2082b30dec9f13912171fbc3da79651314b25b6a1b75fd319379
7
+ data.tar.gz: f6d053c6b1e9f999c687589d9712d20aea4821c4f543379ab7e6be0d370c43a33133003678057fb307d2a7789eeff8b909bb4e213b6d65179303f923a3f35a23
@@ -14,12 +14,12 @@ module Docker
14
14
  def initialize(url, opts)
15
15
  case
16
16
  when !url.is_a?(String)
17
- raise ArgumentError, "Expected a String, got: '#{url}'"
17
+ raise ArgumentError, "Expected a String, got: '#{url.class}'"
18
18
  when !opts.is_a?(Hash)
19
- raise ArgumentError, "Expected a Hash, got: '#{opts}'"
19
+ raise ArgumentError, "Expected a Hash, got: '#{opts.class}'"
20
20
  else
21
21
  uri = URI.parse(url)
22
- if uri.scheme == 'https'
22
+ if ['https', 'http'].include? uri.scheme
23
23
  @url, @options = url, opts
24
24
  else
25
25
  @url, @options = "http://#{uri}", opts
@@ -94,4 +94,4 @@ module Docker
94
94
  end
95
95
  end
96
96
  end
97
- end
97
+ end
@@ -1,7 +1,7 @@
1
1
  module Docker
2
2
  module Distribution
3
3
  module Api
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  API_VERSION = '2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-distribution-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasily Ostanin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.38'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.38'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.11'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  description: docker-api like client for docker self-hosted registry (distribution).
@@ -73,9 +73,9 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .rspec
78
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
79
  - Gemfile
80
80
  - README.md
81
81
  - Rakefile
@@ -98,19 +98,18 @@ require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ! '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.8
111
+ rubygems_version: 2.5.2
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: API client for docker distribution.
115
115
  test_files: []
116
- has_rdoc: