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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/kuby/docker/timestamp_tag.rb +6 -3
- data/lib/kuby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ac1ceff123c3a6e81a967ab7cba85c0900799720c7a448dbb947d6fdd88094
|
4
|
+
data.tar.gz: 665f61381cf4857eeac7f079e6439865660ed4daccc7fe7879d4682e362dc4c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e944f3569d137a187aefd64f72449733b5ed550d5455a17cf860c3b140906c94de7f1e7dce831f534f76ecd7175f2df14d7f62aeef6735d402ab248afbfa770
|
7
|
+
data.tar.gz: ae7a508aabf9efcd9d44a53abb42f3b05f9e3f6d4e7fb3635236b9cfe83eda71b71eebfef2f606fac82422bb0844be9873c279a9d69e2c2d377b69999e771a48
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
9
|
-
|
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
|
data/lib/kuby/version.rb
CHANGED