scheduled_value 1.1.1 → 1.1.2

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: 2cbca8d33bff1017917162c185e84e747ac9489a
4
- data.tar.gz: 3682c284cdef32d54d902a7f67c8c1c4d654081f
3
+ metadata.gz: f634016c2c9deeb2636a8aeb00313e9bf9f604f9
4
+ data.tar.gz: 26545c67f6551b41d0dc4ecebc6382863aaec688
5
5
  SHA512:
6
- metadata.gz: 59ac3981e8fe5c60912c2a8cf209a1ab7d04efecad2b9a6fefb4ae9d263d41bd1b307f19a759899be7a742591d8929092c2b32607326787f22e0d8727018238e
7
- data.tar.gz: de0aaef5186841755f45ed11a5b1d7acf97b7572bfb71933bda4b0c712037950406b0256de24f9b9a7c1c147fcdd3f8bb6da7b21474a5e3f9c5cf21851664da8
6
+ metadata.gz: 5c5b96836e60c30228cf9726b802d2eca6500dd3706e8df4a5c28e97d89dc26f5dd96c8e4673d180f29a482b99081a6dba9f4656885878a8985ba165dfe7d903
7
+ data.tar.gz: 32d93b8e6cfd45bbae41f94b6eb95f7e2091f1534d068e219577a4f9059527dc064509cc72cae2306f3fcdaf8414a4ef7845c08f2ef6ee34ff5cc6ec589943ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.1.2 - May 22, 2017
2
+
3
+ * Bug fix: use setters in initializers so that custom conversions will work when deserializing ScheduledValues
4
+
1
5
  # 1.1.1 - February 18, 2017
2
6
 
3
7
  * `ScheduledValue::ScheduledValue#covers_all_time?` will no longer raise an exception if there are no timespans
@@ -4,8 +4,8 @@ module ScheduledValue
4
4
  attr_accessor :start, :finish
5
5
 
6
6
  def initialize(start: nil, finish: nil)
7
- @start = start
8
- @finish = finish
7
+ self.start = start
8
+ self.finish = finish
9
9
 
10
10
  raise "Finish must be after start" if start && finish && start >= finish
11
11
  end
@@ -4,7 +4,7 @@ module ScheduledValue
4
4
 
5
5
  def initialize(start: nil, finish: nil, value: nil)
6
6
  super(start: start, finish: finish)
7
- @value = value
7
+ self.value = value
8
8
  end
9
9
 
10
10
  def attributes
@@ -1,3 +1,3 @@
1
1
  module ScheduledValue
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-18 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler