ridgepole 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/lib/ridgepole/delta.rb +1 -1
  4. data/lib/ridgepole/version.rb +1 -1
  5. data/ridgepole.gemspec +5 -2
  6. metadata +3 -279
  7. data/.github/workflows/test.yml +0 -70
  8. data/.gitignore +0 -25
  9. data/spec/cli_helper.rb +0 -65
  10. data/spec/dsl_parser/context_spec.rb +0 -16
  11. data/spec/erb_helper.rb +0 -26
  12. data/spec/fixtures/for_require_relative_spec.rb +0 -3
  13. data/spec/hide_pending_formatter.rb +0 -9
  14. data/spec/mysql/_migrate/migrate_change_table_option_spec.rb +0 -40
  15. data/spec/mysql/bigint_pk/int_pk_spec.rb +0 -47
  16. data/spec/mysql/cli/config_spec.rb +0 -210
  17. data/spec/mysql/cli/ridgepole_spec.rb +0 -447
  18. data/spec/mysql/collation/collation_spec.rb +0 -153
  19. data/spec/mysql/comment/comment_spec.rb +0 -179
  20. data/spec/mysql/default_lambda/default_lambda_spec.rb +0 -164
  21. data/spec/mysql/diff/diff2_spec.rb +0 -189
  22. data/spec/mysql/diff/diff_spec.rb +0 -168
  23. data/spec/mysql/dump/dump_class_method_spec.rb +0 -74
  24. data/spec/mysql/dump/dump_some_tables_spec.rb +0 -70
  25. data/spec/mysql/dump/dump_spec.rb +0 -74
  26. data/spec/mysql/dump/dump_unknown_column_type_spec.rb +0 -28
  27. data/spec/mysql/dump/dump_without_table_options_spec.rb +0 -34
  28. data/spec/mysql/fk/migrate_change_fk2_spec.rb +0 -47
  29. data/spec/mysql/fk/migrate_change_fk_spec.rb +0 -265
  30. data/spec/mysql/fk/migrate_create_fk_spec.rb +0 -349
  31. data/spec/mysql/fk/migrate_drop_fk_spec.rb +0 -331
  32. data/spec/mysql/fk/migrate_fk_with_column_spec.rb +0 -163
  33. data/spec/mysql/fk/migrate_ignore_fk_spec.rb +0 -70
  34. data/spec/mysql/migrate/check_orphan_index_spec.rb +0 -83
  35. data/spec/mysql/migrate/migrate_add_column2_spec.rb +0 -159
  36. data/spec/mysql/migrate/migrate_add_column_order_spec.rb +0 -242
  37. data/spec/mysql/migrate/migrate_add_column_spec.rb +0 -161
  38. data/spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb +0 -276
  39. data/spec/mysql/migrate/migrate_add_column_with_script_spec.rb +0 -152
  40. data/spec/mysql/migrate/migrate_change_column2_spec.rb +0 -91
  41. data/spec/mysql/migrate/migrate_change_column3_spec.rb +0 -404
  42. data/spec/mysql/migrate/migrate_change_column4_spec.rb +0 -83
  43. data/spec/mysql/migrate/migrate_change_column5_spec.rb +0 -129
  44. data/spec/mysql/migrate/migrate_change_column6_spec.rb +0 -241
  45. data/spec/mysql/migrate/migrate_change_column7_spec.rb +0 -34
  46. data/spec/mysql/migrate/migrate_change_column8_spec.rb +0 -87
  47. data/spec/mysql/migrate/migrate_change_column_default_spec.rb +0 -199
  48. data/spec/mysql/migrate/migrate_change_column_float_spec.rb +0 -75
  49. data/spec/mysql/migrate/migrate_change_column_spec.rb +0 -158
  50. data/spec/mysql/migrate/migrate_change_index2_spec.rb +0 -86
  51. data/spec/mysql/migrate/migrate_change_index3_spec.rb +0 -179
  52. data/spec/mysql/migrate/migrate_change_index4_spec.rb +0 -112
  53. data/spec/mysql/migrate/migrate_change_index5_spec.rb +0 -74
  54. data/spec/mysql/migrate/migrate_change_index6_spec.rb +0 -202
  55. data/spec/mysql/migrate/migrate_change_index7_spec.rb +0 -85
  56. data/spec/mysql/migrate/migrate_change_index8_spec.rb +0 -85
  57. data/spec/mysql/migrate/migrate_change_index_spec.rb +0 -235
  58. data/spec/mysql/migrate/migrate_change_table_comment_spec.rb +0 -72
  59. data/spec/mysql/migrate/migrate_change_table_option_spec.rb +0 -83
  60. data/spec/mysql/migrate/migrate_check_relation_column_type_spec.rb +0 -225
  61. data/spec/mysql/migrate/migrate_create_index2_spec.rb +0 -203
  62. data/spec/mysql/migrate/migrate_create_index_spec.rb +0 -220
  63. data/spec/mysql/migrate/migrate_create_table_spec.rb +0 -123
  64. data/spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb +0 -45
  65. data/spec/mysql/migrate/migrate_create_table_with_index_spec.rb +0 -43
  66. data/spec/mysql/migrate/migrate_create_table_with_options_spec.rb +0 -59
  67. data/spec/mysql/migrate/migrate_create_table_with_script_spec.rb +0 -132
  68. data/spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb +0 -140
  69. data/spec/mysql/migrate/migrate_drop_column_and_index_spec.rb +0 -167
  70. data/spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb +0 -52
  71. data/spec/mysql/migrate/migrate_drop_column_spec.rb +0 -158
  72. data/spec/mysql/migrate/migrate_drop_index_spec.rb +0 -160
  73. data/spec/mysql/migrate/migrate_drop_table_spec.rb +0 -123
  74. data/spec/mysql/migrate/migrate_duplicate_index_spec.rb +0 -27
  75. data/spec/mysql/migrate/migrate_duplicate_table_spec.rb +0 -37
  76. data/spec/mysql/migrate/migrate_empty_spec.rb +0 -78
  77. data/spec/mysql/migrate/migrate_execute_spec.rb +0 -288
  78. data/spec/mysql/migrate/migrate_ignore_column_spec.rb +0 -98
  79. data/spec/mysql/migrate/migrate_ignore_index_spec.rb +0 -92
  80. data/spec/mysql/migrate/migrate_log_file_spec.rb +0 -125
  81. data/spec/mysql/migrate/migrate_merge_mode_spec.rb +0 -145
  82. data/spec/mysql/migrate/migrate_noop_spec.rb +0 -234
  83. data/spec/mysql/migrate/migrate_primary_key_spec.rb +0 -104
  84. data/spec/mysql/migrate/migrate_rename_column_spec.rb +0 -184
  85. data/spec/mysql/migrate/migrate_rename_table_spec.rb +0 -241
  86. data/spec/mysql/migrate/migrate_same_default_null_spec.rb +0 -77
  87. data/spec/mysql/migrate/migrate_same_spec.rb +0 -82
  88. data/spec/mysql/migrate/migrate_script_error_spec.rb +0 -91
  89. data/spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb +0 -39
  90. data/spec/mysql/migrate/migrate_skip_drop_table_spec.rb +0 -145
  91. data/spec/mysql/migrate/migrate_skip_rename_column_spec.rb +0 -140
  92. data/spec/mysql/migrate/migrate_skip_rename_table_spec.rb +0 -141
  93. data/spec/mysql/migrate/migrate_with_ignore_tables_spec.rb +0 -307
  94. data/spec/mysql/migrate/migrate_with_pre_post_query_spec.rb +0 -153
  95. data/spec/mysql/migrate/migrate_with_tables_spec.rb +0 -149
  96. data/spec/mysql/migrate/migrate_with_verbose_log_spec.rb +0 -60
  97. data/spec/mysql/ridgepole_test_database.sql +0 -2
  98. data/spec/mysql/ridgepole_test_tables.sql +0 -79
  99. data/spec/mysql/ridgepole_test_tables_unknown_column_type.sql +0 -17
  100. data/spec/mysql/text_blob_types/text_blob_types_spec.rb +0 -131
  101. data/spec/mysql/~default_name_fk/migrate_change_fk_spec.rb +0 -59
  102. data/spec/mysql/~default_name_fk/migrate_create_fk_spec.rb +0 -133
  103. data/spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb +0 -100
  104. data/spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb +0 -43
  105. data/spec/mysql57/json/add_json_column_spec.rb +0 -35
  106. data/spec/mysql57/json/change_json_column_spec.rb +0 -102
  107. data/spec/mysql57/json/drop_json_column_spec.rb +0 -35
  108. data/spec/mysql57/virtual/add_virtual_column_spec.rb +0 -37
  109. data/spec/mysql57/virtual/change_virtual_column_spec.rb +0 -40
  110. data/spec/mysql57/virtual/drop_virtual_column_spec.rb +0 -37
  111. data/spec/postgresql/diff/diff_spec.rb +0 -216
  112. data/spec/postgresql/dump/dump_spec.rb +0 -69
  113. data/spec/postgresql/fk/migrate_change_fk_spec.rb +0 -115
  114. data/spec/postgresql/fk/migrate_create_fk_spec.rb +0 -176
  115. data/spec/postgresql/fk/migrate_drop_fk_spec.rb +0 -197
  116. data/spec/postgresql/migrate/migrate_add_column_spec.rb +0 -203
  117. data/spec/postgresql/migrate/migrate_add_expression_index_spec.rb +0 -25
  118. data/spec/postgresql/migrate/migrate_bigint_spec.rb +0 -53
  119. data/spec/postgresql/migrate/migrate_change_column_default_spec.rb +0 -38
  120. data/spec/postgresql/migrate/migrate_change_column_spec.rb +0 -185
  121. data/spec/postgresql/migrate/migrate_change_index_spec.rb +0 -164
  122. data/spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb +0 -114
  123. data/spec/postgresql/migrate/migrate_create_table_spec.rb +0 -120
  124. data/spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb +0 -112
  125. data/spec/postgresql/migrate/migrate_drop_column_spec.rb +0 -163
  126. data/spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb +0 -166
  127. data/spec/postgresql/migrate/migrate_drop_expression_index_spec.rb +0 -59
  128. data/spec/postgresql/migrate/migrate_drop_index_spec.rb +0 -158
  129. data/spec/postgresql/migrate/migrate_drop_table_spec.rb +0 -122
  130. data/spec/postgresql/migrate/migrate_ext_cols_spec.rb +0 -64
  131. data/spec/postgresql/migrate/migrate_primary_key2_spec.rb +0 -73
  132. data/spec/postgresql/migrate/migrate_primary_key_spec.rb +0 -99
  133. data/spec/postgresql/migrate/migrate_references_spec.rb +0 -90
  134. data/spec/postgresql/migrate/migrate_rename_column_spec.rb +0 -155
  135. data/spec/postgresql/migrate/migrate_rename_table_spec.rb +0 -175
  136. data/spec/postgresql/migrate/migrate_same_spec.rb +0 -77
  137. data/spec/postgresql/ridgepole_test_database.sql +0 -16
  138. data/spec/postgresql/ridgepole_test_tables.sql +0 -75
  139. data/spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb +0 -59
  140. data/spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb +0 -134
  141. data/spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb +0 -100
  142. data/spec/processing_for_ci.rb +0 -13
  143. data/spec/spec_condition.rb +0 -58
  144. data/spec/spec_const.rb +0 -20
  145. data/spec/spec_helper.rb +0 -173
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4309b6d60e99651b74a3a54dc7600d59a9f4ce195bc3922b1abca232ed02009e
4
- data.tar.gz: 73bb8b3ed77c18e4f5d51439aefed10980afe7d9371808787832758d0248c88d
3
+ metadata.gz: 31e0a751b0aa205f5286981c6003da0458d36f71b5120d891fe80cd2ebee5d40
4
+ data.tar.gz: fb792c794a4f0460ff29a554fad353cae140f94e2d31517ad552799b87789b78
5
5
  SHA512:
6
- metadata.gz: f4133de20d4427bc17fd033aeb6bfb5507c730da1c947954b46fece10e0c51c6b855017ef98e6d681f7bb442c26699eef094ca6572871e0be4a34de784fb701d
7
- data.tar.gz: 11943e7e1f26c9486542279e270d546c2455bc97b813f22e6dd390cf18217a07a8873301138af70e254b84380db3bba1f3f6b0ba450842ae29c6a881b22ad0c3
6
+ metadata.gz: bbe71e379ee8e5e794118d7844a61b294ac05eb7d85894eeebc1b15314f55937c32ff13e7795d839ef7ea5eb5cb8aa281bfec0320d9f0f77d3c944c46bc3a75e
7
+ data.tar.gz: b6dd23c3d01152d5d1e06d5a8fe75f7463bcc92d33f41c389d41d0344f691219ccb17cd21928980191abadd22bf69679e8a75802d8582b6375b755e6c49ac9c7
data/README.md CHANGED
@@ -145,6 +145,8 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
145
145
  * Fix `--alter-extra` option for unique index ([pull#356](https://github.com/winebarrel/ridgepole/pull/356))
146
146
  * `>= 0.9.5`
147
147
  * Call `super` in `disable_table_options.rb` ([pull#357](https://github.com/winebarrel/ridgepole/pull/357))
148
+ * `>= 0.9.6`
149
+ * Fix malformed error ([pull#362](https://github.com/winebarrel/ridgepole/pull/362))
148
150
  </details>
149
151
 
150
152
  **Notice**
@@ -191,7 +191,7 @@ module Ridgepole
191
191
  errmsg = lines.with_index.map do |l, i|
192
192
  line_num = i + 1
193
193
  prefix = line_num == err_num ? '* ' : ' '
194
- format("#{prefix}%<line_num>#{digit_number}d: #{l}", line_num: line_num)
194
+ format("#{prefix}%<line_num>#{digit_number}d: %<line>s", line_num: line_num, line: l)
195
195
  end
196
196
 
197
197
  if err_num > 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ridgepole
4
- VERSION = '0.9.5'
4
+ VERSION = '0.9.6'
5
5
  end
data/ridgepole.gemspec CHANGED
@@ -14,9 +14,12 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/ridgepole/ridgepole'
15
15
  spec.license = 'MIT'
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0")
17
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
18
+ `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
20
+ end
21
+ end
18
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
23
  spec.require_paths = ['lib']
21
24
 
22
25
  spec.required_ruby_version = Gem::Requirement.new('>= 2.2.7') # rubocop:disable Gemspec/RequiredRubyVersion
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.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2021-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -277,8 +277,6 @@ executables:
277
277
  extensions: []
278
278
  extra_rdoc_files: []
279
279
  files:
280
- - ".github/workflows/test.yml"
281
- - ".gitignore"
282
280
  - ".rspec"
283
281
  - ".rubocop.yml"
284
282
  - ".simplecov"
@@ -316,143 +314,6 @@ files:
316
314
  - lib/ridgepole/schema_statements_ext.rb
317
315
  - lib/ridgepole/version.rb
318
316
  - ridgepole.gemspec
319
- - spec/cli_helper.rb
320
- - spec/dsl_parser/context_spec.rb
321
- - spec/erb_helper.rb
322
- - spec/fixtures/for_require_relative_spec.rb
323
- - spec/hide_pending_formatter.rb
324
- - spec/mysql/_migrate/migrate_change_table_option_spec.rb
325
- - spec/mysql/bigint_pk/int_pk_spec.rb
326
- - spec/mysql/cli/config_spec.rb
327
- - spec/mysql/cli/ridgepole_spec.rb
328
- - spec/mysql/collation/collation_spec.rb
329
- - spec/mysql/comment/comment_spec.rb
330
- - spec/mysql/default_lambda/default_lambda_spec.rb
331
- - spec/mysql/diff/diff2_spec.rb
332
- - spec/mysql/diff/diff_spec.rb
333
- - spec/mysql/dump/dump_class_method_spec.rb
334
- - spec/mysql/dump/dump_some_tables_spec.rb
335
- - spec/mysql/dump/dump_spec.rb
336
- - spec/mysql/dump/dump_unknown_column_type_spec.rb
337
- - spec/mysql/dump/dump_without_table_options_spec.rb
338
- - spec/mysql/fk/migrate_change_fk2_spec.rb
339
- - spec/mysql/fk/migrate_change_fk_spec.rb
340
- - spec/mysql/fk/migrate_create_fk_spec.rb
341
- - spec/mysql/fk/migrate_drop_fk_spec.rb
342
- - spec/mysql/fk/migrate_fk_with_column_spec.rb
343
- - spec/mysql/fk/migrate_ignore_fk_spec.rb
344
- - spec/mysql/migrate/check_orphan_index_spec.rb
345
- - spec/mysql/migrate/migrate_add_column2_spec.rb
346
- - spec/mysql/migrate/migrate_add_column_order_spec.rb
347
- - spec/mysql/migrate/migrate_add_column_spec.rb
348
- - spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb
349
- - spec/mysql/migrate/migrate_add_column_with_script_spec.rb
350
- - spec/mysql/migrate/migrate_change_column2_spec.rb
351
- - spec/mysql/migrate/migrate_change_column3_spec.rb
352
- - spec/mysql/migrate/migrate_change_column4_spec.rb
353
- - spec/mysql/migrate/migrate_change_column5_spec.rb
354
- - spec/mysql/migrate/migrate_change_column6_spec.rb
355
- - spec/mysql/migrate/migrate_change_column7_spec.rb
356
- - spec/mysql/migrate/migrate_change_column8_spec.rb
357
- - spec/mysql/migrate/migrate_change_column_default_spec.rb
358
- - spec/mysql/migrate/migrate_change_column_float_spec.rb
359
- - spec/mysql/migrate/migrate_change_column_spec.rb
360
- - spec/mysql/migrate/migrate_change_index2_spec.rb
361
- - spec/mysql/migrate/migrate_change_index3_spec.rb
362
- - spec/mysql/migrate/migrate_change_index4_spec.rb
363
- - spec/mysql/migrate/migrate_change_index5_spec.rb
364
- - spec/mysql/migrate/migrate_change_index6_spec.rb
365
- - spec/mysql/migrate/migrate_change_index7_spec.rb
366
- - spec/mysql/migrate/migrate_change_index8_spec.rb
367
- - spec/mysql/migrate/migrate_change_index_spec.rb
368
- - spec/mysql/migrate/migrate_change_table_comment_spec.rb
369
- - spec/mysql/migrate/migrate_change_table_option_spec.rb
370
- - spec/mysql/migrate/migrate_check_relation_column_type_spec.rb
371
- - spec/mysql/migrate/migrate_create_index2_spec.rb
372
- - spec/mysql/migrate/migrate_create_index_spec.rb
373
- - spec/mysql/migrate/migrate_create_table_spec.rb
374
- - spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb
375
- - spec/mysql/migrate/migrate_create_table_with_index_spec.rb
376
- - spec/mysql/migrate/migrate_create_table_with_options_spec.rb
377
- - spec/mysql/migrate/migrate_create_table_with_script_spec.rb
378
- - spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb
379
- - spec/mysql/migrate/migrate_drop_column_and_index_spec.rb
380
- - spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb
381
- - spec/mysql/migrate/migrate_drop_column_spec.rb
382
- - spec/mysql/migrate/migrate_drop_index_spec.rb
383
- - spec/mysql/migrate/migrate_drop_table_spec.rb
384
- - spec/mysql/migrate/migrate_duplicate_index_spec.rb
385
- - spec/mysql/migrate/migrate_duplicate_table_spec.rb
386
- - spec/mysql/migrate/migrate_empty_spec.rb
387
- - spec/mysql/migrate/migrate_execute_spec.rb
388
- - spec/mysql/migrate/migrate_ignore_column_spec.rb
389
- - spec/mysql/migrate/migrate_ignore_index_spec.rb
390
- - spec/mysql/migrate/migrate_log_file_spec.rb
391
- - spec/mysql/migrate/migrate_merge_mode_spec.rb
392
- - spec/mysql/migrate/migrate_noop_spec.rb
393
- - spec/mysql/migrate/migrate_primary_key_spec.rb
394
- - spec/mysql/migrate/migrate_rename_column_spec.rb
395
- - spec/mysql/migrate/migrate_rename_table_spec.rb
396
- - spec/mysql/migrate/migrate_same_default_null_spec.rb
397
- - spec/mysql/migrate/migrate_same_spec.rb
398
- - spec/mysql/migrate/migrate_script_error_spec.rb
399
- - spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb
400
- - spec/mysql/migrate/migrate_skip_drop_table_spec.rb
401
- - spec/mysql/migrate/migrate_skip_rename_column_spec.rb
402
- - spec/mysql/migrate/migrate_skip_rename_table_spec.rb
403
- - spec/mysql/migrate/migrate_with_ignore_tables_spec.rb
404
- - spec/mysql/migrate/migrate_with_pre_post_query_spec.rb
405
- - spec/mysql/migrate/migrate_with_tables_spec.rb
406
- - spec/mysql/migrate/migrate_with_verbose_log_spec.rb
407
- - spec/mysql/ridgepole_test_database.sql
408
- - spec/mysql/ridgepole_test_tables.sql
409
- - spec/mysql/ridgepole_test_tables_unknown_column_type.sql
410
- - spec/mysql/text_blob_types/text_blob_types_spec.rb
411
- - spec/mysql/~default_name_fk/migrate_change_fk_spec.rb
412
- - spec/mysql/~default_name_fk/migrate_create_fk_spec.rb
413
- - spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb
414
- - spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb
415
- - spec/mysql57/json/add_json_column_spec.rb
416
- - spec/mysql57/json/change_json_column_spec.rb
417
- - spec/mysql57/json/drop_json_column_spec.rb
418
- - spec/mysql57/virtual/add_virtual_column_spec.rb
419
- - spec/mysql57/virtual/change_virtual_column_spec.rb
420
- - spec/mysql57/virtual/drop_virtual_column_spec.rb
421
- - spec/postgresql/diff/diff_spec.rb
422
- - spec/postgresql/dump/dump_spec.rb
423
- - spec/postgresql/fk/migrate_change_fk_spec.rb
424
- - spec/postgresql/fk/migrate_create_fk_spec.rb
425
- - spec/postgresql/fk/migrate_drop_fk_spec.rb
426
- - spec/postgresql/migrate/migrate_add_column_spec.rb
427
- - spec/postgresql/migrate/migrate_add_expression_index_spec.rb
428
- - spec/postgresql/migrate/migrate_bigint_spec.rb
429
- - spec/postgresql/migrate/migrate_change_column_default_spec.rb
430
- - spec/postgresql/migrate/migrate_change_column_spec.rb
431
- - spec/postgresql/migrate/migrate_change_index_spec.rb
432
- - spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb
433
- - spec/postgresql/migrate/migrate_create_table_spec.rb
434
- - spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb
435
- - spec/postgresql/migrate/migrate_drop_column_spec.rb
436
- - spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb
437
- - spec/postgresql/migrate/migrate_drop_expression_index_spec.rb
438
- - spec/postgresql/migrate/migrate_drop_index_spec.rb
439
- - spec/postgresql/migrate/migrate_drop_table_spec.rb
440
- - spec/postgresql/migrate/migrate_ext_cols_spec.rb
441
- - spec/postgresql/migrate/migrate_primary_key2_spec.rb
442
- - spec/postgresql/migrate/migrate_primary_key_spec.rb
443
- - spec/postgresql/migrate/migrate_references_spec.rb
444
- - spec/postgresql/migrate/migrate_rename_column_spec.rb
445
- - spec/postgresql/migrate/migrate_rename_table_spec.rb
446
- - spec/postgresql/migrate/migrate_same_spec.rb
447
- - spec/postgresql/ridgepole_test_database.sql
448
- - spec/postgresql/ridgepole_test_tables.sql
449
- - spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb
450
- - spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb
451
- - spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb
452
- - spec/processing_for_ci.rb
453
- - spec/spec_condition.rb
454
- - spec/spec_const.rb
455
- - spec/spec_helper.rb
456
317
  homepage: https://github.com/ridgepole/ridgepole
457
318
  licenses:
458
319
  - MIT
@@ -476,141 +337,4 @@ rubygems_version: 3.1.6
476
337
  signing_key:
477
338
  specification_version: 4
478
339
  summary: Ridgepole is a tool to manage DB schema.
479
- test_files:
480
- - spec/cli_helper.rb
481
- - spec/dsl_parser/context_spec.rb
482
- - spec/erb_helper.rb
483
- - spec/fixtures/for_require_relative_spec.rb
484
- - spec/hide_pending_formatter.rb
485
- - spec/mysql/_migrate/migrate_change_table_option_spec.rb
486
- - spec/mysql/bigint_pk/int_pk_spec.rb
487
- - spec/mysql/cli/config_spec.rb
488
- - spec/mysql/cli/ridgepole_spec.rb
489
- - spec/mysql/collation/collation_spec.rb
490
- - spec/mysql/comment/comment_spec.rb
491
- - spec/mysql/default_lambda/default_lambda_spec.rb
492
- - spec/mysql/diff/diff2_spec.rb
493
- - spec/mysql/diff/diff_spec.rb
494
- - spec/mysql/dump/dump_class_method_spec.rb
495
- - spec/mysql/dump/dump_some_tables_spec.rb
496
- - spec/mysql/dump/dump_spec.rb
497
- - spec/mysql/dump/dump_unknown_column_type_spec.rb
498
- - spec/mysql/dump/dump_without_table_options_spec.rb
499
- - spec/mysql/fk/migrate_change_fk2_spec.rb
500
- - spec/mysql/fk/migrate_change_fk_spec.rb
501
- - spec/mysql/fk/migrate_create_fk_spec.rb
502
- - spec/mysql/fk/migrate_drop_fk_spec.rb
503
- - spec/mysql/fk/migrate_fk_with_column_spec.rb
504
- - spec/mysql/fk/migrate_ignore_fk_spec.rb
505
- - spec/mysql/migrate/check_orphan_index_spec.rb
506
- - spec/mysql/migrate/migrate_add_column2_spec.rb
507
- - spec/mysql/migrate/migrate_add_column_order_spec.rb
508
- - spec/mysql/migrate/migrate_add_column_spec.rb
509
- - spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb
510
- - spec/mysql/migrate/migrate_add_column_with_script_spec.rb
511
- - spec/mysql/migrate/migrate_change_column2_spec.rb
512
- - spec/mysql/migrate/migrate_change_column3_spec.rb
513
- - spec/mysql/migrate/migrate_change_column4_spec.rb
514
- - spec/mysql/migrate/migrate_change_column5_spec.rb
515
- - spec/mysql/migrate/migrate_change_column6_spec.rb
516
- - spec/mysql/migrate/migrate_change_column7_spec.rb
517
- - spec/mysql/migrate/migrate_change_column8_spec.rb
518
- - spec/mysql/migrate/migrate_change_column_default_spec.rb
519
- - spec/mysql/migrate/migrate_change_column_float_spec.rb
520
- - spec/mysql/migrate/migrate_change_column_spec.rb
521
- - spec/mysql/migrate/migrate_change_index2_spec.rb
522
- - spec/mysql/migrate/migrate_change_index3_spec.rb
523
- - spec/mysql/migrate/migrate_change_index4_spec.rb
524
- - spec/mysql/migrate/migrate_change_index5_spec.rb
525
- - spec/mysql/migrate/migrate_change_index6_spec.rb
526
- - spec/mysql/migrate/migrate_change_index7_spec.rb
527
- - spec/mysql/migrate/migrate_change_index8_spec.rb
528
- - spec/mysql/migrate/migrate_change_index_spec.rb
529
- - spec/mysql/migrate/migrate_change_table_comment_spec.rb
530
- - spec/mysql/migrate/migrate_change_table_option_spec.rb
531
- - spec/mysql/migrate/migrate_check_relation_column_type_spec.rb
532
- - spec/mysql/migrate/migrate_create_index2_spec.rb
533
- - spec/mysql/migrate/migrate_create_index_spec.rb
534
- - spec/mysql/migrate/migrate_create_table_spec.rb
535
- - spec/mysql/migrate/migrate_create_table_with_ignore_spec.rb
536
- - spec/mysql/migrate/migrate_create_table_with_index_spec.rb
537
- - spec/mysql/migrate/migrate_create_table_with_options_spec.rb
538
- - spec/mysql/migrate/migrate_create_table_with_script_spec.rb
539
- - spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb
540
- - spec/mysql/migrate/migrate_drop_column_and_index_spec.rb
541
- - spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb
542
- - spec/mysql/migrate/migrate_drop_column_spec.rb
543
- - spec/mysql/migrate/migrate_drop_index_spec.rb
544
- - spec/mysql/migrate/migrate_drop_table_spec.rb
545
- - spec/mysql/migrate/migrate_duplicate_index_spec.rb
546
- - spec/mysql/migrate/migrate_duplicate_table_spec.rb
547
- - spec/mysql/migrate/migrate_empty_spec.rb
548
- - spec/mysql/migrate/migrate_execute_spec.rb
549
- - spec/mysql/migrate/migrate_ignore_column_spec.rb
550
- - spec/mysql/migrate/migrate_ignore_index_spec.rb
551
- - spec/mysql/migrate/migrate_log_file_spec.rb
552
- - spec/mysql/migrate/migrate_merge_mode_spec.rb
553
- - spec/mysql/migrate/migrate_noop_spec.rb
554
- - spec/mysql/migrate/migrate_primary_key_spec.rb
555
- - spec/mysql/migrate/migrate_rename_column_spec.rb
556
- - spec/mysql/migrate/migrate_rename_table_spec.rb
557
- - spec/mysql/migrate/migrate_same_default_null_spec.rb
558
- - spec/mysql/migrate/migrate_same_spec.rb
559
- - spec/mysql/migrate/migrate_script_error_spec.rb
560
- - spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb
561
- - spec/mysql/migrate/migrate_skip_drop_table_spec.rb
562
- - spec/mysql/migrate/migrate_skip_rename_column_spec.rb
563
- - spec/mysql/migrate/migrate_skip_rename_table_spec.rb
564
- - spec/mysql/migrate/migrate_with_ignore_tables_spec.rb
565
- - spec/mysql/migrate/migrate_with_pre_post_query_spec.rb
566
- - spec/mysql/migrate/migrate_with_tables_spec.rb
567
- - spec/mysql/migrate/migrate_with_verbose_log_spec.rb
568
- - spec/mysql/ridgepole_test_database.sql
569
- - spec/mysql/ridgepole_test_tables.sql
570
- - spec/mysql/ridgepole_test_tables_unknown_column_type.sql
571
- - spec/mysql/text_blob_types/text_blob_types_spec.rb
572
- - spec/mysql/~default_name_fk/migrate_change_fk_spec.rb
573
- - spec/mysql/~default_name_fk/migrate_create_fk_spec.rb
574
- - spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb
575
- - spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb
576
- - spec/mysql57/json/add_json_column_spec.rb
577
- - spec/mysql57/json/change_json_column_spec.rb
578
- - spec/mysql57/json/drop_json_column_spec.rb
579
- - spec/mysql57/virtual/add_virtual_column_spec.rb
580
- - spec/mysql57/virtual/change_virtual_column_spec.rb
581
- - spec/mysql57/virtual/drop_virtual_column_spec.rb
582
- - spec/postgresql/diff/diff_spec.rb
583
- - spec/postgresql/dump/dump_spec.rb
584
- - spec/postgresql/fk/migrate_change_fk_spec.rb
585
- - spec/postgresql/fk/migrate_create_fk_spec.rb
586
- - spec/postgresql/fk/migrate_drop_fk_spec.rb
587
- - spec/postgresql/migrate/migrate_add_column_spec.rb
588
- - spec/postgresql/migrate/migrate_add_expression_index_spec.rb
589
- - spec/postgresql/migrate/migrate_bigint_spec.rb
590
- - spec/postgresql/migrate/migrate_change_column_default_spec.rb
591
- - spec/postgresql/migrate/migrate_change_column_spec.rb
592
- - spec/postgresql/migrate/migrate_change_index_spec.rb
593
- - spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb
594
- - spec/postgresql/migrate/migrate_create_table_spec.rb
595
- - spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb
596
- - spec/postgresql/migrate/migrate_drop_column_spec.rb
597
- - spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb
598
- - spec/postgresql/migrate/migrate_drop_expression_index_spec.rb
599
- - spec/postgresql/migrate/migrate_drop_index_spec.rb
600
- - spec/postgresql/migrate/migrate_drop_table_spec.rb
601
- - spec/postgresql/migrate/migrate_ext_cols_spec.rb
602
- - spec/postgresql/migrate/migrate_primary_key2_spec.rb
603
- - spec/postgresql/migrate/migrate_primary_key_spec.rb
604
- - spec/postgresql/migrate/migrate_references_spec.rb
605
- - spec/postgresql/migrate/migrate_rename_column_spec.rb
606
- - spec/postgresql/migrate/migrate_rename_table_spec.rb
607
- - spec/postgresql/migrate/migrate_same_spec.rb
608
- - spec/postgresql/ridgepole_test_database.sql
609
- - spec/postgresql/ridgepole_test_tables.sql
610
- - spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb
611
- - spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb
612
- - spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb
613
- - spec/processing_for_ci.rb
614
- - spec/spec_condition.rb
615
- - spec/spec_const.rb
616
- - spec/spec_helper.rb
340
+ test_files: []
@@ -1,70 +0,0 @@
1
- name: test
2
-
3
- on:
4
- push:
5
- pull_request:
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- strategy:
11
- fail-fast: false
12
- matrix:
13
- ruby:
14
- - 2.4
15
- - 2.5
16
- - 2.6
17
- - 2.7
18
- env:
19
- - MYSQL56=1
20
- - MYSQL57=1
21
- - POSTGRESQL=1
22
- gemfile:
23
- - gemfiles/activerecord_5.1.gemfile
24
- - gemfiles/activerecord_5.2.gemfile
25
- - gemfiles/activerecord_6.0.gemfile
26
- - gemfiles/activerecord_6.1.gemfile
27
- exclude:
28
- - ruby: 2.4
29
- gemfile: gemfiles/activerecord_6.0.gemfile
30
- - ruby: 2.4
31
- gemfile: gemfiles/activerecord_6.1.gemfile
32
- env:
33
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
34
- steps:
35
- - uses: actions/checkout@v2
36
- - uses: ruby/setup-ruby@v1
37
- with:
38
- ruby-version: ${{ matrix.ruby }}
39
- bundler-cache: true
40
- - name: Setup dependencies
41
- run: |
42
- for i in {1..60}; do docker-compose up -d && break; sleep 1; done
43
- # Wait until database servers start
44
- function mysql_ping { mysqladmin -u root -h 127.0.0.1 -P 13316 ping --ssl-mode=DISABLED; }
45
- function mysql57_ping { mysqladmin -u root -h 127.0.0.1 -P 13317 ping --ssl-mode=DISABLED; }
46
- function pg_ping { PGPASSWORD=password pg_isready -U postgres -h 127.0.0.1 -p 15442; }
47
- for i in {1..60}; do mysql_ping && break; sleep 1; done
48
- for i in {1..60}; do mysql57_ping && break; sleep 1; done
49
- for i in {1..60}; do pg_ping && break; sleep 1; done
50
- env:
51
- MYSQL_PWD: password
52
- - name: Run tests
53
- run: ${{ matrix.env }} bundle exec rake
54
- env:
55
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
56
- - name: Coveralls Parallel
57
- uses: coverallsapp/github-action@v1.1.2
58
- with:
59
- github-token: ${{ secrets.GITHUB_TOKEN }}
60
- flag-name: run-${{ matrix.ruby }}-${{ matrix.env }}-${{ matrix.gemfile }}
61
- parallel: true
62
- finish:
63
- needs: build
64
- runs-on: ubuntu-latest
65
- steps:
66
- - name: Coveralls Finished
67
- uses: coverallsapp/github-action@v1.1.2
68
- with:
69
- github-token: ${{ secrets.GITHUB_TOKEN }}
70
- parallel-finished: true
data/.gitignore DELETED
@@ -1,25 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- .DS_Store
19
- test.rb
20
- Schemafile
21
- *.schema
22
- _site/
23
- config.yml
24
- /gemfiles/*.lock
25
- *.swp