ta_by_star 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/by_star/between.rb +4 -3
- data/lib/by_star/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: 3432f6ac70a9a36c00ecb6bc5bfe011d141988145ba0e258b1aff97384b39297
|
4
|
+
data.tar.gz: fe49d64941d540f5a49aeaf63286981195481d75a6d10d3ffe34ce80aab95c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 236fdec7ecae72c70f6149231e0c3e3817401fd793ddca45dd23cc76271d0537fc6ad15850d9ce49dddbcf46dfcac2254ef839f078806f501ed63497e2969b51
|
7
|
+
data.tar.gz: caa17f8b913fe1a71cadef4937d71563177e36f802d262888b2dfb41e2c2a1bbb6866ef99ce7a804c54fb3410c9ace097cc87548e1b7723a5a0fcbd5450e1896
|
data/lib/by_star/between.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
module ByStar
|
2
|
-
|
3
2
|
module Between
|
4
|
-
|
5
3
|
def between_times(*args)
|
6
4
|
options = args.extract_options!.symbolize_keys!
|
7
5
|
|
8
6
|
start_time, end_time = ByStar::Normalization.extract_range(args)
|
7
|
+
start_time = start_time.to_time if start_time.is_a?(String)
|
8
|
+
end_time = end_time.to_time if end_time.is_a?(String)
|
9
|
+
|
9
10
|
offset = options[:offset] || 0
|
10
11
|
field_type = by_star_field_type(options)
|
11
12
|
|
@@ -172,7 +173,7 @@ module ByStar
|
|
172
173
|
end
|
173
174
|
|
174
175
|
def next_week(options = {})
|
175
|
-
between_times(Time.current, Time.current
|
176
|
+
between_times(Time.current, Time.current + 1.week, options)
|
176
177
|
end
|
177
178
|
|
178
179
|
def next_fortnight(options = {})
|
data/lib/by_star/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ta_by_star
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|