kuby-core 0.7.0 → 0.7.1

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: 7d3f784993d379920477923911af9c73a7ac0f661a8831a3fdc21feea83e9d89
4
- data.tar.gz: 97390f124219ba7e697253c551bbef2527b15d7234793a76431ebdde73e996ed
3
+ metadata.gz: 12ac1ceff123c3a6e81a967ab7cba85c0900799720c7a448dbb947d6fdd88094
4
+ data.tar.gz: 665f61381cf4857eeac7f079e6439865660ed4daccc7fe7879d4682e362dc4c4
5
5
  SHA512:
6
- metadata.gz: 95fceaebbb3959fb3b872b570b9202deb4dfd4a44dc363c25b20398f9e2a199091eb5fdecbeb07caceb2be104b94c07f3294e8b8158737416e2b83efe7e65ebe
7
- data.tar.gz: 248b60b0c0ab90d10c780ce69e3f63ff6aa4b222cef82c5121abf2acb4b462c6534b245556a2683649ccf57440e758d5846e93322828f127c66784701ea11127
6
+ metadata.gz: 2e944f3569d137a187aefd64f72449733b5ed550d5455a17cf860c3b140906c94de7f1e7dce831f534f76ecd7175f2df14d7f62aeef6735d402ab248afbfa770
7
+ data.tar.gz: ae7a508aabf9efcd9d44a53abb42f3b05f9e3f6d4e7fb3635236b9cfe83eda71b71eebfef2f606fac82422bb0844be9873c279a9d69e2c2d377b69999e771a48
@@ -1,3 +1,7 @@
1
+ ## 0.7.1
2
+ * Fix timestamp tag parsing regression caused by adding anchor tags to the regex.
3
+ - Instead, let's rely on `strptime` and return `nil` if it throws an `ArgumentError`.
4
+
1
5
  ## 0.7.0
2
6
  * Automatically perform `docker login` if not already logged into the Docker registry.
3
7
  * Fix timestamp tag parsing issue causing deploy to fail with no available tags.
@@ -1,13 +1,16 @@
1
1
  module Kuby
2
2
  module Docker
3
3
  class TimestampTag
4
- RE = /\A20[\d]{2}(?:0[1-9]|10|11|12)(?:0[1-9]|1[1-9]|2[1-9]|3[01])\z/.freeze
5
4
  FORMAT = '%Y%m%d%H%M%S'.freeze
6
5
 
7
6
  def self.try_parse(str)
8
- if str =~ RE
9
- new(Time.strptime(str, FORMAT))
7
+ time = begin
8
+ Time.strptime(str, FORMAT)
9
+ rescue ArgumentError
10
+ return nil
10
11
  end
12
+
13
+ new(time)
11
14
  end
12
15
 
13
16
  attr_reader :time
@@ -1,3 +1,3 @@
1
1
  module Kuby
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro