ridgepole 0.8.4 → 0.8.5

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
  SHA256:
3
- metadata.gz: 8a09a114ad24ead5072a479593d757ea2dad1d0f42ebf9ae84febad36db8ba78
4
- data.tar.gz: e4e14f15a869ac1b66cff3b869f4ca5d246975e4b62e4a8f5e8ecf040efe9d9c
3
+ metadata.gz: 8b49db08934182bd164f7910335dd04f3843e2e88c8593ab1d89f9bb4d0005d8
4
+ data.tar.gz: ff49a0ada6cac848407838596d23d93d75714079c0e95528015c4fcb9b2e4f56
5
5
  SHA512:
6
- metadata.gz: a664d190502ef67c91b9dc96f95cf4289812195939f8193354fea005de1bb83a31e479758dc0c64115dae02b6c7d62588fcd89f9129ebc2664c0bf8eef5906c1
7
- data.tar.gz: ac81928fe43c71c13542686361af7d54868782728a1d02731f431827dba66204098baf6b2a674cf817b239f285b94b5e2edf48d842997e7cdf47b238234aac71
6
+ metadata.gz: dc24b664af9f8dad9f6c6d21b6eeaa083ad915c42b63b58ce0b7b50386e11c3462b2f30f9819c80f03e5c2a682dadd5a980a355993e8c4e2c8f4a0dc06703242
7
+ data.tar.gz: c40af5068b9ccbc226d9375b8b7501584a161bdc81554d6612e2c1135346f9dcdbe4a1371657e23bc6d9f70df795e67c8addc6a8b5db538ce658e3588ad3867c
data/README.md CHANGED
@@ -109,6 +109,8 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
109
109
  * Fix "topological sort failed" error ([pull#287](https://github.com/winebarrel/ridgepole/pull/287))
110
110
  * `>= 0.8.4`
111
111
  * Display a warning if an InnoDB table doesn't have any indexes on a column where it has a foreign key ([pull#290](https://github.com/winebarrel/ridgepole/pull/290))
112
+ * `>= 0.8.5`
113
+ * Improve warning message on table options ([pull#291](https://github.com/winebarrel/ridgepole/pull/291))
112
114
  </details>
113
115
 
114
116
  ## Installation
@@ -169,7 +169,7 @@ module Ridgepole
169
169
 
170
170
  unless from == to
171
171
  @logger.warn(<<-MSG)
172
- [WARNING] No difference of schema configuration for table `#{table_name}` but table options differ.
172
+ [WARNING] Table option changes are ignored on `#{table_name}`.
173
173
  from: #{from}
174
174
  to: #{to}
175
175
  MSG
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ridgepole
4
- VERSION = '0.8.4'
4
+ VERSION = '0.8.5'
5
5
  end
@@ -4,7 +4,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
4
4
  before { subject.diff(actual_dsl).migrate }
5
5
  subject { client(table_options: table_options, dump_without_table_options: dump_without_table_options) }
6
6
 
7
- let(:warning_regexp) { /table options differ/ }
7
+ let(:warning_regexp) { /Table option changes are ignored/ }
8
8
  let(:dump_without_table_options) { false }
9
9
 
10
10
  let(:actual_dsl) do
@@ -32,7 +32,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
32
32
 
33
33
  it {
34
34
  expect(Ridgepole::Logger.instance).to receive(:warn).with(<<-MSG)
35
- [WARNING] No difference of schema configuration for table `employees` but table options differ.
35
+ [WARNING] Table option changes are ignored on `employees`.
36
36
  from: {:comment=>"old comment"}
37
37
  to: {:comment=>"new comment"}
38
38
  MSG
@@ -31,7 +31,7 @@ describe 'Ridgepole::Client#diff -> migrate' do
31
31
 
32
32
  it {
33
33
  expect(Ridgepole::Logger.instance).to receive(:warn).with(<<-MSG)
34
- [WARNING] No difference of schema configuration for table `employees` but table options differ.
34
+ [WARNING] Table option changes are ignored on `employees`.
35
35
  from: {:primary_key=>"emp_no"}
36
36
  to: {:primary_key=>"emp_no2"}
37
37
  MSG
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2019-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord