dump 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/.rubocop_todo.yml +0 -12
- data/.travis.yml +14 -13
- data/.travis_check_rubies.yml +1 -0
- data/Appraisals +9 -1
- data/Gemfile +3 -1
- data/LICENSE.txt +1 -1
- data/README.markdown +2 -2
- data/dump.gemspec +1 -3
- data/lib/dump.rb +1 -0
- data/lib/dump/archive_tar_minitar.rb +2 -0
- data/lib/dump/assets.rb +1 -0
- data/lib/dump/capistrano.rb +2 -0
- data/lib/dump/capistrano/v2.rb +20 -19
- data/lib/dump/continious_timeout.rb +2 -0
- data/lib/dump/env.rb +2 -1
- data/lib/dump/env/filter.rb +1 -0
- data/lib/dump/rails_root.rb +1 -0
- data/lib/dump/railtie.rb +2 -0
- data/lib/dump/reader.rb +3 -1
- data/lib/dump/snapshot.rb +1 -0
- data/lib/dump/table_manipulation.rb +3 -1
- data/lib/dump/writer.rb +2 -0
- data/lib/generators/assets_config/assets_config_generator.rb +2 -0
- data/lib/tasks/assets.rake +3 -1
- data/lib/tasks/dump.rake +7 -5
- data/recipes/dump.rb +2 -0
- data/script/update_readme +1 -0
- data/spec/cycle_spec.rb +2 -0
- data/spec/db/schema.rb +2 -0
- data/spec/dummy_rails_app.rb +2 -0
- data/spec/dump/env/filter_spec.rb +2 -0
- data/spec/dump/env_spec.rb +2 -0
- data/spec/dump/rails_root_spec.rb +2 -0
- data/spec/dump/reader_spec.rb +2 -0
- data/spec/dump/snapshot_spec.rb +2 -0
- data/spec/dump/table_manipulation_spec.rb +2 -0
- data/spec/dump/writer_spec.rb +2 -0
- data/spec/dump_spec.rb +2 -0
- data/spec/recipes/dump_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/tasks/assets_spec.rb +2 -0
- data/spec/tasks/dump_spec.rb +2 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf3b51acc57b1248c3c3d607d81c0142af62aeed0c50e70d6d82c81bbbc9504c
|
4
|
+
data.tar.gz: bbda00645cdbb1758d3fc74ccb43345e6e5a41191de26fcc4cc09ec697004ad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3901bed80cf473406a5a414c0e5bc5d584b53877505f79fc4995975e5deac5f42052b8625fd4535146c2868515459887d6edad9d379369d3597d7d84fabcbb9b
|
7
|
+
data.tar.gz: 3ba56de7b93dd9b39086226b7eadecb589429e03a0adae6ef869ae3a29c2856dc317ef679c2edc62935c73b0b5b0f87a2e83e49e5fc29fdb092c19bf48080a0e
|
data/.rubocop.yml
CHANGED
@@ -21,7 +21,7 @@ Layout/DotPosition:
|
|
21
21
|
Layout/EndAlignment:
|
22
22
|
EnforcedStyleAlignWith: variable
|
23
23
|
|
24
|
-
Layout/
|
24
|
+
Layout/IndentFirstHashElement:
|
25
25
|
EnforcedStyle: consistent
|
26
26
|
|
27
27
|
Layout/SpaceBeforeBlockBraces:
|
@@ -58,6 +58,9 @@ Style/IfUnlessModifier:
|
|
58
58
|
Style/ParallelAssignment:
|
59
59
|
Enabled: false
|
60
60
|
|
61
|
+
Style/SafeNavigation:
|
62
|
+
Enabled: false
|
63
|
+
|
61
64
|
Style/Semicolon:
|
62
65
|
AllowAsExpressionSeparator: true
|
63
66
|
|
data/.rubocop_todo.yml
CHANGED
@@ -59,18 +59,6 @@ Naming/HeredocDelimiterCase:
|
|
59
59
|
Exclude:
|
60
60
|
- 'spec/tasks/assets_spec.rb'
|
61
61
|
|
62
|
-
# Offense count: 1
|
63
|
-
# Cop supports --auto-correct.
|
64
|
-
Performance/Casecmp:
|
65
|
-
Exclude:
|
66
|
-
- 'lib/dump.rb'
|
67
|
-
|
68
|
-
# Offense count: 1
|
69
|
-
# Cop supports --auto-correct.
|
70
|
-
Performance/RangeInclude:
|
71
|
-
Exclude:
|
72
|
-
- 'spec/dump/table_manipulation_spec.rb'
|
73
|
-
|
74
62
|
# Offense count: 6
|
75
63
|
Security/MarshalLoad:
|
76
64
|
Exclude:
|
data/.travis.yml
CHANGED
@@ -1,32 +1,33 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- '1.8.7-p371'
|
4
3
|
- '1.9.3-p551'
|
5
|
-
- '2.0.0-p648'
|
6
|
-
- '2.1.10'
|
7
4
|
- '2.2.10'
|
8
5
|
- '2.3.8'
|
9
|
-
- '2.4.
|
10
|
-
- '2.5.
|
6
|
+
- '2.4.6'
|
7
|
+
- '2.5.5'
|
8
|
+
- '2.6.3'
|
9
|
+
- 'jruby-head'
|
11
10
|
script:
|
12
|
-
- bundle exec appraisal rspec
|
11
|
+
- ./bundle exec appraisal rspec
|
13
12
|
before_install:
|
14
|
-
- gem
|
13
|
+
- gem install bundler --version '< 2'
|
14
|
+
- ruby -rrubygems -e 'puts "#!/bin/sh", %{bundle _#{Gem::Dependency.new("bundler", "< 2.0").to_spec.version}_ "$@"}' > bundle
|
15
|
+
- chmod +x bundle
|
15
16
|
- sudo /etc/init.d/postgresql stop
|
16
17
|
- sudo /etc/init.d/postgresql start
|
17
18
|
- mysql -e 'create database myapp_test;'
|
18
19
|
- psql -c 'create database myapp_test;' -U postgres
|
19
20
|
- cp .travis.database.yml spec/db/database.yml
|
20
21
|
install:
|
21
|
-
- bundle install --jobs=3 --retry=3
|
22
|
-
- bundle exec appraisal install --jobs=3 --retry=3
|
22
|
+
- ./bundle install --jobs=3 --retry=3
|
23
|
+
- ./bundle exec appraisal install --jobs=3 --retry=3
|
23
24
|
matrix:
|
24
25
|
include:
|
25
26
|
- env: RUBOCOP=✓
|
26
|
-
rvm: '2.
|
27
|
+
rvm: '2.6.3'
|
27
28
|
script: bundle exec rubocop
|
28
|
-
before_install:
|
29
29
|
- env: CHECK_RUBIES=✓
|
30
|
-
rvm: '2.
|
30
|
+
rvm: '2.6.3'
|
31
31
|
script: bundle exec travis_check_rubies
|
32
|
-
|
32
|
+
allow_failures:
|
33
|
+
- rvm: 'jruby-head'
|
@@ -0,0 +1 @@
|
|
1
|
+
intermediary: false
|
data/Appraisals
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
def appgen(gems)
|
2
4
|
description = gems.map{ |name, version| "#{name} #{version}" }.join(', ')
|
3
5
|
appraise description do
|
@@ -15,8 +17,14 @@ def appgen(gems)
|
|
15
17
|
gem 'activerecord-jdbcsqlite3-adapter'
|
16
18
|
gem 'activerecord-jdbcmysql-adapter'
|
17
19
|
gem 'activerecord-jdbcpostgresql-adapter'
|
20
|
+
|
21
|
+
if rails_version[/\d+/].to_i < 5
|
22
|
+
gem 'activerecord-jdbc-adapter', '~> 1.3.0'
|
23
|
+
else
|
24
|
+
gem 'activerecord-jdbc-adapter', "~> #{rails_version.scan(/\d+/).take(2).join('')}.0"
|
25
|
+
end
|
18
26
|
else
|
19
|
-
gem 'sqlite3'
|
27
|
+
gem 'sqlite3', '~> 1.3.5'
|
20
28
|
|
21
29
|
case
|
22
30
|
when rails_version =~ /^2\./
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.markdown
CHANGED
@@ -8,7 +8,7 @@ Rails app rake and capistrano tasks to create and restore dumps of database and
|
|
8
8
|
|
9
9
|
Tested against rails 2.3, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2.
|
10
10
|
|
11
|
-
Works with ruby 1.8.7, 1.9.3, 2.0, 2.1, 2.2 (rails 4.0 requires at least ruby 1.9), nominally works with jruby (see [travis](https://travis-ci.org/toy/dump)).
|
11
|
+
Works with ruby 1.8.7, 1.9.3, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5 (rails 4.0 requires at least ruby 1.9), nominally works with jruby (see [travis](https://travis-ci.org/toy/dump)).
|
12
12
|
|
13
13
|
## Install
|
14
14
|
|
@@ -259,4 +259,4 @@ where myappserver.com is application server carrying assets with database access
|
|
259
259
|
|
260
260
|
## Copyright
|
261
261
|
|
262
|
-
Copyright (c) 2008-
|
262
|
+
Copyright (c) 2008-2019 Ivan Kuchin. See LICENSE.txt for details.
|
data/dump.gemspec
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'dump'
|
5
|
-
s.version = '1.2.
|
5
|
+
s.version = '1.2.1'
|
6
6
|
s.summary = %q{Rails app rake and capistrano tasks to create and restore dumps of database and assets}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
9
9
|
s.license = 'MIT'
|
10
10
|
|
11
|
-
s.rubyforge_project = s.name
|
12
|
-
|
13
11
|
s.metadata = {
|
14
12
|
'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
|
15
13
|
'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
|
data/lib/dump.rb
CHANGED
data/lib/dump/assets.rb
CHANGED
data/lib/dump/capistrano.rb
CHANGED
data/lib/dump/capistrano/v2.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'fileutils'
|
4
5
|
require 'shellwords'
|
@@ -158,12 +159,12 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
158
159
|
end
|
159
160
|
|
160
161
|
namespace :local do
|
161
|
-
desc 'Shorthand for dump:local:create'
|
162
|
+
desc 'Shorthand for dump:local:create' + Dump::Env.explain_variables_for_command(:create)
|
162
163
|
task :default, :roles => :db, :only => {:primary => true} do
|
163
164
|
local.create
|
164
165
|
end
|
165
166
|
|
166
|
-
desc 'Create local dump'
|
167
|
+
desc 'Create local dump' + Dump::Env.explain_variables_for_command(:create)
|
167
168
|
task :create, :roles => :db, :only => {:primary => true} do
|
168
169
|
print_and_return_or_fail do
|
169
170
|
with_additional_tags('local') do
|
@@ -172,22 +173,22 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
172
173
|
end
|
173
174
|
end
|
174
175
|
|
175
|
-
desc 'Restore local dump'
|
176
|
+
desc 'Restore local dump' + Dump::Env.explain_variables_for_command(:restore)
|
176
177
|
task :restore, :roles => :db, :only => {:primary => true} do
|
177
178
|
run_local(dump_command(:restore))
|
178
179
|
end
|
179
180
|
|
180
|
-
desc 'Versions of local dumps'
|
181
|
+
desc 'Versions of local dumps' + Dump::Env.explain_variables_for_command(:versions)
|
181
182
|
task :versions, :roles => :db, :only => {:primary => true} do
|
182
183
|
print run_local(dump_command(:versions, :show_size => true))
|
183
184
|
end
|
184
185
|
|
185
|
-
desc 'Cleanup local dumps'
|
186
|
+
desc 'Cleanup local dumps' + Dump::Env.explain_variables_for_command(:cleanup)
|
186
187
|
task :cleanup, :roles => :db, :only => {:primary => true} do
|
187
188
|
print run_local(dump_command(:cleanup))
|
188
189
|
end
|
189
190
|
|
190
|
-
desc 'Upload dump'
|
191
|
+
desc 'Upload dump' + Dump::Env.explain_variables_for_command(:transfer)
|
191
192
|
task :upload, :roles => :db, :only => {:primary => true} do
|
192
193
|
file = Dump::Env.with_env(:summary => nil) do
|
193
194
|
last_part_of_last_line(run_local(dump_command(:versions)))
|
@@ -199,12 +200,12 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
199
200
|
end
|
200
201
|
|
201
202
|
namespace :remote do
|
202
|
-
desc 'Shorthand for dump:remote:create'
|
203
|
+
desc 'Shorthand for dump:remote:create' + Dump::Env.explain_variables_for_command(:create)
|
203
204
|
task :default, :roles => :db, :only => {:primary => true} do
|
204
205
|
remote.create
|
205
206
|
end
|
206
207
|
|
207
|
-
desc 'Create remote dump'
|
208
|
+
desc 'Create remote dump' + Dump::Env.explain_variables_for_command(:create)
|
208
209
|
task :create, :roles => :db, :only => {:primary => true} do
|
209
210
|
print_and_return_or_fail do
|
210
211
|
with_additional_tags('remote') do
|
@@ -213,22 +214,22 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
213
214
|
end
|
214
215
|
end
|
215
216
|
|
216
|
-
desc 'Restore remote dump'
|
217
|
+
desc 'Restore remote dump' + Dump::Env.explain_variables_for_command(:restore)
|
217
218
|
task :restore, :roles => :db, :only => {:primary => true} do
|
218
219
|
run_remote("cd #{current_path}; #{dump_command(:restore, :rake => fetch_rake, :RAILS_ENV => fetch_rails_env, :PROGRESS_TTY => '+')}")
|
219
220
|
end
|
220
221
|
|
221
|
-
desc 'Versions of remote dumps'
|
222
|
+
desc 'Versions of remote dumps' + Dump::Env.explain_variables_for_command(:versions)
|
222
223
|
task :versions, :roles => :db, :only => {:primary => true} do
|
223
224
|
print run_remote("cd #{current_path}; #{dump_command(:versions, :rake => fetch_rake, :RAILS_ENV => fetch_rails_env, :PROGRESS_TTY => '+', :show_size => true)}")
|
224
225
|
end
|
225
226
|
|
226
|
-
desc 'Cleanup of remote dumps'
|
227
|
+
desc 'Cleanup of remote dumps' + Dump::Env.explain_variables_for_command(:cleanup)
|
227
228
|
task :cleanup, :roles => :db, :only => {:primary => true} do
|
228
229
|
print run_remote("cd #{current_path}; #{dump_command(:cleanup, :rake => fetch_rake, :RAILS_ENV => fetch_rails_env, :PROGRESS_TTY => '+')}")
|
229
230
|
end
|
230
231
|
|
231
|
-
desc 'Download dump'
|
232
|
+
desc 'Download dump' + Dump::Env.explain_variables_for_command(:transfer)
|
232
233
|
task :download, :roles => :db, :only => {:primary => true} do
|
233
234
|
file = Dump::Env.with_env(:summary => nil) do
|
234
235
|
last_part_of_last_line(run_remote("cd #{current_path}; #{dump_command(:versions, :rake => fetch_rake, :RAILS_ENV => fetch_rails_env, :PROGRESS_TTY => '+')}"))
|
@@ -240,18 +241,18 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
240
241
|
end
|
241
242
|
end
|
242
243
|
|
243
|
-
desc 'Shorthand for dump:local:upload'
|
244
|
+
desc 'Shorthand for dump:local:upload' + Dump::Env.explain_variables_for_command(:transfer)
|
244
245
|
task :upload, :roles => :db, :only => {:primary => true} do
|
245
246
|
local.upload
|
246
247
|
end
|
247
248
|
|
248
|
-
desc 'Shorthand for dump:remote:download'
|
249
|
+
desc 'Shorthand for dump:remote:download' + Dump::Env.explain_variables_for_command(:transfer)
|
249
250
|
task :download, :roles => :db, :only => {:primary => true} do
|
250
251
|
remote.download
|
251
252
|
end
|
252
253
|
|
253
254
|
namespace :mirror do
|
254
|
-
desc 'Creates local dump, uploads and restores on remote'
|
255
|
+
desc 'Creates local dump, uploads and restores on remote' + Dump::Env.explain_variables_for_command(:mirror)
|
255
256
|
task :up, :roles => :db, :only => {:primary => true} do
|
256
257
|
auto_backup = if auto_backup?
|
257
258
|
with_additional_tags('auto-backup') do
|
@@ -271,7 +272,7 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
271
272
|
end
|
272
273
|
end
|
273
274
|
|
274
|
-
desc 'Creates remote dump, downloads and restores on local'
|
275
|
+
desc 'Creates remote dump, downloads and restores on local' + Dump::Env.explain_variables_for_command(:mirror)
|
275
276
|
task :down, :roles => :db, :only => {:primary => true} do
|
276
277
|
auto_backup = if auto_backup?
|
277
278
|
with_additional_tags('auto-backup') do
|
@@ -293,12 +294,12 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
293
294
|
end
|
294
295
|
|
295
296
|
namespace :backup do
|
296
|
-
desc 'Shorthand for dump:backup:create'
|
297
|
+
desc 'Shorthand for dump:backup:create' + Dump::Env.explain_variables_for_command(:backup)
|
297
298
|
task :default, :roles => :db, :only => {:primary => true} do
|
298
299
|
backup.create
|
299
300
|
end
|
300
301
|
|
301
|
-
desc "Creates remote dump and downloads to local (desc defaults to 'backup')"
|
302
|
+
desc "Creates remote dump and downloads to local (desc defaults to 'backup')" + Dump::Env.explain_variables_for_command(:backup)
|
302
303
|
task :create, :roles => :db, :only => {:primary => true} do
|
303
304
|
file = with_additional_tags('backup') do
|
304
305
|
remote.create
|
@@ -310,7 +311,7 @@ Capistrano::Configuration.instance(:i_need_this!).load do
|
|
310
311
|
end
|
311
312
|
end
|
312
313
|
|
313
|
-
desc 'Uploads dump with backup tag and restores it on remote'
|
314
|
+
desc 'Uploads dump with backup tag and restores it on remote' + Dump::Env.explain_variables_for_command(:backup_restore)
|
314
315
|
task :restore, :roles => :db, :only => {:primary => true} do
|
315
316
|
file = with_additional_tags('backup') do
|
316
317
|
last_part_of_last_line(run_local(dump_command(:versions)))
|
data/lib/dump/env.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'dump/env/filter'
|
4
5
|
|
@@ -125,7 +126,7 @@ module Dump
|
|
125
126
|
end
|
126
127
|
|
127
128
|
def explain_variables_for_command(command)
|
128
|
-
".\n"
|
129
|
+
".\n" +
|
129
130
|
variable_names_for_command(command).map do |variable_name|
|
130
131
|
" #{DICTIONARY[variable_name].join(', ')} — #{EXPLANATIONS[variable_name]}\n"
|
131
132
|
end.join('')
|
data/lib/dump/env/filter.rb
CHANGED
data/lib/dump/rails_root.rb
CHANGED
data/lib/dump/railtie.rb
CHANGED
data/lib/dump/reader.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'dump/snapshot'
|
2
4
|
require 'dump/archive_tar_minitar'
|
3
5
|
require 'dump/assets'
|
@@ -29,7 +31,7 @@ module Dump
|
|
29
31
|
attr_reader :text
|
30
32
|
alias_method :to_s, :text
|
31
33
|
def initialize
|
32
|
-
@text = ''
|
34
|
+
@text = ''.dup
|
33
35
|
end
|
34
36
|
|
35
37
|
def header(header)
|
data/lib/dump/snapshot.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'dump/env'
|
2
4
|
|
3
5
|
module Dump
|
4
6
|
# Methods to work with db using ActiveRecord
|
5
7
|
module TableManipulation
|
6
|
-
protected
|
8
|
+
protected # rubocop:disable Layout/IndentationWidth
|
7
9
|
|
8
10
|
def schema_tables
|
9
11
|
%w[schema_info schema_migrations]
|
data/lib/dump/writer.rb
CHANGED
data/lib/tasks/assets.rake
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'dump'
|
2
4
|
|
3
5
|
task :assets do
|
@@ -5,7 +7,7 @@ task :assets do
|
|
5
7
|
end
|
6
8
|
|
7
9
|
namespace :assets do
|
8
|
-
desc 'Delete assets'
|
10
|
+
desc 'Delete assets' + Dump::Env.explain_variables_for_command(:assets)
|
9
11
|
task :delete => :assets do
|
10
12
|
ENV['ASSETS'].split(':').each do |asset|
|
11
13
|
Dump::Assets.glob_asset_children(asset, '*').each do |child|
|
data/lib/tasks/dump.rake
CHANGED
@@ -1,25 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'dump'
|
2
4
|
|
3
|
-
desc 'Short for dump:create'
|
5
|
+
desc 'Short for dump:create' + Dump::Env.explain_variables_for_command(:create)
|
4
6
|
task :dump => 'dump:create'
|
5
7
|
|
6
8
|
namespace :dump do
|
7
|
-
desc 'Show avaliable versions'
|
9
|
+
desc 'Show avaliable versions' + Dump::Env.explain_variables_for_command(:versions)
|
8
10
|
task :versions => :environment do
|
9
11
|
Dump.versions(Dump::Env.for_command(:versions))
|
10
12
|
end
|
11
13
|
|
12
|
-
desc 'Create dump'
|
14
|
+
desc 'Create dump' + Dump::Env.explain_variables_for_command(:create)
|
13
15
|
task :create => :environment do
|
14
16
|
Dump.create(Dump::Env.for_command(:create))
|
15
17
|
end
|
16
18
|
|
17
|
-
desc 'Restore dump'
|
19
|
+
desc 'Restore dump' + Dump::Env.explain_variables_for_command(:restore)
|
18
20
|
task :restore => :environment do
|
19
21
|
Dump.restore(Dump::Env.for_command(:restore))
|
20
22
|
end
|
21
23
|
|
22
|
-
desc 'Cleanup dumps'
|
24
|
+
desc 'Cleanup dumps' + Dump::Env.explain_variables_for_command(:cleanup)
|
23
25
|
task :cleanup => :environment do
|
24
26
|
Dump.cleanup(Dump::Env.for_command(:cleanup))
|
25
27
|
end
|
data/recipes/dump.rb
CHANGED
data/script/update_readme
CHANGED
data/spec/cycle_spec.rb
CHANGED
data/spec/db/schema.rb
CHANGED
data/spec/dummy_rails_app.rb
CHANGED
data/spec/dump/env_spec.rb
CHANGED
data/spec/dump/reader_spec.rb
CHANGED
data/spec/dump/snapshot_spec.rb
CHANGED
data/spec/dump/writer_spec.rb
CHANGED
data/spec/dump_spec.rb
CHANGED
data/spec/recipes/dump_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/tasks/assets_spec.rb
CHANGED
data/spec/tasks/dump_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: archive-tar-minitar
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- ".rubocop_todo.yml"
|
96
96
|
- ".travis.database.yml"
|
97
97
|
- ".travis.yml"
|
98
|
+
- ".travis_check_rubies.yml"
|
98
99
|
- Appraisals
|
99
100
|
- Gemfile
|
100
101
|
- LICENSE.txt
|
@@ -333,6 +334,7 @@ files:
|
|
333
334
|
- spec/dummy-5.2/config/storage.yml
|
334
335
|
- spec/dummy-5.2/db/seeds.rb
|
335
336
|
- spec/dummy-5.2/package.json
|
337
|
+
- spec/dummy-5.2/tmp/.gitkeep
|
336
338
|
- spec/dummy_rails_app.rb
|
337
339
|
- spec/dump/env/filter_spec.rb
|
338
340
|
- spec/dump/env_spec.rb
|
@@ -351,7 +353,7 @@ licenses:
|
|
351
353
|
- MIT
|
352
354
|
metadata:
|
353
355
|
bug_tracker_uri: https://github.com/toy/dump/issues
|
354
|
-
documentation_uri: https://www.rubydoc.info/gems/dump/1.2.
|
356
|
+
documentation_uri: https://www.rubydoc.info/gems/dump/1.2.1
|
355
357
|
source_code_uri: https://github.com/toy/dump
|
356
358
|
post_install_message:
|
357
359
|
rdoc_options: []
|
@@ -368,8 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
370
|
- !ruby/object:Gem::Version
|
369
371
|
version: '0'
|
370
372
|
requirements: []
|
371
|
-
|
372
|
-
rubygems_version: 2.7.8
|
373
|
+
rubygems_version: 3.0.3
|
373
374
|
signing_key:
|
374
375
|
specification_version: 4
|
375
376
|
summary: Rails app rake and capistrano tasks to create and restore dumps of database
|
@@ -586,6 +587,7 @@ test_files:
|
|
586
587
|
- spec/dummy-5.2/config/storage.yml
|
587
588
|
- spec/dummy-5.2/db/seeds.rb
|
588
589
|
- spec/dummy-5.2/package.json
|
590
|
+
- spec/dummy-5.2/tmp/.gitkeep
|
589
591
|
- spec/dummy_rails_app.rb
|
590
592
|
- spec/dump/env/filter_spec.rb
|
591
593
|
- spec/dump/env_spec.rb
|