sam-dm-core 0.9.6
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/.autotest +26 -0
- data/CONTRIBUTING +51 -0
- data/FAQ +92 -0
- data/History.txt +145 -0
- data/MIT-LICENSE +22 -0
- data/Manifest.txt +125 -0
- data/QUICKLINKS +12 -0
- data/README.txt +143 -0
- data/Rakefile +30 -0
- data/SPECS +63 -0
- data/TODO +1 -0
- data/lib/dm-core.rb +224 -0
- data/lib/dm-core/adapters.rb +4 -0
- data/lib/dm-core/adapters/abstract_adapter.rb +202 -0
- data/lib/dm-core/adapters/data_objects_adapter.rb +707 -0
- data/lib/dm-core/adapters/mysql_adapter.rb +136 -0
- data/lib/dm-core/adapters/postgres_adapter.rb +188 -0
- data/lib/dm-core/adapters/sqlite3_adapter.rb +105 -0
- data/lib/dm-core/associations.rb +199 -0
- data/lib/dm-core/associations/many_to_many.rb +147 -0
- data/lib/dm-core/associations/many_to_one.rb +107 -0
- data/lib/dm-core/associations/one_to_many.rb +309 -0
- data/lib/dm-core/associations/one_to_one.rb +61 -0
- data/lib/dm-core/associations/relationship.rb +218 -0
- data/lib/dm-core/associations/relationship_chain.rb +81 -0
- data/lib/dm-core/auto_migrations.rb +113 -0
- data/lib/dm-core/collection.rb +638 -0
- data/lib/dm-core/dependency_queue.rb +31 -0
- data/lib/dm-core/hook.rb +11 -0
- data/lib/dm-core/identity_map.rb +45 -0
- data/lib/dm-core/is.rb +16 -0
- data/lib/dm-core/logger.rb +232 -0
- data/lib/dm-core/migrations/destructive_migrations.rb +17 -0
- data/lib/dm-core/migrator.rb +29 -0
- data/lib/dm-core/model.rb +471 -0
- data/lib/dm-core/naming_conventions.rb +84 -0
- data/lib/dm-core/property.rb +673 -0
- data/lib/dm-core/property_set.rb +162 -0
- data/lib/dm-core/query.rb +625 -0
- data/lib/dm-core/repository.rb +159 -0
- data/lib/dm-core/resource.rb +637 -0
- data/lib/dm-core/scope.rb +58 -0
- data/lib/dm-core/support.rb +7 -0
- data/lib/dm-core/support/array.rb +13 -0
- data/lib/dm-core/support/assertions.rb +8 -0
- data/lib/dm-core/support/errors.rb +23 -0
- data/lib/dm-core/support/kernel.rb +7 -0
- data/lib/dm-core/support/symbol.rb +41 -0
- data/lib/dm-core/transaction.rb +267 -0
- data/lib/dm-core/type.rb +160 -0
- data/lib/dm-core/type_map.rb +80 -0
- data/lib/dm-core/types.rb +19 -0
- data/lib/dm-core/types/boolean.rb +7 -0
- data/lib/dm-core/types/discriminator.rb +34 -0
- data/lib/dm-core/types/object.rb +24 -0
- data/lib/dm-core/types/paranoid_boolean.rb +34 -0
- data/lib/dm-core/types/paranoid_datetime.rb +33 -0
- data/lib/dm-core/types/serial.rb +9 -0
- data/lib/dm-core/types/text.rb +10 -0
- data/lib/dm-core/version.rb +3 -0
- data/script/all +5 -0
- data/script/performance.rb +203 -0
- data/script/profile.rb +87 -0
- data/spec/integration/association_spec.rb +1371 -0
- data/spec/integration/association_through_spec.rb +203 -0
- data/spec/integration/associations/many_to_many_spec.rb +449 -0
- data/spec/integration/associations/many_to_one_spec.rb +163 -0
- data/spec/integration/associations/one_to_many_spec.rb +151 -0
- data/spec/integration/auto_migrations_spec.rb +398 -0
- data/spec/integration/collection_spec.rb +1069 -0
- data/spec/integration/data_objects_adapter_spec.rb +32 -0
- data/spec/integration/dependency_queue_spec.rb +58 -0
- data/spec/integration/model_spec.rb +127 -0
- data/spec/integration/mysql_adapter_spec.rb +85 -0
- data/spec/integration/postgres_adapter_spec.rb +731 -0
- data/spec/integration/property_spec.rb +233 -0
- data/spec/integration/query_spec.rb +506 -0
- data/spec/integration/repository_spec.rb +57 -0
- data/spec/integration/resource_spec.rb +475 -0
- data/spec/integration/sqlite3_adapter_spec.rb +352 -0
- data/spec/integration/sti_spec.rb +208 -0
- data/spec/integration/strategic_eager_loading_spec.rb +138 -0
- data/spec/integration/transaction_spec.rb +75 -0
- data/spec/integration/type_spec.rb +271 -0
- data/spec/lib/logging_helper.rb +18 -0
- data/spec/lib/mock_adapter.rb +27 -0
- data/spec/lib/model_loader.rb +91 -0
- data/spec/lib/publicize_methods.rb +28 -0
- data/spec/models/vehicles.rb +34 -0
- data/spec/models/zoo.rb +47 -0
- data/spec/spec.opts +3 -0
- data/spec/spec_helper.rb +86 -0
- data/spec/unit/adapters/abstract_adapter_spec.rb +133 -0
- data/spec/unit/adapters/adapter_shared_spec.rb +15 -0
- data/spec/unit/adapters/data_objects_adapter_spec.rb +628 -0
- data/spec/unit/adapters/postgres_adapter_spec.rb +133 -0
- data/spec/unit/associations/many_to_many_spec.rb +17 -0
- data/spec/unit/associations/many_to_one_spec.rb +152 -0
- data/spec/unit/associations/one_to_many_spec.rb +393 -0
- data/spec/unit/associations/one_to_one_spec.rb +7 -0
- data/spec/unit/associations/relationship_spec.rb +71 -0
- data/spec/unit/associations_spec.rb +242 -0
- data/spec/unit/auto_migrations_spec.rb +111 -0
- data/spec/unit/collection_spec.rb +182 -0
- data/spec/unit/data_mapper_spec.rb +35 -0
- data/spec/unit/identity_map_spec.rb +126 -0
- data/spec/unit/is_spec.rb +80 -0
- data/spec/unit/migrator_spec.rb +33 -0
- data/spec/unit/model_spec.rb +339 -0
- data/spec/unit/naming_conventions_spec.rb +36 -0
- data/spec/unit/property_set_spec.rb +83 -0
- data/spec/unit/property_spec.rb +753 -0
- data/spec/unit/query_spec.rb +530 -0
- data/spec/unit/repository_spec.rb +93 -0
- data/spec/unit/resource_spec.rb +626 -0
- data/spec/unit/scope_spec.rb +142 -0
- data/spec/unit/transaction_spec.rb +493 -0
- data/spec/unit/type_map_spec.rb +114 -0
- data/spec/unit/type_spec.rb +119 -0
- data/tasks/ci.rb +68 -0
- data/tasks/dm.rb +63 -0
- data/tasks/doc.rb +20 -0
- data/tasks/gemspec.rb +23 -0
- data/tasks/hoe.rb +46 -0
- data/tasks/install.rb +20 -0
- metadata +216 -0
data/tasks/install.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
WIN32 = (RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil
|
2
|
+
SUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS'])
|
3
|
+
|
4
|
+
desc "Install #{GEM_NAME}"
|
5
|
+
if WIN32
|
6
|
+
task :install => :gem do
|
7
|
+
system %{gem install --no-rdoc --no-ri -l pkg/#{GEM_NAME}-#{GEM_VERSION}.gem}
|
8
|
+
end
|
9
|
+
namespace :dev do
|
10
|
+
desc 'Install for development (for windows)'
|
11
|
+
task :winstall => :gem do
|
12
|
+
warn "You can now call 'rake install' instead of 'rake dev:winstall'."
|
13
|
+
system %{gem install --no-rdoc --no-ri -l pkg/#{GEM_NAME}-#{GEM_VERSION}.gem}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
else
|
17
|
+
task :install => :package do
|
18
|
+
sh %{#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION}.gem}
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sam-dm-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sam Smoot
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-07-24 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: data_objects
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.9.5
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: extlib
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 0.9.5
|
32
|
+
version:
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rspec
|
35
|
+
version_requirement:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.1.3
|
41
|
+
version:
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: addressable
|
44
|
+
version_requirement:
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.0.4
|
50
|
+
version:
|
51
|
+
description: Faster, Better, Simpler!
|
52
|
+
email:
|
53
|
+
- ssmoot@gmail.com
|
54
|
+
executables: []
|
55
|
+
|
56
|
+
extensions: []
|
57
|
+
|
58
|
+
extra_rdoc_files:
|
59
|
+
- History.txt
|
60
|
+
- Manifest.txt
|
61
|
+
- README.txt
|
62
|
+
files:
|
63
|
+
- .autotest
|
64
|
+
- CONTRIBUTING
|
65
|
+
- FAQ
|
66
|
+
- History.txt
|
67
|
+
- MIT-LICENSE
|
68
|
+
- Manifest.txt
|
69
|
+
- QUICKLINKS
|
70
|
+
- README.txt
|
71
|
+
- Rakefile
|
72
|
+
- SPECS
|
73
|
+
- TODO
|
74
|
+
- lib/dm-core.rb
|
75
|
+
- lib/dm-core/adapters.rb
|
76
|
+
- lib/dm-core/adapters/abstract_adapter.rb
|
77
|
+
- lib/dm-core/adapters/data_objects_adapter.rb
|
78
|
+
- lib/dm-core/adapters/mysql_adapter.rb
|
79
|
+
- lib/dm-core/adapters/postgres_adapter.rb
|
80
|
+
- lib/dm-core/adapters/sqlite3_adapter.rb
|
81
|
+
- lib/dm-core/associations.rb
|
82
|
+
- lib/dm-core/associations/many_to_many.rb
|
83
|
+
- lib/dm-core/associations/many_to_one.rb
|
84
|
+
- lib/dm-core/associations/one_to_many.rb
|
85
|
+
- lib/dm-core/associations/one_to_one.rb
|
86
|
+
- lib/dm-core/associations/relationship.rb
|
87
|
+
- lib/dm-core/associations/relationship_chain.rb
|
88
|
+
- lib/dm-core/auto_migrations.rb
|
89
|
+
- lib/dm-core/collection.rb
|
90
|
+
- lib/dm-core/dependency_queue.rb
|
91
|
+
- lib/dm-core/hook.rb
|
92
|
+
- lib/dm-core/identity_map.rb
|
93
|
+
- lib/dm-core/is.rb
|
94
|
+
- lib/dm-core/logger.rb
|
95
|
+
- lib/dm-core/migrations/destructive_migrations.rb
|
96
|
+
- lib/dm-core/migrator.rb
|
97
|
+
- lib/dm-core/model.rb
|
98
|
+
- lib/dm-core/naming_conventions.rb
|
99
|
+
- lib/dm-core/property.rb
|
100
|
+
- lib/dm-core/property_set.rb
|
101
|
+
- lib/dm-core/query.rb
|
102
|
+
- lib/dm-core/repository.rb
|
103
|
+
- lib/dm-core/resource.rb
|
104
|
+
- lib/dm-core/scope.rb
|
105
|
+
- lib/dm-core/support.rb
|
106
|
+
- lib/dm-core/support/array.rb
|
107
|
+
- lib/dm-core/support/assertions.rb
|
108
|
+
- lib/dm-core/support/errors.rb
|
109
|
+
- lib/dm-core/support/kernel.rb
|
110
|
+
- lib/dm-core/support/symbol.rb
|
111
|
+
- lib/dm-core/transaction.rb
|
112
|
+
- lib/dm-core/type.rb
|
113
|
+
- lib/dm-core/type_map.rb
|
114
|
+
- lib/dm-core/types.rb
|
115
|
+
- lib/dm-core/types/boolean.rb
|
116
|
+
- lib/dm-core/types/discriminator.rb
|
117
|
+
- lib/dm-core/types/object.rb
|
118
|
+
- lib/dm-core/types/paranoid_boolean.rb
|
119
|
+
- lib/dm-core/types/paranoid_datetime.rb
|
120
|
+
- lib/dm-core/types/serial.rb
|
121
|
+
- lib/dm-core/types/text.rb
|
122
|
+
- lib/dm-core/version.rb
|
123
|
+
- script/all
|
124
|
+
- script/performance.rb
|
125
|
+
- script/profile.rb
|
126
|
+
- spec/integration/association_spec.rb
|
127
|
+
- spec/integration/association_through_spec.rb
|
128
|
+
- spec/integration/associations/many_to_many_spec.rb
|
129
|
+
- spec/integration/associations/many_to_one_spec.rb
|
130
|
+
- spec/integration/associations/one_to_many_spec.rb
|
131
|
+
- spec/integration/auto_migrations_spec.rb
|
132
|
+
- spec/integration/collection_spec.rb
|
133
|
+
- spec/integration/data_objects_adapter_spec.rb
|
134
|
+
- spec/integration/dependency_queue_spec.rb
|
135
|
+
- spec/integration/model_spec.rb
|
136
|
+
- spec/integration/mysql_adapter_spec.rb
|
137
|
+
- spec/integration/postgres_adapter_spec.rb
|
138
|
+
- spec/integration/property_spec.rb
|
139
|
+
- spec/integration/query_spec.rb
|
140
|
+
- spec/integration/repository_spec.rb
|
141
|
+
- spec/integration/resource_spec.rb
|
142
|
+
- spec/integration/sqlite3_adapter_spec.rb
|
143
|
+
- spec/integration/sti_spec.rb
|
144
|
+
- spec/integration/strategic_eager_loading_spec.rb
|
145
|
+
- spec/integration/transaction_spec.rb
|
146
|
+
- spec/integration/type_spec.rb
|
147
|
+
- spec/lib/logging_helper.rb
|
148
|
+
- spec/lib/mock_adapter.rb
|
149
|
+
- spec/lib/model_loader.rb
|
150
|
+
- spec/lib/publicize_methods.rb
|
151
|
+
- spec/models/vehicles.rb
|
152
|
+
- spec/models/zoo.rb
|
153
|
+
- spec/spec.opts
|
154
|
+
- spec/spec_helper.rb
|
155
|
+
- spec/unit/adapters/abstract_adapter_spec.rb
|
156
|
+
- spec/unit/adapters/adapter_shared_spec.rb
|
157
|
+
- spec/unit/adapters/data_objects_adapter_spec.rb
|
158
|
+
- spec/unit/adapters/postgres_adapter_spec.rb
|
159
|
+
- spec/unit/associations/many_to_many_spec.rb
|
160
|
+
- spec/unit/associations/many_to_one_spec.rb
|
161
|
+
- spec/unit/associations/one_to_many_spec.rb
|
162
|
+
- spec/unit/associations/one_to_one_spec.rb
|
163
|
+
- spec/unit/associations/relationship_spec.rb
|
164
|
+
- spec/unit/associations_spec.rb
|
165
|
+
- spec/unit/auto_migrations_spec.rb
|
166
|
+
- spec/unit/collection_spec.rb
|
167
|
+
- spec/unit/data_mapper_spec.rb
|
168
|
+
- spec/unit/identity_map_spec.rb
|
169
|
+
- spec/unit/is_spec.rb
|
170
|
+
- spec/unit/migrator_spec.rb
|
171
|
+
- spec/unit/model_spec.rb
|
172
|
+
- spec/unit/naming_conventions_spec.rb
|
173
|
+
- spec/unit/property_set_spec.rb
|
174
|
+
- spec/unit/property_spec.rb
|
175
|
+
- spec/unit/query_spec.rb
|
176
|
+
- spec/unit/repository_spec.rb
|
177
|
+
- spec/unit/resource_spec.rb
|
178
|
+
- spec/unit/scope_spec.rb
|
179
|
+
- spec/unit/transaction_spec.rb
|
180
|
+
- spec/unit/type_map_spec.rb
|
181
|
+
- spec/unit/type_spec.rb
|
182
|
+
- tasks/ci.rb
|
183
|
+
- tasks/dm.rb
|
184
|
+
- tasks/doc.rb
|
185
|
+
- tasks/gemspec.rb
|
186
|
+
- tasks/hoe.rb
|
187
|
+
- tasks/install.rb
|
188
|
+
has_rdoc: true
|
189
|
+
homepage: http://datamapper.org
|
190
|
+
post_install_message:
|
191
|
+
rdoc_options:
|
192
|
+
- --main
|
193
|
+
- README.txt
|
194
|
+
require_paths:
|
195
|
+
- lib
|
196
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: "0"
|
201
|
+
version:
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: "0"
|
207
|
+
version:
|
208
|
+
requirements: []
|
209
|
+
|
210
|
+
rubyforge_project: datamapper
|
211
|
+
rubygems_version: 1.2.0
|
212
|
+
signing_key:
|
213
|
+
specification_version: 2
|
214
|
+
summary: An Object/Relational Mapper for Ruby
|
215
|
+
test_files: []
|
216
|
+
|