scheduled_value 1.2.2 → 1.3.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: 9f86452ee9d8684bc34b2704bf1749670d2ed3b9bb85fee625d33f3c7672db58
4
- data.tar.gz: 664cb83af2b58a9d86ec43859088e2bdc5a73b38bb962210f1577908ec989095
3
+ metadata.gz: 7234802031b34255cf3f454337315a544832e18f803fac5c8a50ef8f95523258
4
+ data.tar.gz: 68b4cdd3575fb251cd28f430db4b6816a8002d31dece0a30c916a1dd59d8f0da
5
5
  SHA512:
6
- metadata.gz: 12678c0f0b7dcacf23a8a27ec5cab9400b4836af555f0534c2b71d33faccfb6d513f055540f9757f8ef6b3c8408fb773d0f36c5f0a49bd83889a80083780334f
7
- data.tar.gz: ff7736721f2fc4443ec1381d64c804a01e48e4229e8a51180dfe9f52f6b5d087790843908cf22f50757aa04aa19753fada6ed69100938863c6c51fb2099f6df0
6
+ metadata.gz: 577bb65200c721d057de48870c8b86337724f2a8fc0df19ec97a66a471dfd658ee62b6f8b44f4c4e68ff571ccd35d88541e99f870a10e67e132cf886eb1e6d8a
7
+ data.tar.gz: 2564ffeb2197265af3e7a26621936220f58bee90655d81bcc606cc57225b717c212ccf3dc673ac0e3d87c88e9be99f60cca5ed3b8c6a2eefa71bb161f2b48ed6
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.3.1
4
- before_install: gem install bundler -v 1.10.5
4
+ before_install: gem install bundler
@@ -1,3 +1,8 @@
1
+ # 1.3.0 - March 28, 2020
2
+
3
+ * Implement #to_hash as an alias for #attributes on all objects, to make ActiveSupport serialization
4
+ behave better
5
+
1
6
  # 1.2.2 - January 17, 2019
2
7
 
3
8
  * Fix a formatting bug where the start time could be accidentally used
@@ -28,6 +28,10 @@ module ScheduledValue
28
28
  }
29
29
  end
30
30
 
31
+ def to_hash(*)
32
+ attributes
33
+ end
34
+
31
35
  def attributes=(attributes)
32
36
  self.timespans = attributes[:timespans] || attributes['timespans']
33
37
  end
@@ -109,4 +113,4 @@ module ScheduledValue
109
113
  timespans.find { |my_timespan| my_timespan.overlaps? timespan }
110
114
  end
111
115
  end
112
- end
116
+ end
@@ -20,6 +20,10 @@ module ScheduledValue
20
20
  }
21
21
  end
22
22
 
23
+ def to_hash(*)
24
+ attributes
25
+ end
26
+
23
27
  def start=(value)
24
28
  @start = convert_time_value(value)
25
29
  end
@@ -11,6 +11,10 @@ module ScheduledValue
11
11
  super.merge(value: value)
12
12
  end
13
13
 
14
+ def to_hash(*)
15
+ attributes
16
+ end
17
+
14
18
  def to_s(format = nil, timezone = nil)
15
19
  "#{value} #{super}"
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module ScheduledValue
2
- VERSION = "1.2.2"
2
+ VERSION = '1.3.0'
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.10"
23
- spec.add_development_dependency "rake", "~> 12.1"
22
+ spec.add_development_dependency "bundler", "~> 2.0"
23
+ spec.add_development_dependency "rake", "~> 13.0"
24
24
  spec.add_development_dependency "minitest"
25
25
  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.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-17 00:00:00.000000000 Z
11
+ date: 2020-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.10'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12.1'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '12.1'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -93,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.7.6
96
+ rubygems_version: 3.0.3
98
97
  signing_key:
99
98
  specification_version: 4
100
99
  summary: Ruby classes for values that change over time