Permalink
Browse files

Updated dm-couchdb-adapter, dm-rest-adapter, dm-adjust, dm-aggregates…

… to use better namespacing for VERSION, and to use gem "dm-core" linked to their own VERSION.
  • Loading branch information...
1 parent 6f6e29e commit 7c2a30c8ab48c6b403decbaa32f06a730a4bc389 Bernerd Schaefer committed Jul 20, 2008
@@ -9,7 +9,7 @@ require ROOT + 'lib/couchdb_adapter/version'
AUTHOR = "Bernerd Schaefer"
EMAIL = "bj.schaefer@gmail.com"
GEM_NAME = "dm-couchdb-adapter"
-GEM_VERSION = DataMapper::Adapters::CouchDBAdapter::VERSION
+GEM_VERSION = DataMapper::More::CouchDBAdapter::VERSION
GEM_DEPENDENCIES = [["dm-core", GEM_VERSION]]
GEM_CLEAN = ["log", "pkg"]
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] }
@@ -1,10 +1,11 @@
require 'rubygems'
-gem 'dm-core', '=0.9.3'
-require 'base64'
+require 'pathname'
+require Pathname(__FILE__).dirname + 'couchdb_adapter/version'
+gem 'dm-core', DataMapper::More::CouchDBAdapter::VERSION
require 'dm-core'
+require 'base64'
require 'json'
require 'net/http'
-require 'pathname'
require 'uri'
require Pathname(__FILE__).dirname + 'couchdb_adapter/json_object'
require Pathname(__FILE__).dirname + 'couchdb_adapter/view'
@@ -1,5 +1,5 @@
module DataMapper
- module Adapters
+ module More
class CouchDBAdapter
VERSION = "0.9.3"
end
@@ -9,7 +9,7 @@ require ROOT + 'lib/rest_adapter/version'
AUTHOR = "Potomac Ruby Hackers"
EMAIL = "potomac-ruby-hackers@googlegroups.com"
GEM_NAME = "dm-rest-adapter"
-GEM_VERSION = DataMapper::Adapters::RestAdapter::VERSION
+GEM_VERSION = DataMapper::More::RestAdapter::VERSION
GEM_DEPENDENCIES = [["dm-core", GEM_VERSION]]
GEM_CLEAN = ["log", "pkg"]
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] }
@@ -1,9 +1,10 @@
require 'rubygems'
-gem 'dm-core', '=0.9.3'
+require 'pathname'
+require Pathname(__FILE__).dirname + 'rest_adapter/version'
+gem 'dm-core', DataMapper::More::RestAdapter::VERSION
require 'dm-core'
require 'extlib'
require 'dm-serializer'
-require 'pathname'
require 'net/http'
require 'rexml/document'
@@ -1,5 +1,5 @@
module DataMapper
- module Adapters
+ module More
class RestAdapter
VERSION = "0.9.3"
end
View
@@ -9,7 +9,7 @@ require ROOT + 'lib/dm-adjust/version'
AUTHOR = "Sindre Aarsaether"
EMAIL = "sindre [a] identu [d] no"
GEM_NAME = "dm-adjust"
-GEM_VERSION = DataMapper::Adjust::VERSION
+GEM_VERSION = DataMapper::More::Adjust::VERSION
GEM_DEPENDENCIES = [["dm-core", GEM_VERSION]]
GEM_CLEAN = ["log", "pkg"]
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] }
@@ -1,6 +1,9 @@
require 'rubygems'
+require 'pathname'
-gem 'dm-core', '=0.9.3'
+require Pathname(__FILE__).dirname + 'dm-adjust/version'
+
+gem 'dm-core', DataMapper::More::Adjust::VERSION
require 'dm-core'
dir = Pathname(__FILE__).dirname.expand_path / 'dm-adjust'
@@ -1,5 +1,7 @@
module DataMapper
- module Adjust
- VERSION = "0.9.3"
+ module More
+ module Adjust
+ VERSION = "0.9.3"
+ end
end
end
View
@@ -9,7 +9,7 @@ require ROOT + 'lib/dm-aggregates/version'
AUTHOR = "Foy Savas"
EMAIL = "foysavas@gmail.com"
GEM_NAME = "dm-aggregates"
-GEM_VERSION = DataMapper::Aggregates::VERSION
+GEM_VERSION = DataMapper::More::Aggregates::VERSION
GEM_DEPENDENCIES = [["dm-core", GEM_VERSION]]
GEM_CLEAN = ["log", "pkg"]
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] }
@@ -1,13 +1,15 @@
require 'rubygems'
-gem 'dm-core', '=0.9.3'
+dir = Pathname(__FILE__).dirname.expand_path + 'dm-aggregates'
+
+require dir + 'version'
+gem 'dm-core', DataMapper::More::Aggregates::VERSION
require 'dm-core'
-dir = Pathname(__FILE__).dirname.expand_path / 'dm-aggregates'
-require dir / 'aggregate_functions'
-require dir / 'model'
-require dir / 'repository'
-require dir / 'collection'
-require dir / 'adapters' / 'data_objects_adapter'
-require dir / 'support' / 'symbol'
+require dir + 'aggregate_functions'
+require dir + 'model'
+require dir + 'repository'
+require dir + 'collection'
+require dir + 'adapters' + 'data_objects_adapter'
+require dir + 'support' + 'symbol'
@@ -1,5 +1,7 @@
module DataMapper
- module Aggregates
- VERSION = "0.9.3"
+ module More
+ module Aggregates
+ VERSION = "0.9.3"
+ end
end
end
@@ -1,7 +1,8 @@
if defined?(Merb::Plugins)
require 'rubygems'
+ require 'merb_datamapper/version'
- gem 'dm-core', '=0.9.3'
+ gem 'dm-core', DataMapper::MerbDataMapper::VERSION
require 'dm-core'
if File.file?(Merb.dir_for(:config) / "database.yml")

0 comments on commit 7c2a30c

Please sign in to comment.