dockerlib-remote 0.1.2 → 0.1.3

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
- MTllMWQwYzhkMGY1N2RjYzdhYzJiNGExYTI2ZWRjMzQ1ODgxNmY4ZQ==
5
- data.tar.gz: !binary |-
6
- ZTM2NmIwYTdlNWNkZjJiODM4ZjUxYTFiZmE4YWU4NjM5ODU1ZWYwYw==
2
+ SHA1:
3
+ metadata.gz: 14089169f6775c8bcf4e334dac3232946d3829ab
4
+ data.tar.gz: c7ea7f5b59053770d0cbf8fb1411244eaa4a12d5
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWRlMTg2ZmY0N2M2NjFkMmQ0YmE4ODNkMDFjMzYzNjhiN2U5ZTQwMGQzMmEx
10
- YzExYWU4YjQ0NjE3ZGVmYjA2NjRhZmI0NDM0YWRmZTk2YThmZjAyYzEzOTM1
11
- MjBkMTdhNmI0MWQxNmM2MjI5ZGQ1YTBmOTQ3YjdlOWE3ZGNhMjk=
12
- data.tar.gz: !binary |-
13
- N2FiNGE3ZDEzZjlhYmFlN2M0NmM0MjhlOTQ1ZjE0YjIxNzFiYmI3NDM4MWRk
14
- YTAyNTNmYjkzZmZkOTFhNDZiYzY4YmIxODM5M2YwNTBkYzRlZjA1NmM2YWEy
15
- MWYwMmM1Mzc1MTYxMzgyNGU2ZmVlMzgwYTcyNTAzYTNiMDAyNjk=
6
+ metadata.gz: 34921b14e13dee722c57701e9014baf6868c49ab90d9fc5d30f158920b2033893dddad14b9ca95d4b01ac2846158ebb417aad52605b61d4edc324fc84993d4d6
7
+ data.tar.gz: aeb6e2b0992f5d2c80ee430a6eb4842c57d99d65c7ea9345873380534a1a5682a0bfeb7fe057fb3f3bfc19de3528507910a04e180c27251dd53b891778962400
@@ -27,12 +27,21 @@ module Dockerlib
27
27
  end
28
28
  end
29
29
 
30
+ def get(path)
31
+ resp = connection.request(method: :get, path: path)
32
+ if resp.status == 200
33
+ {data: load_body(resp)}
34
+ else
35
+ to_server_error resp
36
+ end
37
+ end
38
+
30
39
  protected
31
40
 
32
41
  def connection
33
42
  Excon.new('unix:///', socket: @socket)
34
43
  end
35
-
44
+
36
45
  def load_body(resp)
37
46
  JSON.load(resp.body)
38
47
  end
@@ -1,5 +1,5 @@
1
1
  module Dockerlib
2
2
  module Remote
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.1.3'.freeze
4
4
  end # Remote
5
5
  end # Dockerlib
metadata CHANGED
@@ -1,175 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerlib-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - flant
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2017-01-30 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.45.4
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '1.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ! '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.45.4
30
- - - <
31
- - !ruby/object:Gem::Version
32
- version: '1.0'
33
- - !ruby/object:Gem::Dependency
34
- name: net_status
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ! '>='
38
- - !ruby/object:Gem::Version
39
- version: 0.1.2
40
- - - <
41
- - !ruby/object:Gem::Version
42
- version: '1.0'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ! '>='
48
- - !ruby/object:Gem::Version
49
- version: 0.1.2
50
- - - <
30
+ - - "<"
51
31
  - !ruby/object:Gem::Version
52
32
  version: '1.0'
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: bundler
55
35
  requirement: !ruby/object:Gem::Requirement
56
36
  requirements:
57
- - - ~>
37
+ - - "~>"
58
38
  - !ruby/object:Gem::Version
59
39
  version: '1.7'
60
40
  type: :development
61
41
  prerelease: false
62
42
  version_requirements: !ruby/object:Gem::Requirement
63
43
  requirements:
64
- - - ~>
44
+ - - "~>"
65
45
  - !ruby/object:Gem::Version
66
46
  version: '1.7'
67
47
  - !ruby/object:Gem::Dependency
68
48
  name: rake
69
49
  requirement: !ruby/object:Gem::Requirement
70
50
  requirements:
71
- - - ~>
51
+ - - "~>"
72
52
  - !ruby/object:Gem::Version
73
53
  version: '10.0'
74
54
  type: :development
75
55
  prerelease: false
76
56
  version_requirements: !ruby/object:Gem::Requirement
77
57
  requirements:
78
- - - ~>
58
+ - - "~>"
79
59
  - !ruby/object:Gem::Version
80
60
  version: '10.0'
81
61
  - !ruby/object:Gem::Dependency
82
62
  name: rspec
83
63
  requirement: !ruby/object:Gem::Requirement
84
64
  requirements:
85
- - - ~>
65
+ - - "~>"
86
66
  - !ruby/object:Gem::Version
87
67
  version: '3.4'
88
- - - ! '>='
68
+ - - ">="
89
69
  - !ruby/object:Gem::Version
90
70
  version: 3.4.0
91
71
  type: :development
92
72
  prerelease: false
93
73
  version_requirements: !ruby/object:Gem::Requirement
94
74
  requirements:
95
- - - ~>
75
+ - - "~>"
96
76
  - !ruby/object:Gem::Version
97
77
  version: '3.4'
98
- - - ! '>='
78
+ - - ">="
99
79
  - !ruby/object:Gem::Version
100
80
  version: 3.4.0
101
81
  - !ruby/object:Gem::Dependency
102
82
  name: pry
103
83
  requirement: !ruby/object:Gem::Requirement
104
84
  requirements:
105
- - - ! '>='
85
+ - - ">="
106
86
  - !ruby/object:Gem::Version
107
87
  version: 0.10.3
108
- - - <
88
+ - - "<"
109
89
  - !ruby/object:Gem::Version
110
90
  version: '1.0'
111
91
  type: :development
112
92
  prerelease: false
113
93
  version_requirements: !ruby/object:Gem::Requirement
114
94
  requirements:
115
- - - ! '>='
95
+ - - ">="
116
96
  - !ruby/object:Gem::Version
117
97
  version: 0.10.3
118
- - - <
98
+ - - "<"
119
99
  - !ruby/object:Gem::Version
120
100
  version: '1.0'
121
101
  - !ruby/object:Gem::Dependency
122
102
  name: pry-stack_explorer
123
103
  requirement: !ruby/object:Gem::Requirement
124
104
  requirements:
125
- - - ! '>='
105
+ - - ">="
126
106
  - !ruby/object:Gem::Version
127
107
  version: 0.4.9.2
128
- - - <
108
+ - - "<"
129
109
  - !ruby/object:Gem::Version
130
110
  version: '1.0'
131
111
  type: :development
132
112
  prerelease: false
133
113
  version_requirements: !ruby/object:Gem::Requirement
134
114
  requirements:
135
- - - ! '>='
115
+ - - ">="
136
116
  - !ruby/object:Gem::Version
137
117
  version: 0.4.9.2
138
- - - <
118
+ - - "<"
139
119
  - !ruby/object:Gem::Version
140
120
  version: '1.0'
141
121
  - !ruby/object:Gem::Dependency
142
122
  name: travis
143
123
  requirement: !ruby/object:Gem::Requirement
144
124
  requirements:
145
- - - ~>
125
+ - - "~>"
146
126
  - !ruby/object:Gem::Version
147
127
  version: '1.8'
148
- - - ! '>='
128
+ - - ">="
149
129
  - !ruby/object:Gem::Version
150
130
  version: 1.8.2
151
131
  type: :development
152
132
  prerelease: false
153
133
  version_requirements: !ruby/object:Gem::Requirement
154
134
  requirements:
155
- - - ~>
135
+ - - "~>"
156
136
  - !ruby/object:Gem::Version
157
137
  version: '1.8'
158
- - - ! '>='
138
+ - - ">="
159
139
  - !ruby/object:Gem::Version
160
140
  version: 1.8.2
161
141
  - !ruby/object:Gem::Dependency
162
142
  name: codeclimate-test-reporter
163
143
  requirement: !ruby/object:Gem::Requirement
164
144
  requirements:
165
- - - ~>
145
+ - - "~>"
166
146
  - !ruby/object:Gem::Version
167
147
  version: '0.5'
168
148
  type: :development
169
149
  prerelease: false
170
150
  version_requirements: !ruby/object:Gem::Requirement
171
151
  requirements:
172
- - - ~>
152
+ - - "~>"
173
153
  - !ruby/object:Gem::Version
174
154
  version: '0.5'
175
155
  description: Docker remote api
@@ -192,17 +172,17 @@ require_paths:
192
172
  - lib
193
173
  required_ruby_version: !ruby/object:Gem::Requirement
194
174
  requirements:
195
- - - ! '>='
175
+ - - ">="
196
176
  - !ruby/object:Gem::Version
197
177
  version: '2.1'
198
178
  required_rubygems_version: !ruby/object:Gem::Requirement
199
179
  requirements:
200
- - - ! '>='
180
+ - - ">="
201
181
  - !ruby/object:Gem::Version
202
182
  version: '0'
203
183
  requirements: []
204
184
  rubyforge_project:
205
- rubygems_version: 2.4.5
185
+ rubygems_version: 2.4.6
206
186
  signing_key:
207
187
  specification_version: 4
208
188
  summary: Docker remote api