dump 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +3 -1
  3. data/.rubocop.yml +47 -23
  4. data/.rubocop_todo.yml +105 -12
  5. data/.travis.yml +21 -31
  6. data/Appraisals +63 -0
  7. data/Gemfile +5 -26
  8. data/LICENSE.txt +1 -1
  9. data/README.markdown +3 -3
  10. data/dump.gemspec +11 -4
  11. data/lib/dump.rb +2 -2
  12. data/lib/dump/archive_tar_minitar.rb +1 -0
  13. data/lib/dump/assets.rb +1 -1
  14. data/lib/dump/capistrano.rb +3 -3
  15. data/lib/dump/capistrano/v2.rb +1 -0
  16. data/lib/dump/continious_timeout.rb +2 -2
  17. data/lib/dump/env/filter.rb +5 -5
  18. data/lib/dump/reader.rb +5 -1
  19. data/lib/dump/snapshot.rb +16 -12
  20. data/lib/dump/table_manipulation.rb +7 -1
  21. data/lib/dump/writer.rb +10 -3
  22. data/script/update_readme +1 -1
  23. data/spec/.gitignore +2 -0
  24. data/spec/cycle_spec.rb +1 -4
  25. data/spec/db/schema.rb +1 -1
  26. data/spec/dummy-5.0/.gitignore +21 -0
  27. data/spec/dummy-5.0/config.ru +5 -0
  28. data/spec/dummy-5.0/config/application.rb +25 -0
  29. data/spec/dummy-5.0/config/boot.rb +3 -0
  30. data/spec/dummy-5.0/config/cable.yml +9 -0
  31. data/spec/dummy-5.0/config/database.yml +25 -0
  32. data/spec/dummy-5.0/config/environment.rb +5 -0
  33. data/spec/dummy-5.0/config/environments/development.rb +47 -0
  34. data/spec/dummy-5.0/config/environments/production.rb +78 -0
  35. data/spec/dummy-5.0/config/environments/test.rb +42 -0
  36. data/spec/dummy-5.0/config/initializers/application_controller_renderer.rb +8 -0
  37. data/spec/dummy-5.0/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy-5.0/config/initializers/cookies_serializer.rb +5 -0
  39. data/spec/dummy-5.0/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/spec/dummy-5.0/config/initializers/inflections.rb +16 -0
  41. data/spec/dummy-5.0/config/initializers/mime_types.rb +4 -0
  42. data/spec/dummy-5.0/config/initializers/new_framework_defaults.rb +26 -0
  43. data/spec/dummy-5.0/config/initializers/session_store.rb +3 -0
  44. data/spec/dummy-5.0/config/initializers/wrap_parameters.rb +14 -0
  45. data/spec/dummy-5.0/config/locales/en.yml +23 -0
  46. data/spec/dummy-5.0/config/puma.rb +47 -0
  47. data/spec/dummy-5.0/config/routes.rb +3 -0
  48. data/spec/dummy-5.0/config/secrets.yml +22 -0
  49. data/spec/dummy-5.0/config/spring.rb +6 -0
  50. data/spec/dummy-5.0/db/seeds.rb +7 -0
  51. data/spec/dummy-5.0/log/.keep +0 -0
  52. data/spec/dummy-5.1/.gitignore +23 -0
  53. data/spec/dummy-5.1/config.ru +5 -0
  54. data/spec/dummy-5.1/config/application.rb +31 -0
  55. data/spec/dummy-5.1/config/boot.rb +3 -0
  56. data/spec/dummy-5.1/config/cable.yml +10 -0
  57. data/spec/dummy-5.1/config/database.yml +25 -0
  58. data/spec/dummy-5.1/config/environment.rb +5 -0
  59. data/spec/dummy-5.1/config/environments/development.rb +47 -0
  60. data/spec/dummy-5.1/config/environments/production.rb +83 -0
  61. data/spec/dummy-5.1/config/environments/test.rb +42 -0
  62. data/spec/dummy-5.1/config/initializers/application_controller_renderer.rb +8 -0
  63. data/spec/dummy-5.1/config/initializers/backtrace_silencers.rb +7 -0
  64. data/spec/dummy-5.1/config/initializers/cookies_serializer.rb +5 -0
  65. data/spec/dummy-5.1/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/spec/dummy-5.1/config/initializers/inflections.rb +16 -0
  67. data/spec/dummy-5.1/config/initializers/mime_types.rb +4 -0
  68. data/spec/dummy-5.1/config/initializers/wrap_parameters.rb +14 -0
  69. data/spec/dummy-5.1/config/locales/en.yml +33 -0
  70. data/spec/dummy-5.1/config/puma.rb +56 -0
  71. data/spec/dummy-5.1/config/routes.rb +3 -0
  72. data/spec/dummy-5.1/config/secrets.yml +32 -0
  73. data/spec/dummy-5.1/config/spring.rb +6 -0
  74. data/spec/dummy-5.1/db/seeds.rb +7 -0
  75. data/spec/dummy-5.1/log/.keep +0 -0
  76. data/spec/dummy-5.1/package.json +5 -0
  77. data/spec/dummy-5.2/.gitignore +28 -0
  78. data/spec/dummy-5.2/config.ru +5 -0
  79. data/spec/dummy-5.2/config/application.rb +33 -0
  80. data/spec/dummy-5.2/config/boot.rb +3 -0
  81. data/spec/dummy-5.2/config/cable.yml +10 -0
  82. data/spec/dummy-5.2/config/database.yml +25 -0
  83. data/spec/dummy-5.2/config/environment.rb +5 -0
  84. data/spec/dummy-5.2/config/environments/development.rb +54 -0
  85. data/spec/dummy-5.2/config/environments/production.rb +85 -0
  86. data/spec/dummy-5.2/config/environments/test.rb +46 -0
  87. data/spec/dummy-5.2/config/initializers/application_controller_renderer.rb +8 -0
  88. data/spec/dummy-5.2/config/initializers/backtrace_silencers.rb +7 -0
  89. data/spec/dummy-5.2/config/initializers/content_security_policy.rb +25 -0
  90. data/spec/dummy-5.2/config/initializers/cookies_serializer.rb +5 -0
  91. data/spec/dummy-5.2/config/initializers/filter_parameter_logging.rb +4 -0
  92. data/spec/dummy-5.2/config/initializers/inflections.rb +16 -0
  93. data/spec/dummy-5.2/config/initializers/mime_types.rb +4 -0
  94. data/spec/dummy-5.2/config/initializers/wrap_parameters.rb +14 -0
  95. data/spec/dummy-5.2/config/locales/en.yml +33 -0
  96. data/spec/dummy-5.2/config/puma.rb +34 -0
  97. data/spec/dummy-5.2/config/routes.rb +3 -0
  98. data/spec/dummy-5.2/config/spring.rb +6 -0
  99. data/spec/dummy-5.2/config/storage.yml +34 -0
  100. data/spec/dummy-5.2/db/seeds.rb +7 -0
  101. data/spec/dummy-5.2/package.json +5 -0
  102. data/spec/dummy_rails_app.rb +3 -5
  103. data/spec/dump/env_spec.rb +7 -7
  104. data/spec/dump/rails_root_spec.rb +1 -1
  105. data/spec/dump/reader_spec.rb +14 -14
  106. data/spec/dump/snapshot_spec.rb +24 -17
  107. data/spec/dump/table_manipulation_spec.rb +8 -5
  108. data/spec/dump/writer_spec.rb +3 -3
  109. data/spec/dump_spec.rb +1 -1
  110. metadata +189 -21
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmVhZTUyMjdlMGE4YWY5ODViOGNhMDA2NDljZTljZTA3MGNmMGVkNw==
5
- data.tar.gz: !binary |-
6
- NzJkMGE4NjAxYThiYzZhYWFmNTU0ODdmMWVkZTkwMjVjY2Q3NTBhMg==
2
+ SHA256:
3
+ metadata.gz: a81965ff2404b3c727d9c7089ed14324e44fc31d4a382faad779d436b2155310
4
+ data.tar.gz: db0629ca2d5dcb98747de979579e1da627f7fa3bfcc71c7cebe0c62fcd0a24ad
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTAyZGM3YzNjNDk2YjJkMDAwMzIxMTY0OGRkZTdhMmRmOTQ1MGQyZmNiOWEy
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
@@ -6,8 +6,10 @@
6
6
  /.yardoc/
7
7
  /coverage/
8
8
 
9
- Gemfile.lock
10
9
  Makefile
11
10
  *.o
12
11
  *.bundle
13
12
  /tmp/
13
+
14
+ /Gemfile.lock
15
+ /gemfiles/
@@ -4,50 +4,74 @@ AllCops:
4
4
  Exclude:
5
5
  - '*.gemspec'
6
6
  - 'spec/dummy-*/**/*'
7
+ - 'gemfiles/*.gemfile'
7
8
 
8
- Lint/EndAlignment:
9
- AlignWith: variable
9
+ Bundler/OrderedGems:
10
+ Enabled: false
10
11
 
11
- Style/AccessModifierIndentation:
12
+ Layout/AccessModifierIndentation:
12
13
  EnforcedStyle: outdent
13
14
 
14
- Style/BracesAroundHashParameters:
15
- Enabled: false
16
-
17
- Style/CaseIndentation:
18
- IndentWhenRelativeTo: end
15
+ Layout/CaseIndentation:
16
+ EnforcedStyle: end
19
17
 
20
- Style/DotPosition:
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
- EnforcedStyle: when_needed
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
- MaxLineLength: 40
34
-
35
- Style/IndentHash:
36
- EnforcedStyle: consistent
56
+ Enabled: false
37
57
 
38
- Style/PercentLiteralDelimiters:
39
- PreferredDelimiters:
40
- '%w': '[]'
41
- '%W': '[]'
58
+ Style/ParallelAssignment:
59
+ Enabled: false
42
60
 
43
61
  Style/Semicolon:
44
62
  AllowAsExpressionSeparator: true
45
63
 
46
- Style/SpaceBeforeBlockBraces:
47
- EnforcedStyle: no_space
64
+ Style/SignalException:
65
+ EnforcedStyle: semantic
48
66
 
49
- Style/SpaceInsideHashLiteralBraces:
50
- EnforcedStyle: no_space
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/TrailingComma:
76
+ Style/TrailingCommaInHashLiteral:
53
77
  EnforcedStyleForMultiline: comma
@@ -1,33 +1,126 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-12-08 02:47:19 +0100 using RuboCop version 0.27.1.
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: 19
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: 2
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: 6
37
+ # Offense count: 7
18
38
  Metrics/CyclomaticComplexity:
19
39
  Max: 15
20
40
 
21
- # Offense count: 386
22
- # Configuration parameters: AllowURI, URISchemes.
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
@@ -1,42 +1,32 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - '2.2'
5
- - jruby-19mode
6
- env:
7
- - RAILS_VERSION='~> 2.3.0'
8
- # - RAILS_VERSION='~> 3.0.0' # conflicting adapters for postgresql and mysql2
9
- - RAILS_VERSION='~> 3.1.0'
10
- - RAILS_VERSION='~> 3.2.0'
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
- if [ -n "$RUBOCOP" ]; then
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
- - {rvm: 1.8.7, env: RAILS_VERSION='~> 2.3.0'}
30
- - {rvm: 1.8.7, env: RAILS_VERSION='~> 3.2.0'}
31
-
32
- - {rvm: '2.0', env: RAILS_VERSION='~> 2.3.0'}
33
- - {rvm: '2.0', env: RAILS_VERSION='~> 3.2.0'}
34
- - {rvm: '2.0', env: RAILS_VERSION='~> 4.2.0'}
35
-
36
- - {rvm: '2.1', env: RAILS_VERSION='~> 2.3.0'}
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:
@@ -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
- rails_version = ENV['RAILS_VERSION'] || '~> 4.0'
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 'capistrano', '~> 2.0'
5
+ gem 'appraisal'
29
6
 
30
- gemspec
7
+ if RUBY_VERSION >= '2.0'
8
+ gem 'travis_check_rubies', '~> 0.2'
9
+ end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2015 Ivan Kuchin
1
+ Copyright (c) 2008-2018 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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/github/toy/dump.svg?style=flat)](https://codeclimate.com/github/toy/dump)
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-2015 Ivan Kuchin. See LICENSE.txt for details.
262
+ Copyright (c) 2008-2018 Ivan Kuchin. See LICENSE.txt for details.