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 +4 -4
- data/lib/tranzito_utils/concerns/set_period.rb +5 -4
- data/lib/tranzito_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb78c800e3456adce936194b836803b02e77994e2cd637d47cea8260e0c3590a
|
4
|
+
data.tar.gz: 27be769e8d072a649c56d62f60d3091da75bd17960ce892b0a25c3667b250b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
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.
|
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-
|
13
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|