departure 2.0.1 → 3.0.0

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: 46a9c8a62c998a6bf3caf83ed058da349e5acd37
4
- data.tar.gz: 589cbb49256f86b439f2efd1f8091a837826543e
3
+ metadata.gz: d5b9dd5a54f70a99b3471d272b91532e4227c865
4
+ data.tar.gz: bb4d2da3ba3cd339fde67f3cb811f2f78e3c65ab
5
5
  SHA512:
6
- metadata.gz: 750081ba7900c49b24771556c38ce074302ac3db19c713c697fa3631108a8674056d7a42dac53a6978a04f8fdddb7ceac8c4603d11ef8a5579128c8bb5caf206
7
- data.tar.gz: d083c3d43c83161ddb1c243582d8b1910589b687b751b0209a52c27058be29b026f295cae1e3b1cb2c133b4ef20f8c9edfa32a27958e3ed028951c9cbc502e73
6
+ metadata.gz: 66b7cfefcd27c06466d1c2c0324ea89d89ad9fae594d33f8c56ab50c4cef0823d00dcb51c5b67983d9879b81de1e848359706191019aa5b3582a34bcc35ac448
7
+ data.tar.gz: 62129654e7c27998881ecc28cdfad93eaf5b4abf3b1fbef192cfdd2c59cd94feba6693986d20e521dcf6bfb273aa322c67a8d2e955150fd75d3249dc05fef5a0
data/.gitignore CHANGED
@@ -9,4 +9,4 @@
9
9
  /tmp/
10
10
  .byebug_history
11
11
  tags
12
- departure_error.log
12
+ percona_migrator_error.log
@@ -12,40 +12,15 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
12
12
  ### Removed
13
13
  ### Fixed
14
14
 
15
- ## [2.0.1 - 2017-05-11]
16
-
17
- ### Added
18
-
19
- - Allow running on other than default MySQL port
20
-
21
- ### Changed
22
- ### Removed
23
- ### Fixed
24
-
25
- - Handle special characters in connection's password
26
-
27
- ## [2.0.0 - 2017-04-20]
28
-
29
- ### Added
30
- ### Changed
31
-
32
- - Rename the gem from percona_migrator to departure
33
-
34
- ### Removed
35
-
36
- - Percona_migrator's deprecation warnings when installing and running the gem.
37
-
38
- ### Fixed
39
-
40
- ## [1.1.0] - 2017-04-07
15
+ ## [3.0.0] - 2017-05-02
41
16
 
42
17
  ### Added
43
18
 
44
19
  - Allow passing any `pt-online-schema-change`'s arguments through the
45
20
  `PERCONA_ARGS` env var when executing a migration with `rake db:migrate:up`
46
21
  or `db:migrate:down`.
47
- - Allow setting global percona arguments via gem configuration
48
- - Filter MySQL's password from logs
22
+ - Filter MySQL's password from logs.
23
+ - Allow setting global percona arguments via gem configuration.
49
24
 
50
25
  ### Changed
51
26
 
@@ -53,6 +28,13 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
53
28
  So far, this was purposely set to `none`. To keep this same behaviour
54
29
  provide the `PERCONA_ARGS=--recursion-method=none` env var when running the
55
30
  migration.
31
+ - Rename the gem from percona_migrator to departure.
32
+
33
+ ### Removed
34
+
35
+ - Percona_migrator's deprecation warnings when installing and running the gem.
36
+
37
+ ### Fixed
56
38
 
57
39
  ## [1.0.0] - 2016-11-30
58
40
 
data/README.md CHANGED
@@ -26,21 +26,6 @@ Toolkit](https://www.percona.com/doc/percona-toolkit/2.0/pt-online-schema-change
26
26
 
27
27
  `brew install percona-toolkit`
28
28
 
29
- If when running a migration you see an error like:
30
-
31
- ```
32
- PerconaMigrator::Error: Cannot connect to MySQL: Cannot connect to MySQL because
33
- the Perl DBI module is not installed or not found.
34
- ```
35
-
36
- You also need to install the DBI and DBD::MySQL modules from `cpan`.
37
-
38
- ```
39
- $ sudo cpan
40
- cpan> install DBI
41
- cpan> install DBD::mysql
42
- ```
43
-
44
29
  ### Linux
45
30
 
46
31
  #### Ubuntu/Debian based
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "departure"
4
+ require "percona_migrator"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'rails', '~> 4.0.0'
21
+ spec.add_runtime_dependency 'rails', '~> 4.1.0'
22
22
  spec.add_runtime_dependency 'mysql2', '0.3.20'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.10'
@@ -0,0 +1 @@
1
+ No foreign keys reference `percona_migrator_test`.`comments`; ignoring --alter-foreign-keys-method.
@@ -18,6 +18,7 @@ module Departure
18
18
  [
19
19
  Option.new('execute'),
20
20
  Option.new('statistics'),
21
+ Option.new('recursion-method', 'none'),
21
22
  Option.new('alter-foreign-keys-method', 'auto'),
22
23
  Option.new('no-check-alter')
23
24
  ]
@@ -2,7 +2,6 @@ module Departure
2
2
  # Holds the parameters of the DB connection and formats them to string
3
3
  class ConnectionDetails
4
4
 
5
- DEFAULT_PORT = 3306
6
5
  # Constructor
7
6
  #
8
7
  # @param [Hash] connection parametes as used in #establish_conneciton
@@ -15,7 +14,7 @@ module Departure
15
14
  #
16
15
  # @return [String]
17
16
  def to_s
18
- @to_s ||= "-h #{host} -P #{port} -u #{user} #{password_argument}"
17
+ @to_s ||= "-h #{host} -u #{user} #{password_argument}"
19
18
  end
20
19
 
21
20
  # TODO: Doesn't the abstract adapter already handle this somehow?
@@ -34,7 +33,7 @@ module Departure
34
33
  # @return [String]
35
34
  def password_argument
36
35
  if password.present?
37
- %Q[--password "#{password}" ]
36
+ "-p #{password}"
38
37
  else
39
38
  ''
40
39
  end
@@ -67,12 +66,5 @@ module Departure
67
66
  def password
68
67
  ENV.fetch('PERCONA_DB_PASSWORD', connection_data[:password])
69
68
  end
70
-
71
- # Returns the database's port.
72
- #
73
- # @return [String]
74
- def port
75
- connection_data.fetch(:port, DEFAULT_PORT)
76
- end
77
69
  end
78
70
  end
@@ -1,3 +1,3 @@
1
1
  module Departure
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: departure
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Zayats
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2017-05-11 00:00:00.000000000 Z
16
+ date: 2017-05-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -21,14 +21,14 @@ dependencies:
21
21
  requirements:
22
22
  - - "~>"
23
23
  - !ruby/object:Gem::Version
24
- version: 4.0.0
24
+ version: 4.1.0
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - "~>"
30
30
  - !ruby/object:Gem::Version
31
- version: 4.0.0
31
+ version: 4.1.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: mysql2
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  requirements: []
213
213
  rubyforge_project:
214
- rubygems_version: 2.6.10
214
+ rubygems_version: 2.6.11
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: pt-online-schema-change runner for ActiveRecord migrations