minke 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzJkZDljZjI0N2MwMWE3OWIyZjJiYTA1ZDljNTE3NzE2ZTAwOGRlNg==
4
+ OGQ3MTA3Mjk1YTJkNzM2ZmI1Mjc0ZTEyZDc4YzAyZDI4Yjk3NjRmNg==
5
5
  data.tar.gz: !binary |-
6
- MGU4ZmViYjI3NTU2ZTlmMjA0N2VkODVkNzlkMzdmYzJhMzc3ZDk0Yw==
6
+ MDZlMjVjNzQyNWRiYjhiM2FkODBjNzg3NDVlZjcyMmU2Y2ZiZDBkNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjNkNzQwYmU2NTUxOWI3ODllOWY3YTgzMDUzNmY4Mjg1OTg1NjhmMzU4N2Rj
10
- MDFiZThhYmUzODJiM2I3MWM1YjY4NDU5YWE1MTg2Yjg1Y2JiNmJjNTRkMmQx
11
- YjA1MzY0MDA5Y2NiZGRhMDhiNzcyNjE4ZTE4NDNmMDg1ZTgzYjg=
9
+ ZTliNWJiYzllNjBjOGVmNWJhZWQ0MDQ0N2ZiNzlhYzhkN2MyNzFmYTdlMzU2
10
+ N2ZjZjk4N2I4YmFlMGYyOTVlY2ZjZDE1YTQ1ZjcxNzU1YmZkZTg3ZGVhOWRi
11
+ NzhhNTYyYjVlMWQ4NGNlNWE3OGYxMGJkNWMyMGMxMzdiMjZiZTI=
12
12
  data.tar.gz: !binary |-
13
- MjE1MDIwMzVjOTE4ODgzY2U2MWU2OThhYTE5ZGIxN2U5YzVlMDYwODFkMmRm
14
- MzY1ZmZlY2U5YjQ3N2Q5ZjFhYjVkMjkzYWIwZWY5N2RkMDgzYmI4YTNlOGQ4
15
- NWQ1NmNjYzE5YmJhZWZkMThjNWVkZjZkYmY2M2E2ZDM2NDZkNzY=
13
+ ZDBiOTdkNTYzMGJmODBmMzM2Zjc2ZWQyZDIyNDg1MjVkMDJjNmEzNTA3ZWU5
14
+ ZTI0ODMyNGU5ZDMxYzY0ZDVkYmRiOGZjNDFhZjc0NDExNzdkNTI5MzU4YzEy
15
+ MzYwYTBkZWRiZmEzZGRkZDAyOTEzMWE4ZDRlN2Q4MThiODJjMzM=
@@ -107,7 +107,12 @@ module Minke
107
107
  end
108
108
 
109
109
  def login_registry url, user, password, email
110
- system("docker login -u #{user} -p #{password} #{url}")
110
+ if docker_version.start_with? '1.11'
111
+ # email is removed for login in docker 1.11
112
+ system("docker login -u #{user} -p #{password} #{url}")
113
+ else
114
+ system("docker login -u #{user} -p #{password} -e #{email} #{url}")
115
+ end
111
116
  $?.exitstatus
112
117
  end
113
118
 
@@ -120,6 +125,10 @@ module Minke
120
125
  system("docker push #{image_name}:latest")
121
126
  $?.exitstatus == 0
122
127
  end
128
+
129
+ def docker_version
130
+ ::Docker.version['Version']
131
+ end
123
132
  end
124
133
  end
125
134
  end
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson