docker-api 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e17294801992ba4c21ef2a8991aa45dac202d891
4
- data.tar.gz: aa1b611592bec9e49568eb6f9c4e3bcf9cdeb8ae
3
+ metadata.gz: 2988f8c913167ca5397109ec491e736d9dd81555
4
+ data.tar.gz: 675470810cdc22194f628f84028df22d6c873be0
5
5
  SHA512:
6
- metadata.gz: 656fe22d8ec340dc7044d76659d72b6853657613a3f2f74a9cca40c3468b7d7cb95e76c6e3103288efe98b9de90756246a2716fac00ceeb7b837d007a05fdc37
7
- data.tar.gz: 501c1dd9fa9bcdf678ae605132d3db8ef2ae2e328a4f15309089bc51fe27d4ba72ea26802c3d6a7aba548c607024788e62a69784b00fa5897078da95052e9c32
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
- self.info['RepoTags'] << (repo.include?(?:) ? repo : "#{repo}:latest")
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.
@@ -1,6 +1,6 @@
1
1
  module Docker
2
2
  # The version of the docker-api gem.
3
- VERSION = '1.8.1'
3
+ VERSION = '1.8.2'
4
4
 
5
5
  # The version of the compatible Docker remote API.
6
6
  API_VERSION = '1.8'
@@ -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 => 'base2', :force => true)
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.0
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
- - Mon, 17 Feb 2014 19:21:58 GMT
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: "{\"status\":\"Pulling repository base\"}{\"status\":\"Pulling image
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: Mon, 17 Feb 2014 19:22:00 GMT
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.0
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
- - Mon, 17 Feb 2014 19:22:00 GMT
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: Mon, 17 Feb 2014 19:22:00 GMT
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon