secondbase 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/gemfiles/rails40.gemfile +1 -1
- data/gemfiles/rails41.gemfile +1 -1
- data/gemfiles/rails42.gemfile +1 -1
- data/gemfiles/rails50.gemfile +1 -1
- data/gemfiles/rails51.gemfile +1 -1
- data/lib/second_base/databases.rake +20 -4
- data/lib/second_base/databases_rails_five.rake +1 -0
- data/lib/second_base/databases_rails_four.rake +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d2f7fff85853b87f3df97b4b21b5a66b7086a61
|
4
|
+
data.tar.gz: 8d5bb142cae2833a3203cc41f0e473a7b1012db0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f4260791b1810d7e4912969612045e5bbae0c858678f7ce4372c578a2190e0fe85ffebe64f03e420ffab19b5f5642f194295b5de7d52c3f9152f128b9ca0fc
|
7
|
+
data.tar.gz: 7e1db1101453304824a8bbddd454e8cf3aa8ea34e7e5aaa9b959a08e949980974f21c3a2363b74d951b418aa59fe7459371eaad4a55cf788ea8636e53ec86c8f
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
secondbase
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.3.1
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.6
|
data/gemfiles/rails40.gemfile
CHANGED
data/gemfiles/rails41.gemfile
CHANGED
data/gemfiles/rails42.gemfile
CHANGED
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
@@ -2,59 +2,71 @@ namespace :db do
|
|
2
2
|
namespace :second_base do
|
3
3
|
|
4
4
|
namespace :create do
|
5
|
+
desc 'Creates ALL DBs configured for Second base' unless SecondBase::Railtie.run_with_db_tasks?
|
5
6
|
task :all => ['db:load_config'] do
|
6
7
|
SecondBase.on_base { Rake::Task['db:create:all'].execute }
|
7
8
|
end
|
8
9
|
end
|
9
10
|
|
11
|
+
desc 'Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:secondbase:create:all to create all databases in the config). Without RAILS_ENV it defaults to creating the development and test databases.' unless SecondBase::Railtie.run_with_db_tasks?
|
10
12
|
task :create => ['db:load_config'] do
|
11
13
|
SecondBase.on_base { Rake::Task['db:create'].execute }
|
12
14
|
end
|
13
15
|
|
14
16
|
namespace :drop do
|
17
|
+
desc 'Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:secondbase:drop:all to drop all databases in the config). Without RAILS_ENV it defaults to dropping the development and test databases.' unless SecondBase::Railtie.run_with_db_tasks?
|
15
18
|
task :all => ['db:load_config'] do
|
16
19
|
SecondBase.on_base { Rake::Task['db:drop:all'].execute }
|
17
20
|
end
|
18
21
|
end
|
19
22
|
|
20
23
|
namespace :purge do
|
24
|
+
desc 'Purges (empties) ALL DBs configured for Second base' unless SecondBase::Railtie.run_with_db_tasks?
|
21
25
|
task :all => ['db:load_config'] do
|
22
26
|
SecondBase.on_base { Rake::Task['db:purge:all'].execute }
|
23
27
|
end
|
24
28
|
end
|
25
29
|
|
30
|
+
desc 'Empty the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:secondbase:drop:all to drop all databases in the config). Without RAILS_ENV it defaults to purging the development and test databases.' unless SecondBase::Railtie.run_with_db_tasks?
|
26
31
|
task :purge => ['db:load_config'] do
|
27
32
|
SecondBase.on_base { Rake::Task['db:purge'].execute }
|
28
33
|
end
|
29
34
|
|
35
|
+
desc 'Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog).' unless SecondBase::Railtie.run_with_db_tasks?
|
30
36
|
task :migrate => ['db:load_config'] do
|
31
37
|
SecondBase.on_base { Rake::Task['db:migrate'].execute }
|
32
38
|
end
|
33
39
|
|
34
40
|
namespace :migrate do
|
35
41
|
|
42
|
+
desc 'Rollbacks the database one migration and re migrate up (options: STEP=x, VERSION=x).' unless SecondBase::Railtie.run_with_db_tasks?
|
36
43
|
task :redo => ['db:load_config'] do
|
37
44
|
SecondBase.on_base { Rake::Task['db:migrate:redo'].execute }
|
38
45
|
end
|
39
46
|
|
47
|
+
desc 'Runs the "up" for a given migration VERSION.'
|
40
48
|
task :up => ['db:load_config'] do
|
41
49
|
SecondBase.on_base { Rake::Task['db:migrate:up'].execute }
|
42
50
|
end
|
43
51
|
|
52
|
+
desc 'Runs the "down" for a given migration VERSION.'
|
44
53
|
task :down => ['db:load_config'] do
|
45
54
|
SecondBase.on_base { Rake::Task['db:migrate:down'].execute }
|
46
55
|
end
|
47
56
|
|
57
|
+
desc 'Display status of migrations'
|
48
58
|
task :status => ['db:load_config'] do
|
49
59
|
SecondBase.on_base { Rake::Task['db:migrate:status'].execute }
|
50
60
|
end
|
51
61
|
|
52
62
|
end
|
53
63
|
|
64
|
+
desc 'Rolls the schema back to the previous version (specify steps w/ STEP=n).'
|
54
65
|
task :rollback => ['db:load_config'] do
|
55
66
|
SecondBase.on_base { Rake::Task['db:rollback'].execute }
|
56
67
|
end
|
57
68
|
|
69
|
+
desc 'Drops and recreates the database from db/schema.rb for the current environment and loads the seeds.'
|
58
70
|
task :forward => ['db:load_config'] do
|
59
71
|
SecondBase.on_base { Rake::Task['db:forward'].execute }
|
60
72
|
end
|
@@ -63,18 +75,19 @@ namespace :db do
|
|
63
75
|
SecondBase.on_base { Rake::Task['db:abort_if_pending_migrations'].execute }
|
64
76
|
end
|
65
77
|
|
78
|
+
desc 'Retrieves the current schema version number'
|
66
79
|
task :version => ['db:load_config'] do
|
67
80
|
SecondBase.on_base { Rake::Task['db:version'].execute }
|
68
81
|
end
|
69
82
|
|
70
83
|
namespace :schema do
|
71
|
-
|
84
|
+
# desc 'Load a schema.rb file into the database' unless SecondBase::Railtie.run_with_db_tasks?
|
72
85
|
task :load => ['db:load_config'] do
|
73
86
|
SecondBase.on_base { Rake::Task['db:schema:load'].execute }
|
74
87
|
end
|
75
88
|
|
76
89
|
namespace :cache do
|
77
|
-
|
90
|
+
desc 'Create a db/schema_cache.dump file.' unless SecondBase::Railtie.run_with_db_tasks?
|
78
91
|
task :dump => ['db:load_config'] do
|
79
92
|
SecondBase.on_base { Rake::Task['db:schema:cache:dump'].execute }
|
80
93
|
end
|
@@ -84,7 +97,7 @@ namespace :db do
|
|
84
97
|
end
|
85
98
|
|
86
99
|
namespace :structure do
|
87
|
-
|
100
|
+
# desc 'Recreate the databases from the structure.sql file' unless SecondBase::Railtie.run_with_db_tasks?
|
88
101
|
task :load => ['db:load_config'] do
|
89
102
|
SecondBase.on_base { Rake::Task['db:structure:load'].execute }
|
90
103
|
end
|
@@ -92,19 +105,22 @@ namespace :db do
|
|
92
105
|
end
|
93
106
|
|
94
107
|
namespace :test do
|
95
|
-
|
108
|
+
desc 'Empty the test database' unless SecondBase::Railtie.run_with_db_tasks?
|
96
109
|
task :purge => ['db:load_config'] do
|
97
110
|
SecondBase.on_base { Rake::Task['db:test:purge'].execute }
|
98
111
|
end
|
99
112
|
|
113
|
+
# desc 'Recreate the test database from an existent schema.rb file' unless SecondBase::Railtie.run_with_db_tasks?
|
100
114
|
task :load_schema => ['db:load_config'] do
|
101
115
|
SecondBase.on_base { Rake::Task['db:test:load_schema'].execute }
|
102
116
|
end
|
103
117
|
|
118
|
+
# desc 'Recreate the test database from the current schema' unless SecondBase::Railtie.run_with_db_tasks?
|
104
119
|
task :load_structure => ['db:load_config'] do
|
105
120
|
SecondBase.on_base { Rake::Task['db:test:load_structure'].execute }
|
106
121
|
end
|
107
122
|
|
123
|
+
desc 'Check for pending migrations and load the test schema' unless SecondBase::Railtie.run_with_db_tasks?
|
108
124
|
task :prepare => ['db:load_config'] do
|
109
125
|
SecondBase.on_base { Rake::Task['db:test:prepare'].execute }
|
110
126
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secondbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karle Durante
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -107,6 +107,8 @@ extensions: []
|
|
107
107
|
extra_rdoc_files: []
|
108
108
|
files:
|
109
109
|
- ".gitignore"
|
110
|
+
- ".ruby-gemset"
|
111
|
+
- ".ruby-version"
|
110
112
|
- ".travis.yml"
|
111
113
|
- ".yardopts"
|
112
114
|
- Appraisals
|
@@ -200,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
202
|
version: '0'
|
201
203
|
requirements: []
|
202
204
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.5.1
|
204
206
|
signing_key:
|
205
207
|
specification_version: 4
|
206
208
|
summary: Seamless second database integration for Rails.
|