scheduled_value 1.1.0 → 1.1.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
  SHA1:
3
- metadata.gz: bbff5447820539651750ba0579c4445f91c7fffb
4
- data.tar.gz: b6c655b8c7c43d96217942679b797154171cf083
3
+ metadata.gz: 2cbca8d33bff1017917162c185e84e747ac9489a
4
+ data.tar.gz: 3682c284cdef32d54d902a7f67c8c1c4d654081f
5
5
  SHA512:
6
- metadata.gz: 7e6556576492abd7030c5eccf2b301a8b220fe130f477876380aa820d0e0ff91d4333830d3aa7546ae432b711ee3d9f976b9a35420912c2fde4b4891e9f612f1
7
- data.tar.gz: 4314f98db721d158ad9b07bca53b49d26bee67361d815a673057b37092ab1b70ced27e0d01b4d7d12dc4a4554992fead33eaaf3bcc0de5c7ec2fa5a9b956bb3b
6
+ metadata.gz: 59ac3981e8fe5c60912c2a8cf209a1ab7d04efecad2b9a6fefb4ae9d263d41bd1b307f19a759899be7a742591d8929092c2b32607326787f22e0d8727018238e
7
+ data.tar.gz: de0aaef5186841755f45ed11a5b1d7acf97b7572bfb71933bda4b0c712037950406b0256de24f9b9a7c1c147fcdd3f8bb6da7b21474a5e3f9c5cf21851664da8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.1.1 - February 18, 2017
2
+
3
+ * `ScheduledValue::ScheduledValue#covers_all_time?` will no longer raise an exception if there are no timespans
4
+
1
5
  # 1.1.0 - December 25, 2016
2
6
 
3
7
  * Add `ScheduledValue::ScheduledValue#has_value_at?` method to reduce the need for exceptions-as-control-flow
@@ -84,6 +84,8 @@ module ScheduledValue
84
84
 
85
85
  def covers_all_time?
86
86
  timespans_array = timespans.to_a
87
+ return false if timespans_array.empty?
88
+
87
89
  !timespans_array.first.start && !timespans_array.last.finish
88
90
  end
89
91
 
@@ -1,3 +1,3 @@
1
1
  module ScheduledValue
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scheduled_value
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-25 00:00:00.000000000 Z
11
+ date: 2017-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler