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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yogo-project (0.5.0)
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.1)
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.1)
24
+ columnize (0.3.2)
25
25
  configatron (2.6.4)
26
26
  yamler (>= 0.1.0)
27
- cucumber (0.9.3)
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.1)
116
- rspec-core (~> 2.0.1)
117
- rspec-expectations (~> 2.0.1)
118
- rspec-mocks (~> 2.0.1)
119
- rspec-core (2.0.1)
120
- rspec-expectations (2.0.1)
121
- diff-lcs (>= 1.1.2)
122
- rspec-mocks (2.0.1)
123
- rspec-core (~> 2.0.1)
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.3.0)
128
- ruby-debug-base (0.10.3)
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.1.0)
148
- yard (~> 0.2)
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.0
1
+ 0.5.1
@@ -1,2 +1 @@
1
- require 'datamapper/adapters/postgres'
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
@@ -0,0 +1,11 @@
1
+ module Yogo
2
+ module DataMapper
3
+ module Adapters
4
+ module PostgresAdapter
5
+ def create_db(name)
6
+ execute("CREATE DATABASE #{name}")
7
+ end
8
+ end # module PostgresAdapter
9
+ end # module Adapters
10
+ end # module DataMapper
11
+ end # module Yogo
@@ -0,0 +1,11 @@
1
+ module Yogo
2
+ module DataMapper
3
+ module Adapters
4
+ module SqliteAdapter
5
+ def create_db(name)
6
+ # This is a noop SQLITE makes the database on open.
7
+ end
8
+ end # module PostgresAdapter
9
+ end # module Adapters
10
+ end # module DataMapper
11
+ end # module Yogo
@@ -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
- puts "Nuking storage"
22
+ # TODO: Implement me.
24
23
  end
25
24
 
26
25
  # @author Ryan Heimbuch
@@ -0,0 +1,4 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
2
+
3
+ describe "Yogo::Project::Collection" do
4
+ end
@@ -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.0"
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-01}
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
- - 0
9
- version: 0.5.0
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-01 00:00:00 -06:00
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: -823661757393669054
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
@@ -1,9 +0,0 @@
1
- module DataMapper
2
- module Adapters
3
- class PostgresAdapter < DataObjectsAdapter
4
- def create_db(name)
5
- execute("CREATE DATABASE #{name}")
6
- end
7
- end # module PostgresAdapter
8
- end # module Adapters
9
- end # module DataMapper
@@ -1,9 +0,0 @@
1
- module DataMapper
2
- module Adapters
3
- class SqliteAdapter < DataObjectsAdapter
4
- def create_db(name)
5
- # This is a noop SQLITE makes the database on open.
6
- end
7
- end # module PostgresAdapter
8
- end # module Adapters
9
- end # module DataMapper