banana 0.2.0 → 0.2.1
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/.travis.yml +7 -0
- data/Gemfile +1 -6
- data/README.md +1 -1
- data/Rakefile +4 -0
- data/banana.gemspec +5 -0
- data/lib/banana/railtie.rb +9 -0
- data/lib/banana/tasks/database.rake +1 -2
- data/lib/banana/version.rb +1 -1
- data/lib/banana.rb +2 -9
- data/spec/banana/migration_spec.rb +4 -0
- data/spec/banana/multidb_schema_dumper_spec.rb +5 -0
- data/spec/banana/railtie_spec.rb +4 -0
- data/spec/spec_helper.rb +1 -0
- metadata +64 -6
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
data/banana.gemspec
CHANGED
@@ -14,4 +14,9 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = "banana"
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Banana::VERSION
|
17
|
+
|
18
|
+
gem.add_dependency 'activerecord', '~> 3.2'
|
19
|
+
gem.add_dependency 'railties', '~> 3.2'
|
20
|
+
|
21
|
+
gem.add_development_dependency 'rspec'
|
17
22
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
tasks = Rake.application.instance_variable_get '@tasks'
|
2
2
|
override_tasks = ['db:create', 'db:drop', 'db:migrate', 'db:schema:dump']
|
3
|
-
|
4
|
-
(override_tasks + unsupported_tasks).each { |task_name| tasks.delete(task_name) }
|
3
|
+
override_tasks.each { |task_name| tasks.delete(task_name) }
|
5
4
|
|
6
5
|
db_namespace = namespace :db do
|
7
6
|
desc 'Create the multiple databases from config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config)'
|
data/lib/banana/version.rb
CHANGED
data/lib/banana.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'banana'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: banana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,56 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
-
dependencies:
|
12
|
+
date: 2012-08-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activerecord
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.2'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: railties
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.2'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.2'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
14
62
|
description: A simple plugin for multiple databases in rails app.
|
15
63
|
email:
|
16
64
|
- sinsoku.listy@gmail.com
|
@@ -19,6 +67,7 @@ extensions: []
|
|
19
67
|
extra_rdoc_files: []
|
20
68
|
files:
|
21
69
|
- .gitignore
|
70
|
+
- .travis.yml
|
22
71
|
- Gemfile
|
23
72
|
- LICENSE
|
24
73
|
- README.md
|
@@ -27,8 +76,13 @@ files:
|
|
27
76
|
- lib/banana.rb
|
28
77
|
- lib/banana/migration.rb
|
29
78
|
- lib/banana/multidb_schema_dumper.rb
|
79
|
+
- lib/banana/railtie.rb
|
30
80
|
- lib/banana/tasks/database.rake
|
31
81
|
- lib/banana/version.rb
|
82
|
+
- spec/banana/migration_spec.rb
|
83
|
+
- spec/banana/multidb_schema_dumper_spec.rb
|
84
|
+
- spec/banana/railtie_spec.rb
|
85
|
+
- spec/spec_helper.rb
|
32
86
|
homepage: https://github.com/sinsoku/banana
|
33
87
|
licenses: []
|
34
88
|
post_install_message:
|
@@ -43,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
97
|
version: '0'
|
44
98
|
segments:
|
45
99
|
- 0
|
46
|
-
hash:
|
100
|
+
hash: -430430233696561440
|
47
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
102
|
none: false
|
49
103
|
requirements:
|
@@ -52,11 +106,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
106
|
version: '0'
|
53
107
|
segments:
|
54
108
|
- 0
|
55
|
-
hash:
|
109
|
+
hash: -430430233696561440
|
56
110
|
requirements: []
|
57
111
|
rubyforge_project:
|
58
112
|
rubygems_version: 1.8.24
|
59
113
|
signing_key:
|
60
114
|
specification_version: 3
|
61
115
|
summary: A simple plugin for multiple databases in rails app.
|
62
|
-
test_files:
|
116
|
+
test_files:
|
117
|
+
- spec/banana/migration_spec.rb
|
118
|
+
- spec/banana/multidb_schema_dumper_spec.rb
|
119
|
+
- spec/banana/railtie_spec.rb
|
120
|
+
- spec/spec_helper.rb
|