maintain 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/maintain/maintainer.rb +1 -1
- data/maintain.gemspec +1 -1
- data/spec/active_record_spec.rb +3 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.13
|
data/lib/maintain/maintainer.rb
CHANGED
@@ -179,7 +179,7 @@ module Maintain
|
|
179
179
|
end
|
180
180
|
|
181
181
|
def maintainee
|
182
|
-
@
|
182
|
+
@maintainee.split('::').inject(Object) {|mod, const| mod.const_get(const) }
|
183
183
|
end
|
184
184
|
|
185
185
|
def method_free?(method_name, class_method = false)
|
data/maintain.gemspec
CHANGED
data/spec/active_record_spec.rb
CHANGED
@@ -259,7 +259,9 @@ if proceed
|
|
259
259
|
|
260
260
|
it "should not screw with to_json" do
|
261
261
|
foo = ActiveMaintainTest.create
|
262
|
-
|
262
|
+
json_hash = {:active_maintain_test => {:id => foo.id, :permissions => 0, :status => :new}.stringify_keys}.stringify_keys
|
263
|
+
foo.as_json.should == json_hash
|
264
|
+
json_hash.to_json.should == json_hash.to_json
|
263
265
|
end
|
264
266
|
end
|
265
267
|
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 13
|
10
|
+
version: 0.2.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Flip Sasser
|