docker-api 1.8.1 → 1.8.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2988f8c913167ca5397109ec491e736d9dd81555
|
|
4
|
+
data.tar.gz: 675470810cdc22194f628f84028df22d6c873be0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42e0251763576b242756868e189b16b74763293e7ad69995d9813bebf2e198a3bd34b0bd88489f37e45831db1ec596f4ea24de5b7cae77054fe2a84651bc9a59
|
|
7
|
+
data.tar.gz: 1bef1e84d16864525b062f0aa217209201a5c973f197304060a8ed23cb6579bb3a92a1fb50d4bc63dc0d8a4069978569f54eb20a6b17dc49b2f468ed7ce0e795
|
data/lib/docker/image.rb
CHANGED
|
@@ -41,7 +41,8 @@ class Docker::Image < Docker::Base
|
|
|
41
41
|
self.info['RepoTags'] ||= []
|
|
42
42
|
connection.post(path_for(:tag), opts)
|
|
43
43
|
repo = opts['repo'] || opts[:repo]
|
|
44
|
-
|
|
44
|
+
tag = opts['tag'] || opts[:tag] || 'latest'
|
|
45
|
+
self.info['RepoTags'] << "#{repo}:#{tag}"
|
|
45
46
|
end
|
|
46
47
|
|
|
47
48
|
# Insert a file into the Image, returns a new Image that has that file.
|
data/lib/docker/version.rb
CHANGED
data/spec/docker/image_spec.rb
CHANGED
|
@@ -133,7 +133,7 @@ describe Docker::Image do
|
|
|
133
133
|
subject { described_class.create('fromImage' => 'base') }
|
|
134
134
|
|
|
135
135
|
it 'tags the image with the repo name', :vcr do
|
|
136
|
-
subject.tag(:repo =>
|
|
136
|
+
subject.tag(:repo => :base2, :force => true)
|
|
137
137
|
subject.info['RepoTags'].should include('base2:latest')
|
|
138
138
|
end
|
|
139
139
|
end
|
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- Swipely/Docker-API 1.8.
|
|
11
|
+
- Swipely/Docker-API 1.8.1
|
|
12
12
|
Content-Type:
|
|
13
13
|
- text/plain
|
|
14
14
|
response:
|
|
@@ -19,22 +19,16 @@ http_interactions:
|
|
|
19
19
|
Content-Type:
|
|
20
20
|
- application/json
|
|
21
21
|
Date:
|
|
22
|
-
-
|
|
22
|
+
- Wed, 19 Feb 2014 19:16:28 GMT
|
|
23
23
|
Connection:
|
|
24
24
|
- close
|
|
25
25
|
Transfer-Encoding:
|
|
26
26
|
- ''
|
|
27
27
|
body:
|
|
28
28
|
encoding: UTF-8
|
|
29
|
-
string: "
|
|
30
|
-
(ubuntu-quantl) from base\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Pulling
|
|
31
|
-
image (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Pulling
|
|
32
|
-
dependent layers\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Download
|
|
33
|
-
complete\",\"progressDetail\":{},\"id\":\"27cf78414709\"}{\"status\":\"Download
|
|
34
|
-
complete\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Download
|
|
35
|
-
complete\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}"
|
|
29
|
+
string: ""
|
|
36
30
|
http_version:
|
|
37
|
-
recorded_at:
|
|
31
|
+
recorded_at: Wed, 19 Feb 2014 19:16:52 GMT
|
|
38
32
|
- request:
|
|
39
33
|
method: post
|
|
40
34
|
uri: unix:///var/run/docker.sock/v1.8/images/base/tag?force=true&repo=base2
|
|
@@ -43,7 +37,7 @@ http_interactions:
|
|
|
43
37
|
string: ''
|
|
44
38
|
headers:
|
|
45
39
|
User-Agent:
|
|
46
|
-
- Swipely/Docker-API 1.8.
|
|
40
|
+
- Swipely/Docker-API 1.8.1
|
|
47
41
|
Content-Type:
|
|
48
42
|
- text/plain
|
|
49
43
|
response:
|
|
@@ -52,7 +46,7 @@ http_interactions:
|
|
|
52
46
|
message:
|
|
53
47
|
headers:
|
|
54
48
|
Date:
|
|
55
|
-
-
|
|
49
|
+
- Wed, 19 Feb 2014 19:16:52 GMT
|
|
56
50
|
Content-Length:
|
|
57
51
|
- '0'
|
|
58
52
|
Content-Type:
|
|
@@ -63,5 +57,5 @@ http_interactions:
|
|
|
63
57
|
encoding: UTF-8
|
|
64
58
|
string: ''
|
|
65
59
|
http_version:
|
|
66
|
-
recorded_at:
|
|
60
|
+
recorded_at: Wed, 19 Feb 2014 19:16:52 GMT
|
|
67
61
|
recorded_with: VCR 2.8.0
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: docker-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.
|
|
4
|
+
version: 1.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Swipely, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: excon
|