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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b25c7d8a0d9a09b96a96ccce592db10205f4700d
4
- data.tar.gz: 055a9e547eea47ed1b1d02381fbf1aa4b772d00a
3
+ metadata.gz: 1d2f7fff85853b87f3df97b4b21b5a66b7086a61
4
+ data.tar.gz: 8d5bb142cae2833a3203cc41f0e473a7b1012db0
5
5
  SHA512:
6
- metadata.gz: b662f3dbdf9c973a7fa03a907a42f1eeb407f8d42ce4c9d39b8624e297c856f65f5c4826ece08ba070508624fd6d744720a0873c86533a0113823912dbed2f37
7
- data.tar.gz: 41f0556d4ab3166f35e9e2ac4fc3ed830a3868e5322d74d9ba3fa06aeb8e15a9307e85dca8bace25ebc14e90f8980e077229836c7b803be65b87a72a4a1c8b47
6
+ metadata.gz: 79f4260791b1810d7e4912969612045e5bbae0c858678f7ce4372c578a2190e0fe85ffebe64f03e420ffab19b5f5642f194295b5de7d52c3f9152f128b9ca0fc
7
+ data.tar.gz: 7e1db1101453304824a8bbddd454e8cf3aa8ea34e7e5aaa9b959a08e949980974f21c3a2363b74d951b418aa59fe7459371eaad4a55cf788ea8636e53ec86c8f
@@ -0,0 +1 @@
1
+ secondbase
@@ -0,0 +1 @@
1
+ ruby-2.3.1
@@ -2,6 +2,11 @@
2
2
 
3
3
  Please follow the format set down in http://keepachangelog.com
4
4
 
5
+ ## v2.1.6
6
+
7
+ * Descriptions for Rake tasks. Fixes #60. Thanks @roolo.
8
+
9
+
5
10
  ## v2.1.5
6
11
 
7
12
  * Allow custom db paths to work. Fixes #51 #52. Thanks @MrJoy.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ 2.1.6
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 4.0.0"
6
6
  gem "mysql"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 4.1.0"
6
6
  gem "mysql"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 4.2.0"
6
6
  gem "mysql"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 5.0.0"
6
6
  gem "mysql2"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 5.1.0"
6
6
  gem "mysql2"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -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
@@ -5,6 +5,7 @@ namespace :db do
5
5
  end
6
6
 
7
7
  namespace :migrate do
8
+ desc 'Resets SecondBase database using your migrations for the current environment'
8
9
  task :reset => ['db:second_base:drop:_unsafe', 'db:second_base:create', 'db:second_base:migrate']
9
10
  end
10
11
  end
@@ -5,6 +5,7 @@ namespace :db do
5
5
  end
6
6
 
7
7
  namespace :migrate do
8
+ desc 'Resets SecondBase database using your migrations for the current environment'
8
9
  task :reset => ['db:second_base:drop', 'db:second_base:create', 'db:second_base:migrate']
9
10
  end
10
11
  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.5
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: 2017-10-04 00:00:00.000000000 Z
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.6.8
205
+ rubygems_version: 2.5.1
204
206
  signing_key:
205
207
  specification_version: 4
206
208
  summary: Seamless second database integration for Rails.