departure 6.0.0 → 6.1.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: fdb2c9fa1e194c422dd3307d185b6221cc67424d
4
- data.tar.gz: 12751e59aad8b20266827be30d439b0db7426ce9
3
+ metadata.gz: 0ec14bb84716b3492846b14acd70c19f2e242748
4
+ data.tar.gz: 138eb9af8dc4c07d4fc5d7f77203f2cb927b7f5d
5
5
  SHA512:
6
- metadata.gz: 67ce7ea1006cc6c5558e63561ceeed43e953870c0f3567ac614c1977795747ae73b1cca6e5eec4fdcbfb51733559e1fae1861a175cb0a3327aa889b3c80c5826
7
- data.tar.gz: f743b0347bf4411dc20751d1d06f3deece63a0accb5a9b5cbe8ac46028669460b7bbad3225a643649541f750f7caedcd66cfd40b2897c4cfa6cabe902dfab12b
6
+ metadata.gz: 3ea0b39fa2cb8ca1766ad374f6a1dc33a3214e742930afc94974faade91468e561ef0b21beac179f6209124559264de9b0dfff1b3014378ebcf87c98e60902b4
7
+ data.tar.gz: 83b78984ff0ace2b88f0b4fddbe6ccc37daa4f34f49b30f327c9041d5babb82b2d2d4a3d98dd4494f3eb94e8d39590229bd974db9bb1420ca58356c69d803132
@@ -8,10 +8,15 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
8
8
 
9
9
  ### Added
10
10
  ### Changed
11
+
12
+ - Permit PERCONA_ARGS to be applied to db:migrate tasks
13
+
11
14
  ### Deprecated
12
15
  ### Removed
13
16
  ### Fixed
14
17
 
18
+ - Output lines are no longer wrapped at 8 chars
19
+
15
20
  ## [6.0.0] - 2017-09-25
16
21
 
17
22
  ### Added
@@ -1,6 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Pau Pérez
3
+ Copyright for portions of Departure are held by Redbooth, Inc., 2015-2017. All
4
+ other copyright for Departure are held by Pau Pérez, 2017.
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Departure [![Build Status](https://travis-ci.org/redbooth/departure.svg?branch=master)](https://travis-ci.org/redbooth/departure) [![Code Climate](https://codeclimate.com/github/redbooth/departure/badges/gpa.svg)](https://codeclimate.com/github/redbooth/departure)
1
+ # Departure [![Build Status](https://travis-ci.org/departurerb/departure.svg?branch=master)](https://travis-ci.org/departurerb/departure) [![Code Climate](https://codeclimate.com/github/departurerb/departure/badges/gpa.svg)](https://codeclimate.com/github/departurerb/departure)
2
2
 
3
3
  Departure is an **ActiveRecord connection adapter** that allows running
4
4
  **MySQL online and non-blocking DDL** through `ActiveRecord::Migration` without needing
@@ -102,9 +102,8 @@ or even mulitple arguments
102
102
  $ PERCONA_ARGS='--chunk-time=1 --critical-load=55' bundle exec rake db:migrate:up VERSION=xxx
103
103
  ```
104
104
 
105
- This however, only works for `db:migrate:up` or `db:migrate:down` rake tasks and
106
- not with `db:migrate`. The settings you provide can't be generalized as these
107
- vary depending on the database table and the kind of changes you apply.
105
+ Use caution when using PERCONA_ARGS with `db:migrate`, as your args will be applied
106
+ to every call that Departure makes to pt-osc.
108
107
 
109
108
  #### with global configuration
110
109
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
 
14
14
  spec.summary = %q(pt-online-schema-change runner for ActiveRecord migrations)
15
15
  spec.description = %q(Execute your ActiveRecord migrations with Percona's pt-online-schema-change. Formerly known as Percona Migrator.)
16
- spec.homepage = 'http://github.com/redbooth/departure'
16
+ spec.homepage = 'https://github.com/departurerb/departure'
17
17
  spec.license = 'MIT'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -30,21 +30,6 @@ module Departure
30
30
  # Hooks Percona Migrator into Rails migrations by replacing the configured
31
31
  # database adapter
32
32
  def self.load
33
- ActiveRecord::Migrator.instance_eval do
34
- class << self
35
- alias original_migrate migrate
36
- end
37
-
38
- # Checks whether arguments are being passed through PERCONA_ARGS when running
39
- # the db:migrate rake task
40
- #
41
- # @raise [ArgumentsNotSupported] if PERCONA_ARGS has any value
42
- def migrate(migrations_paths, target_version = nil, &block)
43
- raise ArgumentsNotSupported if ENV['PERCONA_ARGS'].present?
44
- original_migrate(migrations_paths, target_version, &block)
45
- end
46
- end
47
-
48
33
  ActiveRecord::Migration.class_eval do
49
34
  alias_method :original_migrate, :migrate
50
35
 
@@ -44,7 +44,7 @@ module Departure
44
44
  begin
45
45
  loop do
46
46
  IO.select([stdout])
47
- data = stdout.read_nonblock(8)
47
+ data = stdout.read_nonblock(8192)
48
48
  logger.write_no_newline(data)
49
49
  end
50
50
  rescue EOFError # rubocop:disable Lint/HandleExceptions
@@ -1,3 +1,3 @@
1
1
  module Departure
2
- VERSION = '6.0.0'.freeze
2
+ VERSION = '6.1.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: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Zayats
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-09-25 00:00:00.000000000 Z
17
+ date: 2018-02-27 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -158,7 +158,6 @@ files:
158
158
  - config.yml.erb
159
159
  - configuration.rb
160
160
  - departure.gemspec
161
- - departure_error.log
162
161
  - docker-compose.yml
163
162
  - lib/active_record/connection_adapters/percona_adapter.rb
164
163
  - lib/departure.rb
@@ -183,7 +182,7 @@ files:
183
182
  - lib/lhm/column_with_sql.rb
184
183
  - lib/lhm/column_with_type.rb
185
184
  - test_database.rb
186
- homepage: http://github.com/redbooth/departure
185
+ homepage: https://github.com/departurerb/departure
187
186
  licenses:
188
187
  - MIT
189
188
  metadata: {}