maintain 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/maintain/value.rb +9 -5
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.14
1
+ 0.2.15
@@ -25,6 +25,10 @@ module Maintain
25
25
  (compare_value == compare_value_for(value)) || super
26
26
  end
27
27
 
28
+ def as_json(options = nil)
29
+ value
30
+ end
31
+
28
32
  def class
29
33
  value.class
30
34
  end
@@ -59,7 +63,11 @@ module Maintain
59
63
  @value
60
64
  end
61
65
 
62
- # private
66
+ def value_for(state)
67
+ state_value_for(state, :value)
68
+ end
69
+
70
+ private
63
71
  def compare_value
64
72
  @compare_value ||= compare_value_for(@value)
65
73
  end
@@ -116,9 +124,5 @@ module Maintain
116
124
  state
117
125
  end
118
126
  end
119
-
120
- def value_for(state)
121
- state_value_for(state, :value)
122
- end
123
127
  end
124
128
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintain
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 14
10
- version: 0.2.14
9
+ - 15
10
+ version: 0.2.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Flip Sasser