yogo-project 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +17 -19
- data/VERSION +1 -1
- data/lib/yogo-project.rb +1 -2
- data/lib/yogo/datamapper/adapters.rb +20 -0
- data/lib/yogo/datamapper/adapters/postgres.rb +11 -0
- data/lib/yogo/datamapper/adapters/sqlite.rb +11 -0
- data/lib/yogo/datamapper/repository_manager/resource.rb +1 -2
- data/spec/yogo/collection_data_definition_spec.rb +4 -0
- data/yogo-project.gemspec +6 -4
- metadata +9 -6
- data/lib/datamapper/adapters/postgres.rb +0 -9
- data/lib/datamapper/adapters/sqlite.rb +0 -9
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
yogo-project (0.5.
|
4
|
+
yogo-project (0.5.1)
|
5
5
|
carrierwave
|
6
6
|
configatron
|
7
7
|
data_mapper (~> 1.0.2)
|
@@ -17,14 +17,14 @@ GEM
|
|
17
17
|
activesupport (3.0.1)
|
18
18
|
addressable (2.2.2)
|
19
19
|
archive-tar-minitar (0.5.2)
|
20
|
-
autotest (4.4.
|
20
|
+
autotest (4.4.2)
|
21
21
|
builder (2.1.2)
|
22
22
|
carrierwave (0.5.0)
|
23
23
|
activesupport (~> 3.0.0)
|
24
|
-
columnize (0.3.
|
24
|
+
columnize (0.3.2)
|
25
25
|
configatron (2.6.4)
|
26
26
|
yamler (>= 0.1.0)
|
27
|
-
cucumber (0.9.
|
27
|
+
cucumber (0.9.4)
|
28
28
|
builder (~> 2.1.2)
|
29
29
|
diff-lcs (~> 1.1.2)
|
30
30
|
gherkin (~> 2.2.9)
|
@@ -112,20 +112,18 @@ GEM
|
|
112
112
|
rack-test (0.5.6)
|
113
113
|
rack (>= 1.0)
|
114
114
|
rake (0.8.7)
|
115
|
-
rspec (2.0
|
116
|
-
rspec-core (~> 2.0
|
117
|
-
rspec-expectations (~> 2.0
|
118
|
-
rspec-mocks (~> 2.0
|
119
|
-
rspec-core (2.0
|
120
|
-
rspec-expectations (2.0
|
121
|
-
diff-lcs (
|
122
|
-
rspec-mocks (2.0
|
123
|
-
|
124
|
-
rspec-expectations (~> 2.0.1)
|
125
|
-
ruby-debug (0.10.3)
|
115
|
+
rspec (2.1.0)
|
116
|
+
rspec-core (~> 2.1.0)
|
117
|
+
rspec-expectations (~> 2.1.0)
|
118
|
+
rspec-mocks (~> 2.1.0)
|
119
|
+
rspec-core (2.1.0)
|
120
|
+
rspec-expectations (2.1.0)
|
121
|
+
diff-lcs (~> 1.1.2)
|
122
|
+
rspec-mocks (2.1.0)
|
123
|
+
ruby-debug (0.10.4)
|
126
124
|
columnize (>= 0.1)
|
127
|
-
ruby-debug-base (~> 0.10.
|
128
|
-
ruby-debug-base (0.10.
|
125
|
+
ruby-debug-base (~> 0.10.4.0)
|
126
|
+
ruby-debug-base (0.10.4)
|
129
127
|
linecache (>= 0.3)
|
130
128
|
ruby-debug-base19 (0.11.24)
|
131
129
|
columnize (>= 0.3.1)
|
@@ -144,8 +142,8 @@ GEM
|
|
144
142
|
uuidtools (2.1.1)
|
145
143
|
yamler (0.1.0)
|
146
144
|
yard (0.6.1)
|
147
|
-
yardstick (0.
|
148
|
-
yard (~> 0.
|
145
|
+
yardstick (0.2.0)
|
146
|
+
yard (~> 0.6.1)
|
149
147
|
yogo-operation (0.1.2)
|
150
148
|
dataflow
|
151
149
|
yogo-support (~> 0.1.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/yogo-project.rb
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
require 'datamapper/adapters
|
2
|
-
require 'datamapper/adapters/sqlite'
|
1
|
+
require 'yogo/datamapper/adapters'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dm-core'
|
2
|
+
|
3
|
+
require 'yogo/datamapper/adapters/postgres'
|
4
|
+
require 'yogo/datamapper/adapters/sqlite'
|
5
|
+
|
6
|
+
module DataMapper
|
7
|
+
module Adapters
|
8
|
+
|
9
|
+
extendable do
|
10
|
+
# @api private
|
11
|
+
def const_added(const_name)
|
12
|
+
super
|
13
|
+
if Yogo::DataMapper::Adapters.const_defined?(const_name)
|
14
|
+
adapter = const_get(const_name)
|
15
|
+
adapter.send(:include, Yogo::DataMapper::Adapters.const_get(const_name))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -16,11 +16,10 @@ module Yogo
|
|
16
16
|
|
17
17
|
def create_storage
|
18
18
|
::DataMapper.repository.adapter.create_db(managed_repository_database_name)
|
19
|
-
puts "Making new storage"
|
20
19
|
end
|
21
20
|
|
22
21
|
def destroy_storage
|
23
|
-
|
22
|
+
# TODO: Implement me.
|
24
23
|
end
|
25
24
|
|
26
25
|
# @author Ryan Heimbuch
|
data/yogo-project.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{yogo-project}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Heimbuch"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-09}
|
13
13
|
s.description = %q{User configurable data layer for Yogo}
|
14
14
|
s.email = %q{rheimbuch@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,8 +28,6 @@ Gem::Specification.new do |s|
|
|
28
28
|
"features/step_definitions/yogo_project_steps.rb",
|
29
29
|
"features/support/env.rb",
|
30
30
|
"features/yogo_project.feature",
|
31
|
-
"lib/datamapper/adapters/postgres.rb",
|
32
|
-
"lib/datamapper/adapters/sqlite.rb",
|
33
31
|
"lib/yogo-project.rb",
|
34
32
|
"lib/yogo/collection.rb",
|
35
33
|
"lib/yogo/collection/asset.rb",
|
@@ -51,6 +49,9 @@ Gem::Specification.new do |s|
|
|
51
49
|
"lib/yogo/collection/static.rb",
|
52
50
|
"lib/yogo/collection/static/model_configuration.rb",
|
53
51
|
"lib/yogo/configuration.rb",
|
52
|
+
"lib/yogo/datamapper/adapters.rb",
|
53
|
+
"lib/yogo/datamapper/adapters/postgres.rb",
|
54
|
+
"lib/yogo/datamapper/adapters/sqlite.rb",
|
54
55
|
"lib/yogo/datamapper/model/common/properties.rb",
|
55
56
|
"lib/yogo/datamapper/model/configuration.rb",
|
56
57
|
"lib/yogo/datamapper/model/operations/add.rb",
|
@@ -91,6 +92,7 @@ Gem::Specification.new do |s|
|
|
91
92
|
"spec/yogo/all_collections_spec.rb",
|
92
93
|
"spec/yogo/all_data_collections_spec.rb",
|
93
94
|
"spec/yogo/asset_collection_spec.rb",
|
95
|
+
"spec/yogo/collection_data_definition_spec.rb",
|
94
96
|
"spec/yogo/data_collection_spec.rb"
|
95
97
|
]
|
96
98
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ryan Heimbuch
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-09 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -144,8 +144,6 @@ files:
|
|
144
144
|
- features/step_definitions/yogo_project_steps.rb
|
145
145
|
- features/support/env.rb
|
146
146
|
- features/yogo_project.feature
|
147
|
-
- lib/datamapper/adapters/postgres.rb
|
148
|
-
- lib/datamapper/adapters/sqlite.rb
|
149
147
|
- lib/yogo-project.rb
|
150
148
|
- lib/yogo/collection.rb
|
151
149
|
- lib/yogo/collection/asset.rb
|
@@ -167,6 +165,9 @@ files:
|
|
167
165
|
- lib/yogo/collection/static.rb
|
168
166
|
- lib/yogo/collection/static/model_configuration.rb
|
169
167
|
- lib/yogo/configuration.rb
|
168
|
+
- lib/yogo/datamapper/adapters.rb
|
169
|
+
- lib/yogo/datamapper/adapters/postgres.rb
|
170
|
+
- lib/yogo/datamapper/adapters/sqlite.rb
|
170
171
|
- lib/yogo/datamapper/model/common/properties.rb
|
171
172
|
- lib/yogo/datamapper/model/configuration.rb
|
172
173
|
- lib/yogo/datamapper/model/operations/add.rb
|
@@ -194,6 +195,7 @@ files:
|
|
194
195
|
- spec/yogo/asset_collection_spec.rb
|
195
196
|
- spec/yogo/data_collection_spec.rb
|
196
197
|
- yogo-project.gemspec
|
198
|
+
- spec/yogo/collection_data_definition_spec.rb
|
197
199
|
has_rdoc: true
|
198
200
|
homepage: http://github.com/yogo/yogo_project
|
199
201
|
licenses: []
|
@@ -208,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
210
|
requirements:
|
209
211
|
- - ">="
|
210
212
|
- !ruby/object:Gem::Version
|
211
|
-
hash: -
|
213
|
+
hash: -164094726769224473
|
212
214
|
segments:
|
213
215
|
- 0
|
214
216
|
version: "0"
|
@@ -234,4 +236,5 @@ test_files:
|
|
234
236
|
- spec/yogo/all_collections_spec.rb
|
235
237
|
- spec/yogo/all_data_collections_spec.rb
|
236
238
|
- spec/yogo/asset_collection_spec.rb
|
239
|
+
- spec/yogo/collection_data_definition_spec.rb
|
237
240
|
- spec/yogo/data_collection_spec.rb
|