active_hash 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/active_hash.gemspec +5 -4
- data/lib/active_hash/base.rb +5 -1
- data/spec/associations/associations_spec.rb +7 -0
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2009-12-01
|
2
|
+
- Add marked_for_destruction? to be compatible with nested attributes (Brandon Keene)
|
3
|
+
- Added second parameter to respond_to? and cleaned up specs (Brian Takita)
|
4
|
+
|
1
5
|
2009-10-22
|
2
6
|
- added setters to ActiveHash::Base for all fields
|
3
7
|
- instantiating an ActiveHash object with a hash calls the setter methods on the object
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
data/active_hash.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_hash}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Dean", "Mike Dalessio", "Corey Innis", "Peter Jaros"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-12-01}
|
13
13
|
s.email = %q{jeff@zilkey.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -66,3 +66,4 @@ Gem::Specification.new do |s|
|
|
66
66
|
s.add_dependency(%q<activesupport>, [">= 2.2.2"])
|
67
67
|
end
|
68
68
|
end
|
69
|
+
|
data/lib/active_hash/base.rb
CHANGED
@@ -95,7 +95,7 @@ module ActiveHash
|
|
95
95
|
define_custom_find_all_method(field_name)
|
96
96
|
end
|
97
97
|
|
98
|
-
def respond_to?(method_name)
|
98
|
+
def respond_to?(method_name, include_private=false)
|
99
99
|
super ||
|
100
100
|
begin
|
101
101
|
config = configuration_for_custom_finder(method_name)
|
@@ -261,5 +261,9 @@ module ActiveHash
|
|
261
261
|
true
|
262
262
|
end
|
263
263
|
|
264
|
+
def marked_for_destruction?
|
265
|
+
false
|
266
|
+
end
|
267
|
+
|
264
268
|
end
|
265
269
|
end
|
@@ -23,6 +23,7 @@ describe ActiveHash::Base, "associations" do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
|
+
Object.send :remove_const, :City
|
26
27
|
Object.send :remove_const, :Author
|
27
28
|
end
|
28
29
|
|
@@ -118,4 +119,10 @@ describe ActiveHash::Base, "associations" do
|
|
118
119
|
|
119
120
|
end
|
120
121
|
|
122
|
+
describe "#marked_for_destruction?" do
|
123
|
+
it "should return false" do
|
124
|
+
City.new.marked_for_destruction?.should == false
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
121
128
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dean
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2009-
|
15
|
+
date: 2009-12-01 00:00:00 -05:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|