dump 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +3 -1
- data/.rubocop.yml +47 -23
- data/.rubocop_todo.yml +105 -12
- data/.travis.yml +21 -31
- data/Appraisals +63 -0
- data/Gemfile +5 -26
- data/LICENSE.txt +1 -1
- data/README.markdown +3 -3
- data/dump.gemspec +11 -4
- data/lib/dump.rb +2 -2
- data/lib/dump/archive_tar_minitar.rb +1 -0
- data/lib/dump/assets.rb +1 -1
- data/lib/dump/capistrano.rb +3 -3
- data/lib/dump/capistrano/v2.rb +1 -0
- data/lib/dump/continious_timeout.rb +2 -2
- data/lib/dump/env/filter.rb +5 -5
- data/lib/dump/reader.rb +5 -1
- data/lib/dump/snapshot.rb +16 -12
- data/lib/dump/table_manipulation.rb +7 -1
- data/lib/dump/writer.rb +10 -3
- data/script/update_readme +1 -1
- data/spec/.gitignore +2 -0
- data/spec/cycle_spec.rb +1 -4
- data/spec/db/schema.rb +1 -1
- data/spec/dummy-5.0/.gitignore +21 -0
- data/spec/dummy-5.0/config.ru +5 -0
- data/spec/dummy-5.0/config/application.rb +25 -0
- data/spec/dummy-5.0/config/boot.rb +3 -0
- data/spec/dummy-5.0/config/cable.yml +9 -0
- data/spec/dummy-5.0/config/database.yml +25 -0
- data/spec/dummy-5.0/config/environment.rb +5 -0
- data/spec/dummy-5.0/config/environments/development.rb +47 -0
- data/spec/dummy-5.0/config/environments/production.rb +78 -0
- data/spec/dummy-5.0/config/environments/test.rb +42 -0
- data/spec/dummy-5.0/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy-5.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy-5.0/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy-5.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy-5.0/config/initializers/inflections.rb +16 -0
- data/spec/dummy-5.0/config/initializers/mime_types.rb +4 -0
- data/spec/dummy-5.0/config/initializers/new_framework_defaults.rb +26 -0
- data/spec/dummy-5.0/config/initializers/session_store.rb +3 -0
- data/spec/dummy-5.0/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy-5.0/config/locales/en.yml +23 -0
- data/spec/dummy-5.0/config/puma.rb +47 -0
- data/spec/dummy-5.0/config/routes.rb +3 -0
- data/spec/dummy-5.0/config/secrets.yml +22 -0
- data/spec/dummy-5.0/config/spring.rb +6 -0
- data/spec/dummy-5.0/db/seeds.rb +7 -0
- data/spec/dummy-5.0/log/.keep +0 -0
- data/spec/dummy-5.1/.gitignore +23 -0
- data/spec/dummy-5.1/config.ru +5 -0
- data/spec/dummy-5.1/config/application.rb +31 -0
- data/spec/dummy-5.1/config/boot.rb +3 -0
- data/spec/dummy-5.1/config/cable.yml +10 -0
- data/spec/dummy-5.1/config/database.yml +25 -0
- data/spec/dummy-5.1/config/environment.rb +5 -0
- data/spec/dummy-5.1/config/environments/development.rb +47 -0
- data/spec/dummy-5.1/config/environments/production.rb +83 -0
- data/spec/dummy-5.1/config/environments/test.rb +42 -0
- data/spec/dummy-5.1/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy-5.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy-5.1/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy-5.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy-5.1/config/initializers/inflections.rb +16 -0
- data/spec/dummy-5.1/config/initializers/mime_types.rb +4 -0
- data/spec/dummy-5.1/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy-5.1/config/locales/en.yml +33 -0
- data/spec/dummy-5.1/config/puma.rb +56 -0
- data/spec/dummy-5.1/config/routes.rb +3 -0
- data/spec/dummy-5.1/config/secrets.yml +32 -0
- data/spec/dummy-5.1/config/spring.rb +6 -0
- data/spec/dummy-5.1/db/seeds.rb +7 -0
- data/spec/dummy-5.1/log/.keep +0 -0
- data/spec/dummy-5.1/package.json +5 -0
- data/spec/dummy-5.2/.gitignore +28 -0
- data/spec/dummy-5.2/config.ru +5 -0
- data/spec/dummy-5.2/config/application.rb +33 -0
- data/spec/dummy-5.2/config/boot.rb +3 -0
- data/spec/dummy-5.2/config/cable.yml +10 -0
- data/spec/dummy-5.2/config/database.yml +25 -0
- data/spec/dummy-5.2/config/environment.rb +5 -0
- data/spec/dummy-5.2/config/environments/development.rb +54 -0
- data/spec/dummy-5.2/config/environments/production.rb +85 -0
- data/spec/dummy-5.2/config/environments/test.rb +46 -0
- data/spec/dummy-5.2/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy-5.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy-5.2/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy-5.2/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy-5.2/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy-5.2/config/initializers/inflections.rb +16 -0
- data/spec/dummy-5.2/config/initializers/mime_types.rb +4 -0
- data/spec/dummy-5.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy-5.2/config/locales/en.yml +33 -0
- data/spec/dummy-5.2/config/puma.rb +34 -0
- data/spec/dummy-5.2/config/routes.rb +3 -0
- data/spec/dummy-5.2/config/spring.rb +6 -0
- data/spec/dummy-5.2/config/storage.yml +34 -0
- data/spec/dummy-5.2/db/seeds.rb +7 -0
- data/spec/dummy-5.2/package.json +5 -0
- data/spec/dummy_rails_app.rb +3 -5
- data/spec/dump/env_spec.rb +7 -7
- data/spec/dump/rails_root_spec.rb +1 -1
- data/spec/dump/reader_spec.rb +14 -14
- data/spec/dump/snapshot_spec.rb +24 -17
- data/spec/dump/table_manipulation_spec.rb +8 -5
- data/spec/dump/writer_spec.rb +3 -3
- data/spec/dump_spec.rb +1 -1
- metadata +189 -21
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzJkMGE4NjAxYThiYzZhYWFmNTU0ODdmMWVkZTkwMjVjY2Q3NTBhMg==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a81965ff2404b3c727d9c7089ed14324e44fc31d4a382faad779d436b2155310
|
4
|
+
data.tar.gz: db0629ca2d5dcb98747de979579e1da627f7fa3bfcc71c7cebe0c62fcd0a24ad
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
Mjk1YmJjOGMwNzJmMjk2ZDUyZTcxZGJlN2U5ZDMzMTlmNTg1OWU1YjE4NmQ2
|
11
|
-
OWM5YWI2ODY0YWE4MjFkMDBlNzlmODliZjg3OWQ0YzdjODYxODI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzM2OWM4NjljYzY4YTg5YmM0NDg1ZWExYWQ1YjExMTNlYWExZjA4M2Y2MjMx
|
14
|
-
M2ZmYTdmMDQzZWY2ZDAwNTdkYTZkZTgyZjRhYWU1NGY2Njg4ZGIwMTgxMjk5
|
15
|
-
NGUxMTc1ZGY2NTdhODdjYzQxYmMwZTEwNDNlYjgzZmFiNzY1Nzk=
|
6
|
+
metadata.gz: 7071fdf7868813729ba61ae1852273ac4e5b298821792288a88a5f07a7f1cbbcd7e88b959dd1f3607b18f7116ef89c55d14823c7059c4cb68f4e180f093512ec
|
7
|
+
data.tar.gz: c3ab05115f9073d2b24f6c021b96d6cf3a4571a40e1e1e578b1cc7e570107324c6d0c9f3b6d8278a59cfda63960161723da69d6559b7d2dbeeb6363d9c6065da
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -4,50 +4,74 @@ AllCops:
|
|
4
4
|
Exclude:
|
5
5
|
- '*.gemspec'
|
6
6
|
- 'spec/dummy-*/**/*'
|
7
|
+
- 'gemfiles/*.gemfile'
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
Bundler/OrderedGems:
|
10
|
+
Enabled: false
|
10
11
|
|
11
|
-
|
12
|
+
Layout/AccessModifierIndentation:
|
12
13
|
EnforcedStyle: outdent
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
Style/CaseIndentation:
|
18
|
-
IndentWhenRelativeTo: end
|
15
|
+
Layout/CaseIndentation:
|
16
|
+
EnforcedStyle: end
|
19
17
|
|
20
|
-
|
18
|
+
Layout/DotPosition:
|
21
19
|
EnforcedStyle: trailing
|
22
20
|
|
21
|
+
Layout/EndAlignment:
|
22
|
+
EnforcedStyleAlignWith: variable
|
23
|
+
|
24
|
+
Layout/IndentHash:
|
25
|
+
EnforcedStyle: consistent
|
26
|
+
|
27
|
+
Layout/SpaceBeforeBlockBraces:
|
28
|
+
EnforcedStyle: no_space
|
29
|
+
|
30
|
+
Layout/SpaceInsideHashLiteralBraces:
|
31
|
+
EnforcedStyle: no_space
|
32
|
+
|
33
|
+
Metrics/BlockLength:
|
34
|
+
Exclude:
|
35
|
+
- 'spec/**/*.rb'
|
36
|
+
|
37
|
+
Style/Alias:
|
38
|
+
EnforcedStyle: prefer_alias_method
|
39
|
+
|
23
40
|
Style/DoubleNegation:
|
24
41
|
Enabled: false
|
25
42
|
|
43
|
+
Style/EmptyCaseCondition:
|
44
|
+
Enabled: false
|
45
|
+
|
26
46
|
Style/Encoding:
|
27
|
-
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/FormatStringToken:
|
50
|
+
Enabled: false
|
28
51
|
|
29
52
|
Style/HashSyntax:
|
30
53
|
EnforcedStyle: hash_rockets
|
31
54
|
|
32
55
|
Style/IfUnlessModifier:
|
33
|
-
|
34
|
-
|
35
|
-
Style/IndentHash:
|
36
|
-
EnforcedStyle: consistent
|
56
|
+
Enabled: false
|
37
57
|
|
38
|
-
Style/
|
39
|
-
|
40
|
-
'%w': '[]'
|
41
|
-
'%W': '[]'
|
58
|
+
Style/ParallelAssignment:
|
59
|
+
Enabled: false
|
42
60
|
|
43
61
|
Style/Semicolon:
|
44
62
|
AllowAsExpressionSeparator: true
|
45
63
|
|
46
|
-
Style/
|
47
|
-
EnforcedStyle:
|
64
|
+
Style/SignalException:
|
65
|
+
EnforcedStyle: semantic
|
48
66
|
|
49
|
-
Style/
|
50
|
-
|
67
|
+
Style/SymbolArray:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/TrailingCommaInArguments:
|
71
|
+
EnforcedStyleForMultiline: no_comma
|
72
|
+
|
73
|
+
Style/TrailingCommaInArrayLiteral:
|
74
|
+
EnforcedStyleForMultiline: comma
|
51
75
|
|
52
|
-
Style/
|
76
|
+
Style/TrailingCommaInHashLiteral:
|
53
77
|
EnforcedStyleForMultiline: comma
|
data/.rubocop_todo.yml
CHANGED
@@ -1,33 +1,126 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
#
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-11-10 17:16:05 +0100 using RuboCop version 0.60.0.
|
3
4
|
# The point is for the user to remove these configuration records
|
4
5
|
# one by one as the offenses are removed from the code base.
|
5
6
|
# Note that changes in the inspected code, or installation of new
|
6
7
|
# versions of RuboCop, may require this file to be generated again.
|
7
8
|
|
8
|
-
# Offense count:
|
9
|
+
# Offense count: 3
|
10
|
+
Lint/AmbiguousBlockAssociation:
|
11
|
+
Exclude:
|
12
|
+
- 'lib/dump/reader.rb'
|
13
|
+
- 'spec/dump/table_manipulation_spec.rb'
|
14
|
+
|
15
|
+
# Offense count: 7
|
16
|
+
# Cop supports --auto-correct.
|
17
|
+
Lint/UnneededSplatExpansion:
|
18
|
+
Exclude:
|
19
|
+
- 'lib/dump.rb'
|
20
|
+
- 'spec/dump/writer_spec.rb'
|
21
|
+
|
22
|
+
# Offense count: 20
|
9
23
|
Metrics/AbcSize:
|
10
24
|
Max: 45
|
11
25
|
|
12
|
-
# Offense count:
|
26
|
+
# Offense count: 11
|
27
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
28
|
+
# ExcludedMethods: refine
|
29
|
+
Metrics/BlockLength:
|
30
|
+
Max: 280
|
31
|
+
|
32
|
+
# Offense count: 3
|
13
33
|
# Configuration parameters: CountComments.
|
14
34
|
Metrics/ClassLength:
|
15
35
|
Max: 226
|
16
36
|
|
17
|
-
# Offense count:
|
37
|
+
# Offense count: 7
|
18
38
|
Metrics/CyclomaticComplexity:
|
19
39
|
Max: 15
|
20
40
|
|
21
|
-
# Offense count:
|
22
|
-
# Configuration parameters:
|
23
|
-
Metrics/LineLength:
|
24
|
-
Max: 210
|
25
|
-
|
26
|
-
# Offense count: 28
|
27
|
-
# Configuration parameters: CountComments.
|
41
|
+
# Offense count: 30
|
42
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
28
43
|
Metrics/MethodLength:
|
29
44
|
Max: 47
|
30
45
|
|
31
46
|
# Offense count: 2
|
47
|
+
# Configuration parameters: CountComments.
|
48
|
+
Metrics/ModuleLength:
|
49
|
+
Max: 130
|
50
|
+
|
51
|
+
# Offense count: 3
|
32
52
|
Metrics/PerceivedComplexity:
|
33
53
|
Max: 15
|
54
|
+
|
55
|
+
# Offense count: 3
|
56
|
+
# Configuration parameters: EnforcedStyle.
|
57
|
+
# SupportedStyles: lowercase, uppercase
|
58
|
+
Naming/HeredocDelimiterCase:
|
59
|
+
Exclude:
|
60
|
+
- 'spec/tasks/assets_spec.rb'
|
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
|
+
# Offense count: 6
|
75
|
+
Security/MarshalLoad:
|
76
|
+
Exclude:
|
77
|
+
- 'lib/dump/reader.rb'
|
78
|
+
- 'spec/cycle_spec.rb'
|
79
|
+
|
80
|
+
# Offense count: 1
|
81
|
+
# Cop supports --auto-correct.
|
82
|
+
Security/YAMLLoad:
|
83
|
+
Exclude:
|
84
|
+
- 'spec/cycle_spec.rb'
|
85
|
+
|
86
|
+
# Offense count: 6
|
87
|
+
# Cop supports --auto-correct.
|
88
|
+
# Configuration parameters: EnforcedStyle.
|
89
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
90
|
+
Style/BracesAroundHashParameters:
|
91
|
+
Exclude:
|
92
|
+
- 'spec/recipes/dump_spec.rb'
|
93
|
+
|
94
|
+
# Offense count: 3
|
95
|
+
# Cop supports --auto-correct.
|
96
|
+
Style/ExpandPathArguments:
|
97
|
+
Exclude:
|
98
|
+
- 'spec/cycle_spec.rb'
|
99
|
+
- 'spec/recipes/dump_spec.rb'
|
100
|
+
|
101
|
+
# Offense count: 6
|
102
|
+
# Cop supports --auto-correct.
|
103
|
+
# Configuration parameters: EnforcedStyle.
|
104
|
+
# SupportedStyles: implicit, explicit
|
105
|
+
Style/RescueStandardError:
|
106
|
+
Exclude:
|
107
|
+
- 'lib/dump.rb'
|
108
|
+
- 'lib/dump/capistrano/v2.rb'
|
109
|
+
- 'lib/dump/reader.rb'
|
110
|
+
- 'lib/dump/writer.rb'
|
111
|
+
|
112
|
+
# Offense count: 10
|
113
|
+
# Cop supports --auto-correct.
|
114
|
+
Style/StderrPuts:
|
115
|
+
Exclude:
|
116
|
+
- 'lib/dump.rb'
|
117
|
+
- 'lib/dump/capistrano/v2.rb'
|
118
|
+
- 'lib/dump/reader.rb'
|
119
|
+
- 'lib/dump/writer.rb'
|
120
|
+
- 'spec/cycle_spec.rb'
|
121
|
+
|
122
|
+
# Offense count: 370
|
123
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
124
|
+
# URISchemes: http, https
|
125
|
+
Metrics/LineLength:
|
126
|
+
Max: 210
|
data/.travis.yml
CHANGED
@@ -1,42 +1,32 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.
|
4
|
-
- '
|
5
|
-
-
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
- RAILS_VERSION='~> 4.0.0'
|
12
|
-
- RAILS_VERSION='~> 4.1.0'
|
13
|
-
- RAILS_VERSION='~> 4.2.0'
|
3
|
+
- '1.8.7-p371'
|
4
|
+
- '1.9.3-p551'
|
5
|
+
- '2.0.0-p648'
|
6
|
+
- '2.1.10'
|
7
|
+
- '2.2.10'
|
8
|
+
- '2.3.8'
|
9
|
+
- '2.4.5'
|
10
|
+
- '2.5.3'
|
14
11
|
script:
|
15
|
-
|
16
|
-
bundle exec rubocop
|
17
|
-
; else
|
18
|
-
bundle exec rspec
|
19
|
-
; fi
|
12
|
+
- bundle exec appraisal rspec
|
20
13
|
before_install:
|
14
|
+
- gem update bundler
|
21
15
|
- sudo /etc/init.d/postgresql stop
|
22
16
|
- sudo /etc/init.d/postgresql start
|
23
17
|
- mysql -e 'create database myapp_test;'
|
24
18
|
- psql -c 'create database myapp_test;' -U postgres
|
25
19
|
- cp .travis.database.yml spec/db/database.yml
|
20
|
+
install:
|
21
|
+
- bundle install --jobs=3 --retry=3
|
22
|
+
- bundle exec appraisal install --jobs=3 --retry=3
|
26
23
|
matrix:
|
27
|
-
fast_finish: true
|
28
24
|
include:
|
29
|
-
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
- {rvm: '2.1', env: RAILS_VERSION='~> 3.2.0'}
|
38
|
-
- {rvm: '2.1', env: RAILS_VERSION='~> 4.2.0'}
|
39
|
-
|
40
|
-
- {env: RUBOCOP=true, rvm: default}
|
41
|
-
allow_failures:
|
42
|
-
- rvm: jruby-19mode
|
25
|
+
- env: RUBOCOP=✓
|
26
|
+
rvm: '2.5.3'
|
27
|
+
script: bundle exec rubocop
|
28
|
+
before_install:
|
29
|
+
- env: CHECK_RUBIES=✓
|
30
|
+
rvm: '2.5.3'
|
31
|
+
script: bundle exec travis_check_rubies
|
32
|
+
before_install:
|
data/Appraisals
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
def appgen(gems)
|
2
|
+
description = gems.map{ |name, version| "#{name} #{version}" }.join(', ')
|
3
|
+
appraise description do
|
4
|
+
rails_version = gems['rails'][/\d+(\.\d+)+/]
|
5
|
+
|
6
|
+
gems.each do |name, version|
|
7
|
+
gem name, version
|
8
|
+
end
|
9
|
+
|
10
|
+
gem 'capistrano', '~> 2.0'
|
11
|
+
|
12
|
+
gem 'concurrent-ruby', '!= 1.1.1' if RUBY_VERSION =~ /^1\.9\./
|
13
|
+
|
14
|
+
if defined?(JRUBY_VERSION)
|
15
|
+
gem 'activerecord-jdbcsqlite3-adapter'
|
16
|
+
gem 'activerecord-jdbcmysql-adapter'
|
17
|
+
gem 'activerecord-jdbcpostgresql-adapter'
|
18
|
+
else
|
19
|
+
gem 'sqlite3'
|
20
|
+
|
21
|
+
case
|
22
|
+
when rails_version =~ /^2\./
|
23
|
+
gem 'mysql2', '~> 0.3.10'
|
24
|
+
gem 'activerecord-mysql2-adapter'
|
25
|
+
when rails_version =~ /^3\./
|
26
|
+
gem 'mysql2', '~> 0.3.10'
|
27
|
+
when rails_version =~ /^4\./
|
28
|
+
gem 'mysql2', '>= 0.3.13', '< 0.5'
|
29
|
+
else
|
30
|
+
gem 'mysql2'
|
31
|
+
end
|
32
|
+
|
33
|
+
case
|
34
|
+
when RUBY_VERSION < '1.9'
|
35
|
+
gem 'pg', '~> 0.17.1'
|
36
|
+
when rails_version =~ /^3\./
|
37
|
+
gem 'pg', '~> 0.11'
|
38
|
+
when rails_version =~ /^4\./
|
39
|
+
gem 'pg', '~> 0.15'
|
40
|
+
else
|
41
|
+
gem 'pg'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
if RUBY_VERSION < '2.0'
|
48
|
+
appgen 'rails' => '~> 2.3'
|
49
|
+
end
|
50
|
+
|
51
|
+
if RUBY_VERSION < '2.3'
|
52
|
+
appgen 'rails' => '~> 3.2'
|
53
|
+
end
|
54
|
+
|
55
|
+
if RUBY_VERSION >= '1.9'
|
56
|
+
appgen 'rails' => '~> 4.2'
|
57
|
+
end
|
58
|
+
|
59
|
+
if RUBY_VERSION >= '2.2'
|
60
|
+
appgen 'rails' => '~> 5.0.0'
|
61
|
+
appgen 'rails' => '~> 5.1.0'
|
62
|
+
appgen 'rails' => '~> 5.2'
|
63
|
+
end
|
data/Gemfile
CHANGED
@@ -1,30 +1,9 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
gem 'rails', rails_version
|
5
|
-
|
6
|
-
if defined?(JRUBY_VERSION)
|
7
|
-
gem 'activerecord-jdbcsqlite3-adapter'
|
8
|
-
gem 'activerecord-jdbcmysql-adapter'
|
9
|
-
gem 'activerecord-jdbcpostgresql-adapter'
|
10
|
-
else
|
11
|
-
gem 'sqlite3'
|
12
|
-
gem 'mysql2'
|
13
|
-
if RUBY_VERSION == '1.8.7'
|
14
|
-
gem 'pg', '0.17.1'
|
15
|
-
gem 'i18n', '0.6.11'
|
16
|
-
gem 'highline', '~> 1.6.21'
|
17
|
-
else
|
18
|
-
gem 'pg'
|
19
|
-
end
|
20
|
-
if rails_version =~ /(^|[^.\d])(2|3\.0)\.\d+/
|
21
|
-
gem 'activerecord-mysql2-adapter'
|
22
|
-
end
|
23
|
-
if rails_version =~ /(^|[^.\d])2\.\d+/ && RUBY_VERSION >= '2.0'
|
24
|
-
gem 'iconv', '~> 1.0.4'
|
25
|
-
end
|
26
|
-
end
|
3
|
+
gemspec
|
27
4
|
|
28
|
-
gem '
|
5
|
+
gem 'appraisal'
|
29
6
|
|
30
|
-
|
7
|
+
if RUBY_VERSION >= '2.0'
|
8
|
+
gem 'travis_check_rubies', '~> 0.2'
|
9
|
+
end
|
data/LICENSE.txt
CHANGED
data/README.markdown
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
[![Gem Version](https://img.shields.io/gem/v/dump.svg?style=flat)](https://rubygems.org/gems/dump)
|
2
2
|
[![Build Status](https://img.shields.io/travis/toy/dump/master.svg?style=flat)](https://travis-ci.org/toy/dump)
|
3
|
-
[![Code Climate](https://img.shields.io/codeclimate/
|
3
|
+
[![Code Climate](https://img.shields.io/codeclimate/maintainability/toy/dump.svg?style=flat)](https://codeclimate.com/github/toy/dump)
|
4
4
|
|
5
5
|
# Dump
|
6
6
|
|
7
7
|
Rails app rake and capistrano tasks to create and restore dumps of database and assets.
|
8
8
|
|
9
|
-
Tested against rails 2.3, 3.1, 3.2, 4.0, 4.1, 4.2.
|
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
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)).
|
12
12
|
|
@@ -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-2018 Ivan Kuchin. See LICENSE.txt for details.
|