gom 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ shared_examples_for "an adapter with search view" do
12
12
  before :each do
13
13
  @object_one = GOM::Spec::Object.new
14
14
  @object_one.number = 11
15
- @object_one.instance_variable_set :@nested, { :test => "value" }
15
+ @object_one.nested_object = [ { :test => "value" } ]
16
16
 
17
17
  @object_two = GOM::Spec::Object.new
18
18
  @object_two.number = 24
@@ -41,7 +41,7 @@ shared_examples_for "an adapter with search view" do
41
41
  collection.size.should == 1
42
42
  collection.map(&:class).should == [ GOM::Spec::Object ]
43
43
  collection.map(&:number).should == [ 11 ]
44
- collection.map{ |object| object.instance_variable_get :@nested }.should == [ { :test => "value" } ]
44
+ collection.map(&:nested_object).should == [ [ { :test => "value" } ] ]
45
45
  end
46
46
 
47
47
  end
@@ -4,5 +4,6 @@ class GOM::Spec::Object
4
4
 
5
5
  attr_accessor :number
6
6
  attr_accessor :related_object
7
+ attr_accessor :nested_object
7
8
 
8
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: configure
16
- requirement: &17393340 !ruby/object:Gem::Requirement
16
+ requirement: &18145700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.3.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17393340
24
+ version_requirements: *18145700
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &17389780 !ruby/object:Gem::Requirement
27
+ requirement: &18144320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *17389780
35
+ version_requirements: *18144320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: reek
38
- requirement: &17389060 !ruby/object:Gem::Requirement
38
+ requirement: &18014400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '1.2'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *17389060
46
+ version_requirements: *18014400
47
47
  description: Core package of the General Object Mapper.
48
48
  email: b.phifty@gmail.com
49
49
  executables: []