secondbase 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -4
- data/VERSION +1 -1
- data/lib/secondbase.rb +1 -2
- data/lib/secondbase/railtie.rb +1 -1
- data/lib/{tasks/secondbase.rake → secondbase/tasks.rb} +0 -0
- data/secondbase.gemspec +3 -3
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -23,9 +23,11 @@ If you have the time to update this gem to be backward compatible, by all means.
|
|
23
23
|
== Installation
|
24
24
|
Modify your Gemfile to include Secondbase:
|
25
25
|
|
26
|
-
gem 'secondbase', '0.
|
26
|
+
gem 'secondbase', '0.3.0'
|
27
27
|
|
28
|
-
Run `bundle install`. You thought it would be harder?
|
28
|
+
Run `bundle install`. You thought it would be harder? If you're using Rails 2.x, then yes, a little bit harder. You must also add this to your Rakefile:
|
29
|
+
|
30
|
+
require 'secondbase/tasks'
|
29
31
|
|
30
32
|
== Usage
|
31
33
|
=== Database
|
@@ -113,8 +115,6 @@ This is patch to fixtures that will identify the fixtures which belong to models
|
|
113
115
|
At this time, there is not support for anything other than fixtures (i.e. factories). If you have the time to update this gem to be test object compatible, by all means...
|
114
116
|
|
115
117
|
== TODO
|
116
|
-
- We should support Rails 2.x as well as 3.x
|
117
|
-
|
118
118
|
- Migration generator needs support for attribute generation (similar to rails generate migration). For example:
|
119
119
|
`rails generate secondbase_migration AddTitleBodyToPost title:string body:text published:boolean`
|
120
120
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/secondbase.rb
CHANGED
@@ -3,14 +3,13 @@ require 'active_record'
|
|
3
3
|
module SecondBase
|
4
4
|
CONNECTION_PREFIX = 'secondbase'
|
5
5
|
|
6
|
-
require 'secondbase/railtie' if
|
6
|
+
require 'secondbase/railtie' if Rails::VERSION::MAJOR == 3
|
7
7
|
require 'secondbase/rake_method_chain'
|
8
8
|
|
9
9
|
def self.do
|
10
10
|
"You have just gotten to SecondBase, my friend."
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
13
|
def self.has_runner(env)
|
15
14
|
ActiveRecord::Base.establish_connection(SecondBase::config(env))
|
16
15
|
end
|
data/lib/secondbase/railtie.rb
CHANGED
File without changes
|
data/secondbase.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{secondbase}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["karledurante"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-17}
|
13
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
14
|
s.email = %q{kdurante@customink.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
"lib/secondbase/model.rb",
|
33
33
|
"lib/secondbase/railtie.rb",
|
34
34
|
"lib/secondbase/rake_method_chain.rb",
|
35
|
-
"lib/tasks
|
35
|
+
"lib/secondbase/tasks.rb",
|
36
36
|
"secondbase.gemspec",
|
37
37
|
"test/helper.rb",
|
38
38
|
"test/test_secondbase.rb"
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- karledurante
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-17 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -105,7 +105,7 @@ files:
|
|
105
105
|
- lib/secondbase/model.rb
|
106
106
|
- lib/secondbase/railtie.rb
|
107
107
|
- lib/secondbase/rake_method_chain.rb
|
108
|
-
- lib/tasks
|
108
|
+
- lib/secondbase/tasks.rb
|
109
109
|
- secondbase.gemspec
|
110
110
|
- test/helper.rb
|
111
111
|
- test/test_secondbase.rb
|