departure 6.0.0 → 6.1.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +2 -1
- data/README.md +3 -4
- data/departure.gemspec +1 -1
- data/lib/departure.rb +0 -15
- data/lib/departure/command.rb +1 -1
- data/lib/departure/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ec14bb84716b3492846b14acd70c19f2e242748
|
|
4
|
+
data.tar.gz: 138eb9af8dc4c07d4fc5d7f77203f2cb927b7f5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ea0b39fa2cb8ca1766ad374f6a1dc33a3214e742930afc94974faade91468e561ef0b21beac179f6209124559264de9b0dfff1b3014378ebcf87c98e60902b4
|
|
7
|
+
data.tar.gz: 83b78984ff0ace2b88f0b4fddbe6ccc37daa4f34f49b30f327c9041d5babb82b2d2d4a3d98dd4494f3eb94e8d39590229bd974db9bb1420ca58356c69d803132
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
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 [](https://travis-ci.org/departurerb/departure) [](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
|
-
|
|
106
|
-
|
|
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
|
|
data/departure.gemspec
CHANGED
|
@@ -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 = '
|
|
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)/}) }
|
data/lib/departure.rb
CHANGED
|
@@ -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
|
|
data/lib/departure/command.rb
CHANGED
data/lib/departure/version.rb
CHANGED
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.
|
|
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:
|
|
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:
|
|
185
|
+
homepage: https://github.com/departurerb/departure
|
|
187
186
|
licenses:
|
|
188
187
|
- MIT
|
|
189
188
|
metadata: {}
|