easy_ml 0.2.0.pre.rc96 → 0.2.0.pre.rc97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/easy_ml/concerns/versionable.rb +3 -3
- data/app/models/easy_ml/model.rb +1 -1
- data/lib/easy_ml/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: a7de56b964119aa83ec62b64cf28fddc4f83ae3947d99a656643fe7355662ac5
|
4
|
+
data.tar.gz: fbdf0cdf54e96c128c37a5998cd2cf20135229e25320e1cce5b003defa448a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 202db609a33bdd29437450364bb945e4a51cfe18f6e6b075f343ec504489a88f254b90c5e14e87d0098c917d372a6adc1ad51800627acc08de57fbc4269fb375
|
7
|
+
data.tar.gz: fcb1ab6d584f6b55d68ffc5a4118807443d61e26dd85cd3968bcd57cec4aa1d1183c2703956f06f38bf549ec7ef705aecb094014149685a761d7b1e4766720ee
|
@@ -9,17 +9,17 @@ module EasyML
|
|
9
9
|
def bump_version(force: false)
|
10
10
|
return version if version.present? && !force
|
11
11
|
|
12
|
-
tz = ActiveSupport::TimeZone.new(EasyML::
|
12
|
+
tz = ActiveSupport::TimeZone.new(EasyML::Support::UTC)
|
13
13
|
orig_version = version
|
14
14
|
prev_version = tz.parse(version.gsub(/_/, "")) if version
|
15
|
-
timestamp = Time.current.in_time_zone(EasyML::
|
15
|
+
timestamp = Time.current.in_time_zone(EasyML::Support::UTC)
|
16
16
|
timestamp = (prev_version + 1.second) if prev_version && compare_versions(timestamp, prev_version)
|
17
17
|
|
18
18
|
self.version = timestamp.strftime(STRING_FORMAT)
|
19
19
|
end
|
20
20
|
|
21
21
|
def compare_versions(version1, version2)
|
22
|
-
tz = ActiveSupport::TimeZone.new(EasyML::
|
22
|
+
tz = ActiveSupport::TimeZone.new(EasyML::Support::UTC)
|
23
23
|
tz.parse(version1.strftime(STRING_FORMAT).gsub(/_/, "")) <= tz.parse(version2.strftime(STRING_FORMAT).gsub(/_/, ""))
|
24
24
|
end
|
25
25
|
end
|
data/app/models/easy_ml/model.rb
CHANGED
@@ -267,7 +267,7 @@ module EasyML
|
|
267
267
|
|
268
268
|
def formatted_version
|
269
269
|
return nil unless version
|
270
|
-
UTC.parse(version).in_time_zone(EasyML::Configuration.timezone).strftime("%B %-d, %Y at %-l:%M %p")
|
270
|
+
EasyML::Support::UTC.parse(version.gsub(/_/, "")).in_time_zone(EasyML::Configuration.timezone).strftime("%B %-d, %Y at %-l:%M %p")
|
271
271
|
end
|
272
272
|
|
273
273
|
def last_run_at
|
data/lib/easy_ml/version.rb
CHANGED