acts_as_living 0.1.18 → 0.1.19

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: cf37165538490c682fd3ad0d6e95de9dd0979b79ebaa0451941138f6ad98d5a9
4
- data.tar.gz: b92afce89dcf932c0c8c8bb568a37b440d25ccdcbfd1d2f8565e2c314d25b8bc
3
+ metadata.gz: 159567b51bd98c24c6fda7a46ebad69c69914d6ba292b5fc854c607723933ea8
4
+ data.tar.gz: dd7717e7d774dee7b9b2c536869186036f602bcae22c58677706486ab90e1d04
5
5
  SHA512:
6
- metadata.gz: 0decbc9e805acb68fcb27c656c8f1300b843db698b6140dc2d22b8422df8924bcd87734fed6e7e08203dd2974c512370960db2b391108f5f96cef78ae441d18d
7
- data.tar.gz: c875f6111028033b17be042ab8ca2ff1b91d3aaabe4081b5da1f9e9ee6adf5b279b08983939892573c64879c0df20cc52a87088d43f820fc3cde750be2ba0856
6
+ metadata.gz: 137fd75859aae03b7598a8999b97bcde0f38329bf7c59e43802f50e6356a5b3dea39617522af2c9115731df054aa936dd2effa864a39d25d7f8a1adf92e4c337
7
+ data.tar.gz: 67a5d0b66bc15ac8ab19a81e8ca46bbb4001d4784eaf0fd3224ae56f01d341b813be624a5f6cfa1640f1821bf8839410ae6c0c9f1cfc074b663f663f2aecb107
@@ -140,7 +140,7 @@ module ActsAsLiving::MethodsDefiner
140
140
  end
141
141
 
142
142
  def last_stage?(stage)
143
- last_stage == stage
143
+ last_stage.to_s == stage.to_s
144
144
  end
145
145
 
146
146
  def first_stage
@@ -148,7 +148,7 @@ module ActsAsLiving::MethodsDefiner
148
148
  end
149
149
 
150
150
  def first_stage?(stage)
151
- first_stage == stage
151
+ first_stage.to_s == stage.to_s
152
152
  end
153
153
 
154
154
  def death
@@ -194,11 +194,11 @@ module ActsAsLiving::MethodsDefiner
194
194
 
195
195
  def define_stage_queries(stage_key)
196
196
  define_method("stage_changed_to_#{stage_key}?") do
197
- stage_changed? && stage_was == stage_key
197
+ stage_changed? && stage_was.to_s == stage_key.to_s
198
198
  end
199
199
 
200
200
  define_method("stage_saved_to_#{stage_key}?") do
201
- saved_change_to_stage? && stage == stage_key
201
+ saved_change_to_stage? && stage.to_s == stage_key.to_s
202
202
  end
203
203
 
204
204
  define_method("pre_#{stage_key}?") do
@@ -210,7 +210,7 @@ module ActsAsLiving::MethodsDefiner
210
210
  end
211
211
 
212
212
  define_method("cancelled_from_#{stage_key}?") do
213
- stage == 'cancelled' && stage_was == stage_key
213
+ stage == 'cancelled' && stage_was.to_s == stage_key.to_s
214
214
  end
215
215
  end
216
216
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsLiving
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_living
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Andrade