Permalink
Browse files

Fix Echoe configuration which locked onto RubyGems 1.2.

Release 1.0.2 which should be RubyGems version-independent.
  • Loading branch information...
mperham committed Sep 30, 2008
1 parent b6e2e9a commit 651b8b1448e7b881d1c7decfba50f371d6e0d1c2
Showing with 20 additions and 27 deletions.
  1. +2 −11 Manifest
  2. +17 −15 Rakefile
  3. +1 −1 lib/data_fabric/version.rb
View
@@ -19,15 +19,9 @@ example/config/initializers/inflections.rb
example/config/initializers/mime_types.rb
example/config/initializers/new_rails_defaults.rb
example/config/routes.rb
-example/db/development.sqlite3
example/db/migrate/20080702154628_create_accounts.rb
example/db/migrate/20080702154820_create_figments.rb
-example/db/s0_development.sqlite3
-example/db/s0_test.sqlite3
-example/db/s1_development.sqlite3
-example/db/s1_test.sqlite3
example/db/schema.rb
-example/db/test.sqlite3
example/public/404.html
example/public/422.html
example/public/500.html
@@ -61,19 +55,16 @@ example/test/fixtures/accounts.yml
example/test/functional/accounts_controller_test.rb
example/test/integration/account_figments_test.rb
example/test/test_helper.rb
-example/vendor/plugins/data_fabric/init.rb
-example/vendor/plugins/data_fabric/lib/data_fabric.rb
init.rb
lib/data_fabric/version.rb
lib/data_fabric.rb
+Manifest
Rakefile
README.rdoc
test/connection_test.rb
-test/database.yml
+test/database.yml.example
test/database_test.rb
test/shard_test.rb
test/test_helper.rb
test/thread_test.rb
TESTING.rdoc
-TODO
-Manifest
View
@@ -4,26 +4,28 @@ require 'echoe'
require File.dirname(__FILE__) << "/lib/data_fabric/version"
Echoe.new 'data_fabric' do |p|
- p.version = DataFabric::Version::STRING
- p.author = "Mike Perham"
- p.email = 'mperham@gmail.com'
- p.project = 'fiveruns'
- p.summary = 'Sharding and replication support for ActiveRecord 2.x'
- p.url = "http://github.com/fiveruns/data_fabric"
- p.dependencies = ['activerecord >=2.0.2']
- p.include_rakefile = true
+ p.version = DataFabric::Version::STRING
+ p.author = "Mike Perham"
+ p.email = 'mperham@gmail.com'
+ p.project = 'fiveruns'
+ p.summary = 'Sharding and replication support for ActiveRecord 2.x'
+ p.url = "http://github.com/fiveruns/data_fabric"
+ p.dependencies = ['activerecord >=2.0.2']
+ p.development_dependencies = []
+ p.rubygems_version = nil
+ p.include_rakefile = true
end
task :pretest do
- setup(false)
+ setup(false)
end
task :create_db do
- setup(true)
+ setup(true)
end
task :changelog do
- `git log | grep -v git-svn-id > History.txt`
+ `git log | grep -v git-svn-id > History.txt`
end
def load_database_yml
@@ -55,10 +57,10 @@ def setup(create = false)
ActiveRecord::Base.configurations.each_pair do |identifier, config|
using_connection(identifier) do
db_name = config['database']
- if create
- execute "drop database if exists #{db_name}"
- execute "create database #{db_name}"
- end
+ if create
+ execute "drop database if exists #{db_name}"
+ execute "create database #{db_name}"
+ end
execute "use #{db_name}"
execute "drop table if exists the_whole_burritos"
execute "drop table if exists enchiladas"
@@ -1,5 +1,5 @@
module DataFabric
module Version
- STRING = "1.0.1"
+ STRING = "1.0.2"
end
end

0 comments on commit 651b8b1

Please sign in to comment.