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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70c7ecd9a51610dba33682df8ea69432b059baf9111c6de3f9d2724967d6b5ec
4
- data.tar.gz: 255d0993ef528bd26ea2f8eb251d0e24f59e8b41f79382c2484364613764bd76
3
+ metadata.gz: 3432f6ac70a9a36c00ecb6bc5bfe011d141988145ba0e258b1aff97384b39297
4
+ data.tar.gz: fe49d64941d540f5a49aeaf63286981195481d75a6d10d3ffe34ce80aab95c92
5
5
  SHA512:
6
- metadata.gz: 575ce56b6d1db5d5d87f274d2951ae8c9d145b8351dc7cde72465104a2656035695a0a4668a43eda8e872192b96a60afa79a0ba7b3396d487ec2a7ae24586234
7
- data.tar.gz: ae7ad6a84b909a30977fc0a0e7e41427eeb5c6ada915d0f0cc2733f7432148eb9888fe58d5d949bdc3a9726491806473ee43e2052d1c229cdf98428897dedfb0
6
+ metadata.gz: 236fdec7ecae72c70f6149231e0c3e3817401fd793ddca45dd23cc76271d0537fc6ad15850d9ce49dddbcf46dfcac2254ef839f078806f501ed63497e2969b51
7
+ data.tar.gz: caa17f8b913fe1a71cadef4937d71563177e36f802d262888b2dfb41e2c2a1bbb6866ef99ce7a804c54fb3410c9ace097cc87548e1b7723a5a0fcbd5450e1896
@@ -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 + 1.week, options)
176
+ between_times(Time.current, Time.current + 1.week, options)
176
177
  end
177
178
 
178
179
  def next_fortnight(options = {})
@@ -1,3 +1,3 @@
1
1
  module ByStar
2
- VERSION = '4.0.0'
2
+ VERSION = '4.1.0'
3
3
  end
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.0.0
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: 2022-06-27 00:00:00.000000000 Z
12
+ date: 2023-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport