secondbase 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +24 -1
  2. data/VERSION +1 -1
  3. data/secondbase.gemspec +72 -0
  4. metadata +4 -3
data/README.rdoc CHANGED
@@ -29,7 +29,30 @@ Run `bundle install`. You thought it would be harder?
29
29
 
30
30
  == Usage
31
31
  === Database
32
- - setting up database.yml
32
+ Configure your database.yml to define your secondbase:
33
+
34
+ # Your normal rails definitions...
35
+ development:
36
+ adapter: mysql #postgres, oracle, etc
37
+ encoding: utf8
38
+ database: development
39
+
40
+ test:
41
+ adapter: mysql #postgres, oracle, etc
42
+ encoding: utf8
43
+ database: test
44
+
45
+ # Your secondbase database configurations...
46
+ secondbase:
47
+ development:
48
+ adapter: mysql
49
+ encoding: utf8
50
+ database: secondbase_development
51
+
52
+ test:
53
+ adapter: mysql
54
+ encoding: utf8
55
+ database: secondbase_test
33
56
 
34
57
 
35
58
  === Migrations
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -0,0 +1,72 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{secondbase}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["karledurante"]
12
+ s.date = %q{2010-12-06}
13
+ s.description = %q{Secondbase provides support to Rails to create a homogeneous for a dual database project. Using the rake tasks already familiar to you, this gem enables Rails to work with two primary databases, instead of just one.}
14
+ s.email = %q{kdurante@customink.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/generators/secondbase/USAGE",
28
+ "lib/generators/secondbase/migration_generator.rb",
29
+ "lib/generators/secondbase/templates/migration.rb",
30
+ "lib/secondbase.rb",
31
+ "lib/secondbase/fixtures.rb",
32
+ "lib/secondbase/model.rb",
33
+ "lib/secondbase/railtie.rb",
34
+ "lib/secondbase/rake_method_chain.rb",
35
+ "lib/tasks/secondbase.rake",
36
+ "secondbase.gemspec",
37
+ "test/helper.rb",
38
+ "test/test_secondbase.rb"
39
+ ]
40
+ s.homepage = %q{http://github.com/karledurante/secondbase}
41
+ s.licenses = ["MIT"]
42
+ s.require_paths = ["lib"]
43
+ s.rubygems_version = %q{1.3.7}
44
+ s.summary = %q{Allow Rails manage second database in your projects}
45
+ s.test_files = [
46
+ "test/helper.rb",
47
+ "test/test_secondbase.rb"
48
+ ]
49
+
50
+ if s.respond_to? :specification_version then
51
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
+ s.specification_version = 3
53
+
54
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
56
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
57
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
58
+ s.add_development_dependency(%q<activerecord>, ["~> 3.0.0"])
59
+ else
60
+ s.add_dependency(%q<shoulda>, [">= 0"])
61
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
63
+ s.add_dependency(%q<activerecord>, ["~> 3.0.0"])
64
+ end
65
+ else
66
+ s.add_dependency(%q<shoulda>, [">= 0"])
67
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
68
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
69
+ s.add_dependency(%q<activerecord>, ["~> 3.0.0"])
70
+ end
71
+ end
72
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secondbase
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - karledurante
@@ -106,6 +106,7 @@ files:
106
106
  - lib/secondbase/railtie.rb
107
107
  - lib/secondbase/rake_method_chain.rb
108
108
  - lib/tasks/secondbase.rake
109
+ - secondbase.gemspec
109
110
  - test/helper.rb
110
111
  - test/test_secondbase.rb
111
112
  has_rdoc: true