ardm 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +5 -13
  2. data/Gemfile +1 -2
  3. data/LICENSE +2 -2
  4. data/README.md +72 -16
  5. data/ardm.gemspec +1 -0
  6. data/lib/ardm.rb +2 -1
  7. data/lib/ardm/active_record.rb +8 -1
  8. data/lib/ardm/active_record/associations.rb +33 -4
  9. data/lib/ardm/active_record/base.rb +2 -0
  10. data/lib/ardm/active_record/collection.rb +5 -0
  11. data/lib/ardm/active_record/data_mapper_constant.rb +1 -0
  12. data/lib/ardm/active_record/data_mapper_constant_proxy.rb +24 -0
  13. data/lib/ardm/active_record/finalize.rb +18 -0
  14. data/lib/ardm/active_record/predicate_builder/array_handler.rb +10 -16
  15. data/lib/ardm/active_record/predicate_builder/rails3.rb +42 -15
  16. data/lib/ardm/active_record/predicate_builder/rails4.rb +39 -13
  17. data/lib/ardm/active_record/property.rb +24 -12
  18. data/lib/ardm/active_record/query.rb +9 -18
  19. data/lib/ardm/active_record/record.rb +54 -11
  20. data/lib/ardm/active_record/relation.rb +36 -6
  21. data/lib/ardm/active_record/repository.rb +6 -2
  22. data/lib/ardm/data_mapper.rb +2 -0
  23. data/lib/ardm/data_mapper/record.rb +3 -9
  24. data/lib/ardm/version.rb +1 -1
  25. data/spec/ardm/datamapper_constants_spec.rb +31 -0
  26. data/spec/fixtures/article.rb +2 -0
  27. data/spec/integration/api_key_spec.rb +3 -3
  28. data/spec/integration/bcrypt_hash_spec.rb +7 -7
  29. data/spec/integration/comma_separated_list_spec.rb +11 -11
  30. data/spec/integration/dirty_minder_spec.rb +23 -39
  31. data/spec/integration/enum_spec.rb +11 -11
  32. data/spec/integration/epoch_time_spec.rb +6 -6
  33. data/spec/integration/file_path_spec.rb +23 -23
  34. data/spec/integration/flag_spec.rb +11 -13
  35. data/spec/integration/ip_address_spec.rb +15 -15
  36. data/spec/integration/json_spec.rb +7 -7
  37. data/spec/integration/slug_spec.rb +6 -6
  38. data/spec/integration/uri_spec.rb +11 -11
  39. data/spec/integration/uuid_spec.rb +16 -16
  40. data/spec/integration/yaml_spec.rb +8 -8
  41. data/spec/public/model_spec.rb +193 -0
  42. data/spec/public/property/binary_spec.rb +4 -4
  43. data/spec/public/property/boolean_spec.rb +3 -3
  44. data/spec/public/property/class_spec.rb +2 -2
  45. data/spec/public/property/date_spec.rb +2 -2
  46. data/spec/public/property/date_time_spec.rb +2 -2
  47. data/spec/public/property/decimal_spec.rb +2 -2
  48. data/spec/public/property/discriminator_spec.rb +21 -20
  49. data/spec/public/property/float_spec.rb +2 -2
  50. data/spec/public/property/integer_spec.rb +2 -2
  51. data/spec/public/property/object_spec.rb +14 -13
  52. data/spec/public/property/serial_spec.rb +2 -2
  53. data/spec/public/property/string_spec.rb +2 -2
  54. data/spec/public/property/text_spec.rb +2 -2
  55. data/spec/public/property/time_spec.rb +2 -2
  56. data/spec/public/property_spec.rb +44 -48
  57. data/spec/public/resource_spec.rb +278 -0
  58. data/spec/schema.rb +33 -4
  59. data/spec/semipublic/property/boolean_spec.rb +5 -5
  60. data/spec/semipublic/property/class_spec.rb +3 -3
  61. data/spec/semipublic/property/date_spec.rb +8 -8
  62. data/spec/semipublic/property/date_time_spec.rb +9 -9
  63. data/spec/semipublic/property/decimal_spec.rb +16 -16
  64. data/spec/semipublic/property/float_spec.rb +16 -16
  65. data/spec/semipublic/property/integer_spec.rb +16 -16
  66. data/spec/semipublic/property/lookup_spec.rb +4 -4
  67. data/spec/semipublic/property/text_spec.rb +2 -2
  68. data/spec/semipublic/property/time_spec.rb +10 -10
  69. data/spec/semipublic/property_spec.rb +4 -4
  70. data/spec/shared/finder_shared_spec.rb +1151 -0
  71. data/spec/shared/flags_shared_spec.rb +6 -6
  72. data/spec/shared/identity_function_group.rb +1 -1
  73. data/spec/shared/public_property_spec.rb +26 -25
  74. data/spec/shared/resource_spec.rb +1218 -0
  75. data/spec/shared/semipublic_property_spec.rb +23 -22
  76. data/spec/spec_helper.rb +17 -0
  77. data/spec/unit/bcrypt_hash_spec.rb +15 -15
  78. data/spec/unit/csv_spec.rb +11 -11
  79. data/spec/unit/dirty_minder_spec.rb +3 -5
  80. data/spec/unit/enum_spec.rb +17 -17
  81. data/spec/unit/epoch_time_spec.rb +8 -8
  82. data/spec/unit/file_path_spec.rb +9 -9
  83. data/spec/unit/flag_spec.rb +9 -9
  84. data/spec/unit/ip_address_spec.rb +9 -9
  85. data/spec/unit/json_spec.rb +11 -11
  86. data/spec/unit/paranoid_boolean_spec.rb +19 -17
  87. data/spec/unit/paranoid_datetime_spec.rb +21 -19
  88. data/spec/unit/regexp_spec.rb +4 -4
  89. data/spec/unit/uri_spec.rb +8 -8
  90. data/spec/unit/yaml_spec.rb +9 -9
  91. metadata +35 -27
  92. data/lib/ardm/active_record/not_found.rb +0 -7
  93. data/lib/ardm/data_mapper/not_found.rb +0 -5
@@ -6,6 +6,7 @@ module ::ParanoidDateTimeBlog
6
6
 
7
7
  property :id, Serial
8
8
  property :deleted_at, ParanoidDateTime
9
+ timestamps :at
9
10
 
10
11
  before_destroy :before_destroy
11
12
 
@@ -25,7 +26,7 @@ describe Ardm::Property::ParanoidDateTime do
25
26
 
26
27
  describe 'Model#destroy' do
27
28
  before do
28
- pending 'Does not work with < 1.8.7, see if backports fixes it' if RUBY_VERSION < '1.8.7'
29
+ skip 'Does not work with < 1.8.7, see if backports fixes it' if RUBY_VERSION < '1.8.7'
29
30
  end
30
31
 
31
32
  subject { @resource.destroy }
@@ -36,16 +37,16 @@ describe Ardm::Property::ParanoidDateTime do
36
37
  end
37
38
 
38
39
  it 'should not delete the resource from the datastore' do
39
- method(:subject).should_not change { @model.with_deleted.size }.from(0)
40
+ expect(method(:subject)).not_to change { @model.with_deleted.size }.from(0)
40
41
  end
41
42
 
42
43
  it 'should not set the paranoid column' do
43
- method(:subject).should_not change { @resource.deleted_at }.from(nil)
44
+ expect(method(:subject)).not_to change { @resource.deleted_at }.from(nil)
44
45
  end
45
46
 
46
47
  it 'should run the destroy hook' do
47
48
  # NOTE: changed behavior because AR doesn't call hooks on destroying new objects
48
- @resource.should_not_receive(:before_destroy).with(no_args)
49
+ expect(@resource).not_to receive(:before_destroy).with(no_args)
49
50
  subject
50
51
  end
51
52
  end
@@ -55,18 +56,18 @@ describe Ardm::Property::ParanoidDateTime do
55
56
  @resource = @model.create
56
57
  end
57
58
 
58
- it { (!!subject).should be_true }
59
+ it { expect(!!subject).to be true }
59
60
 
60
61
  it 'should not delete the resource from the datastore' do
61
- method(:subject).should_not change { @model.with_deleted.size }.from(1)
62
+ expect(method(:subject)).not_to change { @model.with_deleted.size }.from(1)
62
63
  end
63
64
 
64
65
  it 'should set the paranoid column' do
65
- method(:subject).should change { @resource.deleted_at }.from(nil)
66
+ expect(method(:subject)).to change { @resource.deleted_at }.from(nil)
66
67
  end
67
68
 
68
69
  it 'should run the destroy hook' do
69
- @resource.should_receive(:before_destroy).with(no_args)
70
+ expect(@resource).to receive(:before_destroy).with(no_args)
70
71
  subject
71
72
  end
72
73
  end
@@ -81,15 +82,15 @@ describe Ardm::Property::ParanoidDateTime do
81
82
  end
82
83
 
83
84
  it 'should not delete the resource from the datastore' do
84
- method(:subject).should_not change { @model.with_deleted.size }.from(0)
85
+ expect(method(:subject)).not_to change { @model.with_deleted.size }.from(0)
85
86
  end
86
87
 
87
88
  it 'should not set the paranoid column' do
88
- method(:subject).should_not change { @resource.deleted_at }.from(nil)
89
+ expect(method(:subject)).not_to change { @resource.deleted_at }.from(nil)
89
90
  end
90
91
 
91
92
  it 'should not run the destroy hook' do
92
- @resource.should_not_receive(:before_destroy).with(no_args)
93
+ expect(@resource).not_to receive(:before_destroy).with(no_args)
93
94
  subject
94
95
  end
95
96
  end
@@ -99,18 +100,18 @@ describe Ardm::Property::ParanoidDateTime do
99
100
  @resource = @model.create
100
101
  end
101
102
 
102
- it { (!!subject).should be_true }
103
+ it { expect(!!subject).to be true }
103
104
 
104
105
  it 'should delete the resource from the datastore' do
105
- method(:subject).should change { @model.with_deleted.size }.from(1).to(0)
106
+ expect(method(:subject)).to change { @model.with_deleted.size }.from(1).to(0)
106
107
  end
107
108
 
108
109
  it 'should not set the paranoid column' do
109
- method(:subject).should_not change { @resource.deleted_at }.from(nil)
110
+ expect(method(:subject)).not_to change { @resource.deleted_at }.from(nil)
110
111
  end
111
112
 
112
113
  it 'should not run the destroy hook' do
113
- @resource.should_not_receive(:before_destroy).with(no_args)
114
+ expect(@resource).not_to receive(:before_destroy).with(no_args)
114
115
  subject
115
116
  end
116
117
  end
@@ -118,7 +119,7 @@ describe Ardm::Property::ParanoidDateTime do
118
119
 
119
120
  describe 'Model#with_deleted' do
120
121
  before do
121
- pending 'Does not work with < 1.8.7, see if backports fixes it' if RUBY_VERSION < '1.8.7'
122
+ skip 'Does not work with < 1.8.7, see if backports fixes it' if RUBY_VERSION < '1.8.7'
122
123
  @resource = @model.create
123
124
  @resource.destroy
124
125
  end
@@ -127,7 +128,7 @@ describe Ardm::Property::ParanoidDateTime do
127
128
  subject { @model.with_deleted { @model.all } }
128
129
 
129
130
  it 'should scope the block to return all resources' do
130
- subject.map { |resource| resource.key }.should == [ @resource.key ]
131
+ expect(subject.map { |resource| resource.key }).to eq([ @resource.key ])
131
132
  end
132
133
  end
133
134
 
@@ -135,15 +136,16 @@ describe Ardm::Property::ParanoidDateTime do
135
136
  subject { @model.with_deleted }
136
137
 
137
138
  it 'should return a collection scoped to return all resources' do
138
- subject.map { |resource| resource.key }.should == [ @resource.key ]
139
+ expect(subject.map { |resource| resource.key }).to eq([ @resource.key ])
139
140
  end
140
141
  end
141
142
  end
142
143
 
143
144
  describe 'Model.inherited' do
144
145
  it 'sets @paranoid_properties' do
145
- ::ParanoidDateTimeBlog::Review.instance_variable_get(:@paranoid_properties).should ==
146
+ expect(::ParanoidDateTimeBlog::Review.instance_variable_get(:@paranoid_properties)).to eq(
146
147
  ::ParanoidDateTimeBlog::Article.instance_variable_get(:@paranoid_properties)
148
+ )
147
149
  end
148
150
  end
149
151
  end
@@ -19,7 +19,7 @@ try_spec do
19
19
  end
20
20
 
21
21
  it 'create a regexp instance from argument' do
22
- @result.should == Regexp.new(@input)
22
+ expect(@result).to eq(Regexp.new(@input))
23
23
  end
24
24
  end
25
25
 
@@ -30,7 +30,7 @@ try_spec do
30
30
  end
31
31
 
32
32
  it 'returns nil' do
33
- @result.should be_nil
33
+ expect(@result).to be_nil
34
34
  end
35
35
  end
36
36
  end
@@ -43,7 +43,7 @@ try_spec do
43
43
  end
44
44
 
45
45
  it 'escapes the argument' do
46
- @result.should == '\\d+'
46
+ expect(@result).to eq('\\d+')
47
47
  end
48
48
  end
49
49
 
@@ -54,7 +54,7 @@ try_spec do
54
54
  end
55
55
 
56
56
  it 'returns nil' do
57
- @result.should be_nil
57
+ expect(@result).to be_nil
58
58
  end
59
59
  end
60
60
  end
@@ -13,36 +13,36 @@ try_spec do
13
13
 
14
14
  describe '.dump' do
15
15
  it 'returns the URI as a String' do
16
- @property.dump(@uri).should == @uri_str
16
+ expect(@property.dump(@uri)).to eq(@uri_str)
17
17
  end
18
18
 
19
19
  describe 'when given nil' do
20
20
  it 'returns nil' do
21
- @property.dump(nil).should be_nil
21
+ expect(@property.dump(nil)).to be_nil
22
22
  end
23
23
  end
24
24
 
25
25
  describe 'when given an empty string' do
26
26
  it 'returns an empty URI' do
27
- @property.dump('').should == ''
27
+ expect(@property.dump('')).to eq('')
28
28
  end
29
29
  end
30
30
  end
31
31
 
32
32
  describe '.load' do
33
33
  it 'returns the URI as Addressable' do
34
- @property.load(@uri_str).should == @uri
34
+ expect(@property.load(@uri_str)).to eq(@uri)
35
35
  end
36
36
 
37
37
  describe 'when given nil' do
38
38
  it 'returns nil' do
39
- @property.load(nil).should be_nil
39
+ expect(@property.load(nil)).to be_nil
40
40
  end
41
41
  end
42
42
 
43
43
  describe 'if given an empty String' do
44
44
  it 'returns an empty URI' do
45
- @property.load('').should == Addressable::URI.parse('')
45
+ expect(@property.load('')).to eq(Addressable::URI.parse(''))
46
46
  end
47
47
  end
48
48
  end
@@ -50,13 +50,13 @@ try_spec do
50
50
  describe '.typecast' do
51
51
  describe 'given instance of Addressable::URI' do
52
52
  it 'does nothing' do
53
- @property.typecast(@uri).should == @uri
53
+ expect(@property.typecast(@uri)).to eq(@uri)
54
54
  end
55
55
  end
56
56
 
57
57
  describe 'when given a string' do
58
58
  it 'delegates to .load' do
59
- @property.typecast(@uri_str).should == @uri
59
+ expect(@property.typecast(@uri_str)).to eq(@uri)
60
60
  end
61
61
  end
62
62
  end
@@ -13,21 +13,21 @@ try_spec do
13
13
  describe '.load' do
14
14
  describe 'when nil is provided' do
15
15
  it 'returns nil' do
16
- @property.load(nil).should be_nil
16
+ expect(@property.load(nil)).to be_nil
17
17
  end
18
18
  end
19
19
 
20
20
  describe 'when YAML encoded primitive string is provided' do
21
21
  it 'returns decoded value as Ruby string' do
22
- @property.load("--- yaml string\n").should == 'yaml string'
22
+ expect(@property.load("--- yaml string\n")).to eq('yaml string')
23
23
  end
24
24
  end
25
25
 
26
26
  describe 'when something else is provided' do
27
27
  it 'raises ArgumentError with a meaningful message' do
28
- lambda {
28
+ expect {
29
29
  @property.load(:sym)
30
- }.should raise_error(ArgumentError, '+value+ of a property of YAML type must be nil or a String')
30
+ }.to raise_error(ArgumentError, '+value+ of a property of YAML type must be nil or a String')
31
31
  end
32
32
  end
33
33
  end
@@ -35,31 +35,31 @@ try_spec do
35
35
  describe '.dump' do
36
36
  describe 'when nil is provided' do
37
37
  it 'returns nil' do
38
- @property.dump(nil).should be_nil
38
+ expect(@property.dump(nil)).to be_nil
39
39
  end
40
40
  end
41
41
 
42
42
  describe 'when YAML encoded primitive string is provided' do
43
43
  it 'does not do double encoding' do
44
- YAML.load(@property.dump("--- yaml encoded string\n")).should == 'yaml encoded string'
44
+ expect(YAML.load(@property.dump("--- yaml encoded string\n"))).to eq('yaml encoded string')
45
45
  end
46
46
  end
47
47
 
48
48
  describe 'when regular Ruby string is provided' do
49
49
  it 'dumps argument to YAML' do
50
- YAML.load(@property.dump('dump me (to yaml)')).should == 'dump me (to yaml)'
50
+ expect(YAML.load(@property.dump('dump me (to yaml)'))).to eq('dump me (to yaml)')
51
51
  end
52
52
  end
53
53
 
54
54
  describe 'when Ruby array is provided' do
55
55
  it 'dumps argument to YAML' do
56
- YAML.load(@property.dump([ 1, 2, 3 ])).should == [ 1, 2, 3 ]
56
+ expect(YAML.load(@property.dump([ 1, 2, 3 ]))).to eq([ 1, 2, 3 ])
57
57
  end
58
58
  end
59
59
 
60
60
  describe 'when Ruby hash is provided' do
61
61
  it 'dumps argument to YAML' do
62
- YAML.load(@property.dump({ :datamapper => 'Data access layer in Ruby' })).should == { :datamapper => 'Data access layer in Ruby' }
62
+ expect(YAML.load(@property.dump({ :datamapper => 'Data access layer in Ruby' }))).to eq({ :datamapper => 'Data access layer in Ruby' })
63
63
  end
64
64
  end
65
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Emde
@@ -9,132 +9,132 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-11 00:00:00.000000000 Z
12
+ date: 2014-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.2'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '3.2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bcrypt-ruby
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: 3.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: 3.0.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: fastercsv
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: 1.5.4
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 1.5.4
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: multi_json
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>'
60
+ - - ">"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 1.3.2
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>'
67
+ - - ">"
68
68
  - !ruby/object:Gem::Version
69
69
  version: 1.3.2
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: stringex
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.3.3
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: 1.3.3
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: uuidtools
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: 2.1.2
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 2.1.2
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: coercible
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ! '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ! '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: rake
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ~>
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: 0.9.2
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: 0.9.2
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rspec
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ~>
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '2.0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ~>
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: '2.0'
140
140
  description: ActiveRecord plugin to provide a smooth migration from DataMapper to
@@ -147,7 +147,7 @@ extra_rdoc_files:
147
147
  - LICENSE
148
148
  - README.md
149
149
  files:
150
- - .gitignore
150
+ - ".gitignore"
151
151
  - Gemfile
152
152
  - LICENSE
153
153
  - README.md
@@ -158,12 +158,15 @@ files:
158
158
  - lib/ardm/active_record.rb
159
159
  - lib/ardm/active_record/associations.rb
160
160
  - lib/ardm/active_record/base.rb
161
+ - lib/ardm/active_record/collection.rb
162
+ - lib/ardm/active_record/data_mapper_constant.rb
163
+ - lib/ardm/active_record/data_mapper_constant_proxy.rb
161
164
  - lib/ardm/active_record/dirty.rb
165
+ - lib/ardm/active_record/finalize.rb
162
166
  - lib/ardm/active_record/hooks.rb
163
167
  - lib/ardm/active_record/inheritance.rb
164
168
  - lib/ardm/active_record/is.rb
165
169
  - lib/ardm/active_record/is/state_machine.rb
166
- - lib/ardm/active_record/not_found.rb
167
170
  - lib/ardm/active_record/predicate_builder.rb
168
171
  - lib/ardm/active_record/predicate_builder/array_handler.rb
169
172
  - lib/ardm/active_record/predicate_builder/rails3.rb
@@ -178,7 +181,6 @@ files:
178
181
  - lib/ardm/active_record/storage_names.rb
179
182
  - lib/ardm/active_record/validations.rb
180
183
  - lib/ardm/data_mapper.rb
181
- - lib/ardm/data_mapper/not_found.rb
182
184
  - lib/ardm/data_mapper/record.rb
183
185
  - lib/ardm/env.rb
184
186
  - lib/ardm/property.rb
@@ -246,6 +248,7 @@ files:
246
248
  - lib/ardm/support/subject.rb
247
249
  - lib/ardm/support/subject_set.rb
248
250
  - lib/ardm/version.rb
251
+ - spec/ardm/datamapper_constants_spec.rb
249
252
  - spec/fixtures/api_user.rb
250
253
  - spec/fixtures/article.rb
251
254
  - spec/fixtures/bookmark.rb
@@ -269,6 +272,7 @@ files:
269
272
  - spec/integration/uri_spec.rb
270
273
  - spec/integration/uuid_spec.rb
271
274
  - spec/integration/yaml_spec.rb
275
+ - spec/public/model_spec.rb
272
276
  - spec/public/property/binary_spec.rb
273
277
  - spec/public/property/boolean_spec.rb
274
278
  - spec/public/property/class_spec.rb
@@ -284,6 +288,7 @@ files:
284
288
  - spec/public/property/text_spec.rb
285
289
  - spec/public/property/time_spec.rb
286
290
  - spec/public/property_spec.rb
291
+ - spec/public/resource_spec.rb
287
292
  - spec/rcov.opts
288
293
  - spec/schema.rb
289
294
  - spec/semipublic/property/binary_spec.rb
@@ -301,9 +306,11 @@ files:
301
306
  - spec/semipublic/property/text_spec.rb
302
307
  - spec/semipublic/property/time_spec.rb
303
308
  - spec/semipublic/property_spec.rb
309
+ - spec/shared/finder_shared_spec.rb
304
310
  - spec/shared/flags_shared_spec.rb
305
311
  - spec/shared/identity_function_group.rb
306
312
  - spec/shared/public_property_spec.rb
313
+ - spec/shared/resource_spec.rb
307
314
  - spec/shared/semipublic_property_spec.rb
308
315
  - spec/spec.opts
309
316
  - spec/spec_helper.rb
@@ -325,7 +332,8 @@ files:
325
332
  - tasks/yard.rake
326
333
  - tasks/yardstick.rake
327
334
  homepage: http://github.com/engineyard/ardm
328
- licenses: []
335
+ licenses:
336
+ - MIT
329
337
  metadata: {}
330
338
  post_install_message:
331
339
  rdoc_options: []
@@ -333,17 +341,17 @@ require_paths:
333
341
  - lib
334
342
  required_ruby_version: !ruby/object:Gem::Requirement
335
343
  requirements:
336
- - - ! '>='
344
+ - - ">="
337
345
  - !ruby/object:Gem::Version
338
346
  version: '0'
339
347
  required_rubygems_version: !ruby/object:Gem::Requirement
340
348
  requirements:
341
- - - ! '>='
349
+ - - ">="
342
350
  - !ruby/object:Gem::Version
343
351
  version: '0'
344
352
  requirements: []
345
353
  rubyforge_project:
346
- rubygems_version: 2.1.10
354
+ rubygems_version: 2.2.2
347
355
  signing_key:
348
356
  specification_version: 4
349
357
  summary: ActiveRecord plugin to provide a smooth migration from DataMapper to ActiveRecord