docker-spec 0.26.0 → 0.27.0

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
  SHA256:
3
- metadata.gz: a73f9d23938eedae0e28e86f926a3d097fb227a6087ab0d35e0d588e4ec2b083
4
- data.tar.gz: fcfa47a61937bec5877b1694f3194913ba8aad58e1bdc581ff522a76027fdab6
3
+ metadata.gz: a11bce9c1425052b9bb9640e04b72597835737e05cc2b3c715b00268fc4f0a1d
4
+ data.tar.gz: 43487f947eb9995e4cb2103ce1b951e706f41fef086132830ce50e54e9ab854d
5
5
  SHA512:
6
- metadata.gz: 2f626bf82bc5f11fd49e6658ea2101bc43c5f5d1ecb5014c08b609e7830c4e35d6dc213f479f5f192268fdbe2d5e555955564b820be41173b3c64c9141375535
7
- data.tar.gz: 0cde30885e974d7799e93956866202b290fc70e8378e0b210a03db94c0198dfd8fe831f5ca95e99e921382bb9301cf57dd3edfac6cc594a75e2150ab253d3ffe
6
+ metadata.gz: bc236841dff09e431893f46821227bb2bda53c9d2c87c6266aa02865006b22ed91d9f79b4c3f273b11479aa9f6882a8091b6e1416e54beac36519a9bf2154ae7
7
+ data.tar.gz: 2826b779580e4b441910b89e67110788f84950485129d4061f5039e124105c1c1412bebb1a9c0e47b33f0b672ad4039be19bbc2aec4676dcab905a194f2946de
@@ -76,8 +76,11 @@ class DockerSpec
76
76
  # Open key value store and get the current tag for this repo
77
77
  tag_prefix = @config[:tag_prefix]
78
78
  store = Moneta.new(:YAML, file: File.expand_path(@config[:tag_db]))
79
- current_tag = store.key?(@config[:image_name]) ?
80
- store[@config[:image_name]].to_s.match(/#{tag_prefix}(.*)/)[1].to_i : 0
79
+ if store.key?(@config[:image_name]) && !store[@config[:image_name]].to_s.match(/#{tag_prefix}(.*)/).nil?
80
+ current_tag = store[@config[:image_name]].to_s.match(/#{tag_prefix}(.*)/)[1].to_i
81
+ else
82
+ current_tag = 0
83
+ end
81
84
  new_tag = tag_prefix + (current_tag + 1).to_s
82
85
 
83
86
  image = Docker::Image.all.detect do |i|
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.26.0"
3
+ VERSION = "0.27.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler