dm-core 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +38 -0
- data/.travis.yml +45 -0
- data/Gemfile +5 -6
- data/Rakefile +1 -24
- data/dm-core.gemspec +18 -296
- data/lib/dm-core/collection.rb +1 -0
- data/lib/dm-core/model.rb +1 -0
- data/lib/dm-core/model/property.rb +1 -0
- data/lib/dm-core/property.rb +4 -2
- data/lib/dm-core/query.rb +4 -4
- data/lib/dm-core/resource.rb +8 -1
- data/lib/dm-core/resource/persistence_state/transient.rb +14 -1
- data/lib/dm-core/spec/lib/spec_helper.rb +2 -3
- data/lib/dm-core/spec/setup.rb +3 -1
- data/lib/dm-core/spec/shared/resource_spec.rb +5 -1
- data/lib/dm-core/support/mash.rb +1 -1
- data/lib/dm-core/support/ordered_set.rb +1 -0
- data/lib/dm-core/support/subject_set.rb +1 -0
- data/lib/dm-core/version.rb +1 -1
- data/spec/public/associations/many_to_many_spec.rb +2 -2
- data/spec/public/associations/many_to_one_spec.rb +1 -1
- data/spec/public/associations/one_to_many_spec.rb +1 -1
- data/spec/public/associations/one_to_one_spec.rb +2 -2
- data/spec/public/model/relationship_spec.rb +16 -16
- data/spec/public/model_spec.rb +1 -1
- data/spec/public/property/discriminator_spec.rb +2 -2
- data/spec/public/property/object_spec.rb +13 -2
- data/spec/public/property_spec.rb +0 -6
- data/spec/public/resource/state_spec.rb +72 -0
- data/spec/public/resource_spec.rb +5 -5
- data/spec/public/shared/collection_shared_spec.rb +4 -4
- data/spec/public/shared/finder_shared_spec.rb +26 -8
- data/spec/spec.opts +1 -3
- metadata +206 -100
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 30cbcbdfaccae1a9eab6478181b8dd98651a7d6c
|
4
|
+
data.tar.gz: 20af1063f733c96aec831d862fc015aa46c7dd8a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 246c02dd871231048ccb2734df2b52e1a30f9ca5241e72db0ea1d5e32c49353cf3f8065787005b5a6cad11f72fe3edd56b540702a8346524d611669676f9b3e8
|
7
|
+
data.tar.gz: 46548f9fe78b9c915ef4d550ae3f7984fd3ea655debe710d7b2140e73cb11394b8c33c0bb0a5ff9e7f19a6c83ac918a72cbfd1ecf51275503017090bb86533ca
|
data/.gitignore
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## Rubinius
|
17
|
+
*.rbc
|
18
|
+
.rbx
|
19
|
+
|
20
|
+
## PROJECT::GENERAL
|
21
|
+
*.gem
|
22
|
+
coverage
|
23
|
+
profiling
|
24
|
+
turbulence
|
25
|
+
rdoc
|
26
|
+
pkg
|
27
|
+
tmp
|
28
|
+
doc
|
29
|
+
log
|
30
|
+
.yardoc
|
31
|
+
measurements
|
32
|
+
|
33
|
+
## BUNDLER
|
34
|
+
.bundle
|
35
|
+
Gemfile.*
|
36
|
+
|
37
|
+
## PROJECT::SPECIFIC
|
38
|
+
spec/db/
|
data/.travis.yml
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
language: ruby
|
2
|
+
services:
|
3
|
+
- sqlite3
|
4
|
+
- mysql
|
5
|
+
- postgresql
|
6
|
+
before_script:
|
7
|
+
- mysql -e "create database datamapper_alternate_tests;"
|
8
|
+
- mysql -e "create database datamapper_default_tests;"
|
9
|
+
- psql -c "create database datamapper_default_tests;" -U postgres
|
10
|
+
- psql -c "create database datamapper_alternate_tests;" -U postgres
|
11
|
+
before_install:
|
12
|
+
- gem install bundler
|
13
|
+
bundler_args: --without yard guard metrics benchmarks
|
14
|
+
script: "bundle exec rake spec"
|
15
|
+
rvm:
|
16
|
+
- ree
|
17
|
+
- 1.8.7
|
18
|
+
- 1.9.3
|
19
|
+
- 2.0.0
|
20
|
+
- ruby-head
|
21
|
+
- rbx-18mode
|
22
|
+
- rbx-19mode
|
23
|
+
- jruby-18mode
|
24
|
+
env:
|
25
|
+
- "GIT_BRANCH=release-1.2 ADAPTER=in_memory"
|
26
|
+
- "GIT_BRANCH=release-1.2 ADAPTER=yaml"
|
27
|
+
- "GIT_BRANCH=release-1.2 ADAPTER=sqlite"
|
28
|
+
- "GIT_BRANCH=release-1.2 ADAPTER=mysql DM_DB_USER=root DM_DB_PASSWORD=''"
|
29
|
+
- "GIT_BRANCH=release-1.2 ADAPTER=postgres DM_DB_USER=postgres DM_DB_PASSWORD=''"
|
30
|
+
notifications:
|
31
|
+
irc: "irc.freenode.org#datamapper"
|
32
|
+
email:
|
33
|
+
- dan.kubb@gmail.com
|
34
|
+
matrix:
|
35
|
+
allow_failures:
|
36
|
+
- rvm: rbx-19mode
|
37
|
+
env: "GIT_BRANCH=release-1.2 ADAPTER=yaml"
|
38
|
+
include:
|
39
|
+
- rvm: jruby-19mode
|
40
|
+
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
|
41
|
+
- rvm: jruby-head
|
42
|
+
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
|
43
|
+
branches:
|
44
|
+
only:
|
45
|
+
- /^release-.*$/
|
data/Gemfile
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
require File.expand_path('../lib/dm-core/version', __FILE__)
|
2
|
+
|
1
3
|
require 'pathname'
|
2
4
|
|
3
|
-
source '
|
5
|
+
source 'https://rubygems.org'
|
6
|
+
|
7
|
+
gemspec
|
4
8
|
|
5
9
|
SOURCE = ENV.fetch('SOURCE', :git).to_sym
|
6
10
|
REPO_POSTFIX = SOURCE == :path ? '' : '.git'
|
@@ -10,8 +14,6 @@ DO_VERSION = '~> 0.10.6'
|
|
10
14
|
DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
|
11
15
|
CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
|
12
16
|
|
13
|
-
gem 'addressable', '~> 2.2.6'
|
14
|
-
|
15
17
|
group :development do
|
16
18
|
|
17
19
|
gem 'jeweler', '~> 1.6.4'
|
@@ -32,9 +34,6 @@ end
|
|
32
34
|
|
33
35
|
group :datamapper do
|
34
36
|
|
35
|
-
# Make ourself available to the adapters
|
36
|
-
gem 'dm-core', DM_VERSION, :path => File.dirname(__FILE__)
|
37
|
-
|
38
37
|
adapters = ENV['ADAPTERS'] || ENV['ADAPTER']
|
39
38
|
adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
|
40
39
|
|
data/Rakefile
CHANGED
@@ -1,27 +1,4 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
|
4
|
-
|
5
|
-
gem 'jeweler', '~> 1.6.4'
|
6
|
-
require 'jeweler'
|
7
|
-
|
8
|
-
Jeweler::Tasks.new do |gem|
|
9
|
-
gem.name = 'dm-core'
|
10
|
-
gem.summary = 'An Object/Relational Mapper for Ruby'
|
11
|
-
gem.description = 'Faster, Better, Simpler.'
|
12
|
-
gem.email = 'dan.kubb@gmail.com'
|
13
|
-
gem.homepage = 'http://github.com/datamapper/%s' % gem.name
|
14
|
-
gem.authors = [ 'Dan Kubb' ]
|
15
|
-
|
16
|
-
gem.rubyforge_project = 'datamapper'
|
17
|
-
end
|
18
|
-
|
19
|
-
Jeweler::GemcutterTasks.new
|
20
|
-
|
21
|
-
FileList['tasks/**/*.rake'].each { |task| import task }
|
22
|
-
|
23
|
-
rescue LoadError => e
|
24
|
-
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
|
25
|
-
puts '-----------------------------------------------------------------------------'
|
26
|
-
puts e.backtrace # Let's help by actually showing *which* dependency is missing
|
27
|
-
end
|
4
|
+
FileList['tasks/**/*.rake'].each { |task| import task }
|
data/dm-core.gemspec
CHANGED
@@ -1,301 +1,23 @@
|
|
1
|
-
#
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# encoding: utf-8
|
5
2
|
|
6
|
-
|
7
|
-
s.name = "dm-core"
|
8
|
-
s.version = "1.2.0"
|
3
|
+
require File.expand_path('../lib/dm-core/version', __FILE__)
|
9
4
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".autotest",
|
21
|
-
".document",
|
22
|
-
".yardopts",
|
23
|
-
"Gemfile",
|
24
|
-
"LICENSE",
|
25
|
-
"README.rdoc",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"dm-core.gemspec",
|
29
|
-
"lib/dm-core.rb",
|
30
|
-
"lib/dm-core/adapters.rb",
|
31
|
-
"lib/dm-core/adapters/abstract_adapter.rb",
|
32
|
-
"lib/dm-core/adapters/in_memory_adapter.rb",
|
33
|
-
"lib/dm-core/associations/many_to_many.rb",
|
34
|
-
"lib/dm-core/associations/many_to_one.rb",
|
35
|
-
"lib/dm-core/associations/one_to_many.rb",
|
36
|
-
"lib/dm-core/associations/one_to_one.rb",
|
37
|
-
"lib/dm-core/associations/relationship.rb",
|
38
|
-
"lib/dm-core/backwards.rb",
|
39
|
-
"lib/dm-core/collection.rb",
|
40
|
-
"lib/dm-core/core_ext/kernel.rb",
|
41
|
-
"lib/dm-core/core_ext/pathname.rb",
|
42
|
-
"lib/dm-core/core_ext/symbol.rb",
|
43
|
-
"lib/dm-core/identity_map.rb",
|
44
|
-
"lib/dm-core/model.rb",
|
45
|
-
"lib/dm-core/model/hook.rb",
|
46
|
-
"lib/dm-core/model/is.rb",
|
47
|
-
"lib/dm-core/model/property.rb",
|
48
|
-
"lib/dm-core/model/relationship.rb",
|
49
|
-
"lib/dm-core/model/scope.rb",
|
50
|
-
"lib/dm-core/property.rb",
|
51
|
-
"lib/dm-core/property/binary.rb",
|
52
|
-
"lib/dm-core/property/boolean.rb",
|
53
|
-
"lib/dm-core/property/class.rb",
|
54
|
-
"lib/dm-core/property/date.rb",
|
55
|
-
"lib/dm-core/property/date_time.rb",
|
56
|
-
"lib/dm-core/property/decimal.rb",
|
57
|
-
"lib/dm-core/property/discriminator.rb",
|
58
|
-
"lib/dm-core/property/float.rb",
|
59
|
-
"lib/dm-core/property/integer.rb",
|
60
|
-
"lib/dm-core/property/lookup.rb",
|
61
|
-
"lib/dm-core/property/numeric.rb",
|
62
|
-
"lib/dm-core/property/object.rb",
|
63
|
-
"lib/dm-core/property/serial.rb",
|
64
|
-
"lib/dm-core/property/string.rb",
|
65
|
-
"lib/dm-core/property/text.rb",
|
66
|
-
"lib/dm-core/property/time.rb",
|
67
|
-
"lib/dm-core/property/typecast/numeric.rb",
|
68
|
-
"lib/dm-core/property/typecast/time.rb",
|
69
|
-
"lib/dm-core/property_set.rb",
|
70
|
-
"lib/dm-core/query.rb",
|
71
|
-
"lib/dm-core/query/conditions/comparison.rb",
|
72
|
-
"lib/dm-core/query/conditions/operation.rb",
|
73
|
-
"lib/dm-core/query/direction.rb",
|
74
|
-
"lib/dm-core/query/operator.rb",
|
75
|
-
"lib/dm-core/query/path.rb",
|
76
|
-
"lib/dm-core/query/sort.rb",
|
77
|
-
"lib/dm-core/relationship_set.rb",
|
78
|
-
"lib/dm-core/repository.rb",
|
79
|
-
"lib/dm-core/resource.rb",
|
80
|
-
"lib/dm-core/resource/persistence_state.rb",
|
81
|
-
"lib/dm-core/resource/persistence_state/clean.rb",
|
82
|
-
"lib/dm-core/resource/persistence_state/deleted.rb",
|
83
|
-
"lib/dm-core/resource/persistence_state/dirty.rb",
|
84
|
-
"lib/dm-core/resource/persistence_state/immutable.rb",
|
85
|
-
"lib/dm-core/resource/persistence_state/persisted.rb",
|
86
|
-
"lib/dm-core/resource/persistence_state/transient.rb",
|
87
|
-
"lib/dm-core/spec/lib/adapter_helpers.rb",
|
88
|
-
"lib/dm-core/spec/lib/collection_helpers.rb",
|
89
|
-
"lib/dm-core/spec/lib/counter_adapter.rb",
|
90
|
-
"lib/dm-core/spec/lib/pending_helpers.rb",
|
91
|
-
"lib/dm-core/spec/lib/spec_helper.rb",
|
92
|
-
"lib/dm-core/spec/setup.rb",
|
93
|
-
"lib/dm-core/spec/shared/adapter_spec.rb",
|
94
|
-
"lib/dm-core/spec/shared/public/property_spec.rb",
|
95
|
-
"lib/dm-core/spec/shared/resource_spec.rb",
|
96
|
-
"lib/dm-core/spec/shared/sel_spec.rb",
|
97
|
-
"lib/dm-core/spec/shared/semipublic/property_spec.rb",
|
98
|
-
"lib/dm-core/spec/shared/semipublic/query/conditions/abstract_comparison_spec.rb",
|
99
|
-
"lib/dm-core/support/assertions.rb",
|
100
|
-
"lib/dm-core/support/chainable.rb",
|
101
|
-
"lib/dm-core/support/deprecate.rb",
|
102
|
-
"lib/dm-core/support/descendant_set.rb",
|
103
|
-
"lib/dm-core/support/equalizer.rb",
|
104
|
-
"lib/dm-core/support/ext/array.rb",
|
105
|
-
"lib/dm-core/support/ext/blank.rb",
|
106
|
-
"lib/dm-core/support/ext/hash.rb",
|
107
|
-
"lib/dm-core/support/ext/module.rb",
|
108
|
-
"lib/dm-core/support/ext/object.rb",
|
109
|
-
"lib/dm-core/support/ext/string.rb",
|
110
|
-
"lib/dm-core/support/ext/try_dup.rb",
|
111
|
-
"lib/dm-core/support/hook.rb",
|
112
|
-
"lib/dm-core/support/inflections.rb",
|
113
|
-
"lib/dm-core/support/inflector/inflections.rb",
|
114
|
-
"lib/dm-core/support/inflector/methods.rb",
|
115
|
-
"lib/dm-core/support/lazy_array.rb",
|
116
|
-
"lib/dm-core/support/local_object_space.rb",
|
117
|
-
"lib/dm-core/support/logger.rb",
|
118
|
-
"lib/dm-core/support/mash.rb",
|
119
|
-
"lib/dm-core/support/naming_conventions.rb",
|
120
|
-
"lib/dm-core/support/ordered_set.rb",
|
121
|
-
"lib/dm-core/support/subject.rb",
|
122
|
-
"lib/dm-core/support/subject_set.rb",
|
123
|
-
"lib/dm-core/version.rb",
|
124
|
-
"script/performance.rb",
|
125
|
-
"script/profile.rb",
|
126
|
-
"spec/lib/rspec_immediate_feedback_formatter.rb",
|
127
|
-
"spec/public/associations/many_to_many/read_multiple_join_spec.rb",
|
128
|
-
"spec/public/associations/many_to_many_spec.rb",
|
129
|
-
"spec/public/associations/many_to_one_spec.rb",
|
130
|
-
"spec/public/associations/many_to_one_with_boolean_cpk_spec.rb",
|
131
|
-
"spec/public/associations/many_to_one_with_custom_fk_spec.rb",
|
132
|
-
"spec/public/associations/one_to_many_spec.rb",
|
133
|
-
"spec/public/associations/one_to_one_spec.rb",
|
134
|
-
"spec/public/associations/one_to_one_with_boolean_cpk_spec.rb",
|
135
|
-
"spec/public/collection_spec.rb",
|
136
|
-
"spec/public/finalize_spec.rb",
|
137
|
-
"spec/public/model/hook_spec.rb",
|
138
|
-
"spec/public/model/property_spec.rb",
|
139
|
-
"spec/public/model/relationship_spec.rb",
|
140
|
-
"spec/public/model_spec.rb",
|
141
|
-
"spec/public/property/binary_spec.rb",
|
142
|
-
"spec/public/property/boolean_spec.rb",
|
143
|
-
"spec/public/property/class_spec.rb",
|
144
|
-
"spec/public/property/date_spec.rb",
|
145
|
-
"spec/public/property/date_time_spec.rb",
|
146
|
-
"spec/public/property/decimal_spec.rb",
|
147
|
-
"spec/public/property/discriminator_spec.rb",
|
148
|
-
"spec/public/property/float_spec.rb",
|
149
|
-
"spec/public/property/integer_spec.rb",
|
150
|
-
"spec/public/property/object_spec.rb",
|
151
|
-
"spec/public/property/serial_spec.rb",
|
152
|
-
"spec/public/property/string_spec.rb",
|
153
|
-
"spec/public/property/text_spec.rb",
|
154
|
-
"spec/public/property/time_spec.rb",
|
155
|
-
"spec/public/property_spec.rb",
|
156
|
-
"spec/public/resource_spec.rb",
|
157
|
-
"spec/public/sel_spec.rb",
|
158
|
-
"spec/public/setup_spec.rb",
|
159
|
-
"spec/public/shared/association_collection_shared_spec.rb",
|
160
|
-
"spec/public/shared/collection_finder_shared_spec.rb",
|
161
|
-
"spec/public/shared/collection_shared_spec.rb",
|
162
|
-
"spec/public/shared/finder_shared_spec.rb",
|
163
|
-
"spec/rcov.opts",
|
164
|
-
"spec/semipublic/adapters/abstract_adapter_spec.rb",
|
165
|
-
"spec/semipublic/adapters/in_memory_adapter_spec.rb",
|
166
|
-
"spec/semipublic/associations/many_to_many_spec.rb",
|
167
|
-
"spec/semipublic/associations/many_to_one_spec.rb",
|
168
|
-
"spec/semipublic/associations/one_to_many_spec.rb",
|
169
|
-
"spec/semipublic/associations/one_to_one_spec.rb",
|
170
|
-
"spec/semipublic/associations/relationship_spec.rb",
|
171
|
-
"spec/semipublic/associations_spec.rb",
|
172
|
-
"spec/semipublic/collection_spec.rb",
|
173
|
-
"spec/semipublic/model_spec.rb",
|
174
|
-
"spec/semipublic/property/binary_spec.rb",
|
175
|
-
"spec/semipublic/property/boolean_spec.rb",
|
176
|
-
"spec/semipublic/property/class_spec.rb",
|
177
|
-
"spec/semipublic/property/date_spec.rb",
|
178
|
-
"spec/semipublic/property/date_time_spec.rb",
|
179
|
-
"spec/semipublic/property/decimal_spec.rb",
|
180
|
-
"spec/semipublic/property/discriminator_spec.rb",
|
181
|
-
"spec/semipublic/property/float_spec.rb",
|
182
|
-
"spec/semipublic/property/integer_spec.rb",
|
183
|
-
"spec/semipublic/property/lookup_spec.rb",
|
184
|
-
"spec/semipublic/property/serial_spec.rb",
|
185
|
-
"spec/semipublic/property/string_spec.rb",
|
186
|
-
"spec/semipublic/property/text_spec.rb",
|
187
|
-
"spec/semipublic/property/time_spec.rb",
|
188
|
-
"spec/semipublic/property_spec.rb",
|
189
|
-
"spec/semipublic/query/conditions/comparison_spec.rb",
|
190
|
-
"spec/semipublic/query/conditions/operation_spec.rb",
|
191
|
-
"spec/semipublic/query/path_spec.rb",
|
192
|
-
"spec/semipublic/query_spec.rb",
|
193
|
-
"spec/semipublic/resource/state/clean_spec.rb",
|
194
|
-
"spec/semipublic/resource/state/deleted_spec.rb",
|
195
|
-
"spec/semipublic/resource/state/dirty_spec.rb",
|
196
|
-
"spec/semipublic/resource/state/immutable_spec.rb",
|
197
|
-
"spec/semipublic/resource/state/transient_spec.rb",
|
198
|
-
"spec/semipublic/resource/state_spec.rb",
|
199
|
-
"spec/semipublic/resource_spec.rb",
|
200
|
-
"spec/semipublic/shared/condition_shared_spec.rb",
|
201
|
-
"spec/semipublic/shared/resource_shared_spec.rb",
|
202
|
-
"spec/semipublic/shared/resource_state_shared_spec.rb",
|
203
|
-
"spec/semipublic/shared/subject_shared_spec.rb",
|
204
|
-
"spec/spec.opts",
|
205
|
-
"spec/spec_helper.rb",
|
206
|
-
"spec/support/core_ext/hash.rb",
|
207
|
-
"spec/support/core_ext/inheritable_attributes.rb",
|
208
|
-
"spec/support/properties/huge_integer.rb",
|
209
|
-
"spec/unit/array_spec.rb",
|
210
|
-
"spec/unit/blank_spec.rb",
|
211
|
-
"spec/unit/data_mapper/ordered_set/append_spec.rb",
|
212
|
-
"spec/unit/data_mapper/ordered_set/clear_spec.rb",
|
213
|
-
"spec/unit/data_mapper/ordered_set/delete_spec.rb",
|
214
|
-
"spec/unit/data_mapper/ordered_set/each_spec.rb",
|
215
|
-
"spec/unit/data_mapper/ordered_set/empty_spec.rb",
|
216
|
-
"spec/unit/data_mapper/ordered_set/entries_spec.rb",
|
217
|
-
"spec/unit/data_mapper/ordered_set/eql_spec.rb",
|
218
|
-
"spec/unit/data_mapper/ordered_set/equal_value_spec.rb",
|
219
|
-
"spec/unit/data_mapper/ordered_set/hash_spec.rb",
|
220
|
-
"spec/unit/data_mapper/ordered_set/include_spec.rb",
|
221
|
-
"spec/unit/data_mapper/ordered_set/index_spec.rb",
|
222
|
-
"spec/unit/data_mapper/ordered_set/initialize_spec.rb",
|
223
|
-
"spec/unit/data_mapper/ordered_set/merge_spec.rb",
|
224
|
-
"spec/unit/data_mapper/ordered_set/shared/append_spec.rb",
|
225
|
-
"spec/unit/data_mapper/ordered_set/shared/clear_spec.rb",
|
226
|
-
"spec/unit/data_mapper/ordered_set/shared/delete_spec.rb",
|
227
|
-
"spec/unit/data_mapper/ordered_set/shared/each_spec.rb",
|
228
|
-
"spec/unit/data_mapper/ordered_set/shared/empty_spec.rb",
|
229
|
-
"spec/unit/data_mapper/ordered_set/shared/entries_spec.rb",
|
230
|
-
"spec/unit/data_mapper/ordered_set/shared/include_spec.rb",
|
231
|
-
"spec/unit/data_mapper/ordered_set/shared/index_spec.rb",
|
232
|
-
"spec/unit/data_mapper/ordered_set/shared/initialize_spec.rb",
|
233
|
-
"spec/unit/data_mapper/ordered_set/shared/merge_spec.rb",
|
234
|
-
"spec/unit/data_mapper/ordered_set/shared/size_spec.rb",
|
235
|
-
"spec/unit/data_mapper/ordered_set/shared/to_ary_spec.rb",
|
236
|
-
"spec/unit/data_mapper/ordered_set/size_spec.rb",
|
237
|
-
"spec/unit/data_mapper/ordered_set/to_ary_spec.rb",
|
238
|
-
"spec/unit/data_mapper/subject_set/append_spec.rb",
|
239
|
-
"spec/unit/data_mapper/subject_set/clear_spec.rb",
|
240
|
-
"spec/unit/data_mapper/subject_set/delete_spec.rb",
|
241
|
-
"spec/unit/data_mapper/subject_set/each_spec.rb",
|
242
|
-
"spec/unit/data_mapper/subject_set/empty_spec.rb",
|
243
|
-
"spec/unit/data_mapper/subject_set/entries_spec.rb",
|
244
|
-
"spec/unit/data_mapper/subject_set/get_spec.rb",
|
245
|
-
"spec/unit/data_mapper/subject_set/include_spec.rb",
|
246
|
-
"spec/unit/data_mapper/subject_set/named_spec.rb",
|
247
|
-
"spec/unit/data_mapper/subject_set/shared/append_spec.rb",
|
248
|
-
"spec/unit/data_mapper/subject_set/shared/clear_spec.rb",
|
249
|
-
"spec/unit/data_mapper/subject_set/shared/delete_spec.rb",
|
250
|
-
"spec/unit/data_mapper/subject_set/shared/each_spec.rb",
|
251
|
-
"spec/unit/data_mapper/subject_set/shared/empty_spec.rb",
|
252
|
-
"spec/unit/data_mapper/subject_set/shared/entries_spec.rb",
|
253
|
-
"spec/unit/data_mapper/subject_set/shared/get_spec.rb",
|
254
|
-
"spec/unit/data_mapper/subject_set/shared/include_spec.rb",
|
255
|
-
"spec/unit/data_mapper/subject_set/shared/named_spec.rb",
|
256
|
-
"spec/unit/data_mapper/subject_set/shared/size_spec.rb",
|
257
|
-
"spec/unit/data_mapper/subject_set/shared/to_ary_spec.rb",
|
258
|
-
"spec/unit/data_mapper/subject_set/shared/values_at_spec.rb",
|
259
|
-
"spec/unit/data_mapper/subject_set/size_spec.rb",
|
260
|
-
"spec/unit/data_mapper/subject_set/to_ary_spec.rb",
|
261
|
-
"spec/unit/data_mapper/subject_set/values_at_spec.rb",
|
262
|
-
"spec/unit/hash_spec.rb",
|
263
|
-
"spec/unit/hook_spec.rb",
|
264
|
-
"spec/unit/lazy_array_spec.rb",
|
265
|
-
"spec/unit/mash_spec.rb",
|
266
|
-
"spec/unit/module_spec.rb",
|
267
|
-
"spec/unit/object_spec.rb",
|
268
|
-
"spec/unit/try_dup_spec.rb",
|
269
|
-
"tasks/ci.rake",
|
270
|
-
"tasks/spec.rake",
|
271
|
-
"tasks/yard.rake",
|
272
|
-
"tasks/yardstick.rake"
|
273
|
-
]
|
274
|
-
s.homepage = "http://github.com/datamapper/dm-core"
|
275
|
-
s.require_paths = ["lib"]
|
276
|
-
s.rubyforge_project = "datamapper"
|
277
|
-
s.rubygems_version = "1.8.11"
|
278
|
-
s.summary = "An Object/Relational Mapper for Ruby"
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gem.name = 'dm-core'
|
7
|
+
gem.version = DataMapper::VERSION
|
8
|
+
gem.authors = ['Dan Kubb']
|
9
|
+
gem.email = %w[dan.kubb@gmail.com]
|
10
|
+
gem.description = 'DataMapper core library'
|
11
|
+
gem.summary = gem.description
|
12
|
+
gem.homepage = 'https://github.com/datamapper/dm-core'
|
279
13
|
|
280
|
-
|
281
|
-
|
14
|
+
gem.require_paths = %w[lib]
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.test_files = `git ls-files -- spec/*`.split($/)
|
17
|
+
gem.extra_rdoc_files = %w[LICENSE README.rdoc]
|
282
18
|
|
283
|
-
|
284
|
-
s.add_runtime_dependency(%q<addressable>, ["~> 2.2.6"])
|
285
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
286
|
-
s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
|
287
|
-
s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
|
288
|
-
else
|
289
|
-
s.add_dependency(%q<addressable>, ["~> 2.2.6"])
|
290
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
291
|
-
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
292
|
-
s.add_dependency(%q<rspec>, ["~> 1.3.2"])
|
293
|
-
end
|
294
|
-
else
|
295
|
-
s.add_dependency(%q<addressable>, ["~> 2.2.6"])
|
296
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
297
|
-
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
298
|
-
s.add_dependency(%q<rspec>, ["~> 1.3.2"])
|
299
|
-
end
|
300
|
-
end
|
19
|
+
gem.add_dependency('addressable', '~> 2.3')
|
301
20
|
|
21
|
+
gem.add_development_dependency('rake', '~> 10.0.3')
|
22
|
+
gem.add_development_dependency('rspec', '~> 1.3.2')
|
23
|
+
end
|