tranzito_utils 1.0.0 → 1.0.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: c4045a5fec9bb07e94ee83a17aafb7f7e58b1c228de4a5562116a9982a362d12
4
- data.tar.gz: dc1d4c81f7f71079c0b66e5b7c6b8e23b88d3fbde4372eef0c50a3ff50569ff6
3
+ metadata.gz: eb78c800e3456adce936194b836803b02e77994e2cd637d47cea8260e0c3590a
4
+ data.tar.gz: 27be769e8d072a649c56d62f60d3091da75bd17960ce892b0a25c3667b250b71
5
5
  SHA512:
6
- metadata.gz: 501bde401f008a5d0ae611539dec533d448d4d75e40ad23b262a1030818a9785201ff75429435cb4fc78c3b4f59e67b5d41d037d10a8a3a21588bb37d13c4282
7
- data.tar.gz: 9ec818c62b80d08cba34103ef490bb6339f431ed835e1d9584428ada2270f4a80bb54e34216577e4cf3ec86e9822b93fb0aae01b5cf7d9783a0e9349ed46c61a
6
+ metadata.gz: 5bc96af7a0c51372dfde74ee3dbbc62fc78db0cd75ebf14d2eeedcf97bc410707de040f6f45e59ddd816afbdd5351434c5df3b0557a2a7c0a2fc10649b353dfb
7
+ data.tar.gz: 1f5af425e1c6c2632a5f1be8079288ff38166f62c6639f1caea8c57153b741f05c8af20b3b9a9e23514c97fce83756b98ecf194bef2826a863fcc8d712c21b35
@@ -57,10 +57,7 @@ module TranzitoUtils
57
57
  @start_time = Time.current
58
58
  @end_time = Time.current.beginning_of_day + 1.week
59
59
  when "all"
60
- @start_time = TranzitoUtils::DEFAULT[:earliest_period_time]
61
- else
62
- @period = default_period
63
- @start_time = TranzitoUtils::DEFAULT[:earliest_period_time]
60
+ @start_time = earliest_period_date
64
61
  end
65
62
  @end_time ||= latest_period_date
66
63
  end
@@ -93,5 +90,9 @@ module TranzitoUtils
93
90
 
94
91
  @timezone ||= TranzitoUtils::DEFAULT[:time_zone]
95
92
  end
93
+
94
+ def earliest_period_date
95
+ TranzitoUtils::DEFAULT[:earliest_period_time]
96
+ end
96
97
  end
97
98
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TranzitoUtils
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tranzito_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - willbarrett
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-09-26 00:00:00.000000000 Z
13
+ date: 2022-09-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails