departure 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5b9dd5a54f70a99b3471d272b91532e4227c865
4
- data.tar.gz: bb4d2da3ba3cd339fde67f3cb811f2f78e3c65ab
3
+ metadata.gz: 4128e93b7f92a2b1b74274f3f96936e37463c565
4
+ data.tar.gz: f01ddfd8e230f37bbd3d1dfaaca7f7dd235d4fca
5
5
  SHA512:
6
- metadata.gz: 66b7cfefcd27c06466d1c2c0324ea89d89ad9fae594d33f8c56ab50c4cef0823d00dcb51c5b67983d9879b81de1e848359706191019aa5b3582a34bcc35ac448
7
- data.tar.gz: 62129654e7c27998881ecc28cdfad93eaf5b4abf3b1fbef192cfdd2c59cd94feba6693986d20e521dcf6bfb273aa322c67a8d2e955150fd75d3249dc05fef5a0
6
+ metadata.gz: 68807558488c5cf6dd6ecdcb6b0ad83966a1e75d5994ab8b650aeed12e3784c20035cf6ce750af7a430f2263573d2cde049b627aa6fe125793bd39c6ebad5b54
7
+ data.tar.gz: 0ea99d8fa590efee5874d0cefe8b8ed78d2d4bb8f1c03ca774a1f32d873d7ea2eac3934767ef983982dcb36fef2d2d1a7e0469e677dffa4fe87196aeb2537026
data/.gitignore CHANGED
@@ -9,4 +9,4 @@
9
9
  /tmp/
10
10
  .byebug_history
11
11
  tags
12
- percona_migrator_error.log
12
+ departure_error.log
@@ -12,6 +12,20 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
12
12
  ### Removed
13
13
  ### Fixed
14
14
 
15
+ ## [3.0.1] - 2017-05-11
16
+
17
+ ### Added
18
+
19
+ - Allow running on other than default MySQL port
20
+
21
+ ### Changed
22
+ ### Deprecated
23
+ ### Removed
24
+ ### Fixed
25
+
26
+ - Handle special characters in connection's password
27
+ - `rename_table` and `rename_index` migration methods
28
+
15
29
  ## [3.0.0] - 2017-05-02
16
30
 
17
31
  ### Added
@@ -51,7 +51,8 @@ module ActiveRecord
51
51
 
52
52
  ADAPTER_NAME = 'Percona'.freeze
53
53
 
54
- def_delegators :mysql_adapter, :last_inserted_id, :each_hash, :set_field_encoding
54
+ def_delegators :mysql_adapter, :last_inserted_id, :each_hash,
55
+ :set_field_encoding, :full_version
55
56
 
56
57
  def initialize(connection, _logger, connection_options, _config)
57
58
  super
@@ -2,6 +2,7 @@ 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
5
6
  # Constructor
6
7
  #
7
8
  # @param [Hash] connection parametes as used in #establish_conneciton
@@ -14,7 +15,7 @@ module Departure
14
15
  #
15
16
  # @return [String]
16
17
  def to_s
17
- @to_s ||= "-h #{host} -u #{user} #{password_argument}"
18
+ @to_s ||= "-h #{host} -P #{port} -u #{user} #{password_argument}"
18
19
  end
19
20
 
20
21
  # TODO: Doesn't the abstract adapter already handle this somehow?
@@ -33,7 +34,7 @@ module Departure
33
34
  # @return [String]
34
35
  def password_argument
35
36
  if password.present?
36
- "-p #{password}"
37
+ %Q[--password "#{password}" ]
37
38
  else
38
39
  ''
39
40
  end
@@ -66,5 +67,12 @@ module Departure
66
67
  def password
67
68
  ENV.fetch('PERCONA_DB_PASSWORD', connection_data[:password])
68
69
  end
70
+
71
+ # Returns the database's port.
72
+ #
73
+ # @return [String]
74
+ def port
75
+ connection_data.fetch(:port, DEFAULT_PORT)
76
+ end
69
77
  end
70
78
  end
@@ -1,3 +1,3 @@
1
1
  module Departure
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.0.1'.freeze
3
3
  end
@@ -2,8 +2,8 @@ require 'forwardable'
2
2
 
3
3
  module Lhm
4
4
 
5
- # Abstracts the details of a table column definition when specified with a MySQL
6
- # column definition string
5
+ # Abstracts the details of a table column definition when specified with a
6
+ # MySQL column definition string
7
7
  class ColumnWithSql
8
8
  extend Forwardable
9
9
 
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: 3.0.0
4
+ version: 3.0.1
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-02 00:00:00.000000000 Z
16
+ date: 2017-05-11 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -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.11
214
+ rubygems_version: 2.6.10
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: pt-online-schema-change runner for ActiveRecord migrations