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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86ad2fdcb22b78a52793bcb4872563a52d7bac3b923d2fbccf990aa057e2955c
4
- data.tar.gz: dd8f47b3f99edb720ad3255dfb0e8774a689dd5b780730a9dd01a0605f314e26
3
+ metadata.gz: a7de56b964119aa83ec62b64cf28fddc4f83ae3947d99a656643fe7355662ac5
4
+ data.tar.gz: fbdf0cdf54e96c128c37a5998cd2cf20135229e25320e1cce5b003defa448a52
5
5
  SHA512:
6
- metadata.gz: ca4fe8d77662e99558351d4b2fffe259097248ad5c3272c8e42d8e20643745e4e3ccfa717c4028918fc1b658ffb7cf79661d9fb359c772ec2c10c30e87959ed1
7
- data.tar.gz: c9cb19869c2f804b0223679c493e4ed1c30d317c0b1e06c051a267c123e37cc40a16d48ea574459d0f54c3280d208f35c85fa5c4e89014c402a211401075e4cb
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::Configuration.timezone)
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::Configuration.timezone)
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::Configuration.timezone)
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
@@ -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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyML
4
- VERSION = "0.2.0-rc96"
4
+ VERSION = "0.2.0-rc97"
5
5
 
6
6
  module Version
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_ml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.rc96
4
+ version: 0.2.0.pre.rc97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger