ridgepole 0.7.3.beta → 0.7.3.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +38 -0
  3. data/Appraisals +2 -2
  4. data/README.md +3 -9
  5. data/Rakefile +7 -1
  6. data/bin/ridgepole +97 -108
  7. data/gemfiles/activerecord_5.2.gemfile +1 -1
  8. data/lib/ridgepole/cli/config.rb +43 -43
  9. data/lib/ridgepole/client.rb +65 -63
  10. data/lib/ridgepole/default_limit.rb +26 -24
  11. data/lib/ridgepole/delta.rb +367 -369
  12. data/lib/ridgepole/diff.rb +366 -377
  13. data/lib/ridgepole/dsl_parser.rb +22 -20
  14. data/lib/ridgepole/dsl_parser/context.rb +95 -93
  15. data/lib/ridgepole/dsl_parser/table_definition.rb +125 -123
  16. data/lib/ridgepole/dumper.rb +73 -71
  17. data/lib/ridgepole/execute_expander.rb +55 -55
  18. data/lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb +3 -3
  19. data/lib/ridgepole/ext/abstract_mysql_adapter/use_alter_index.rb +1 -1
  20. data/lib/ridgepole/ext/pp_sort_hash.rb +14 -14
  21. data/lib/ridgepole/ext/schema_dumper.rb +1 -1
  22. data/lib/ridgepole/external_sql_executer.rb +20 -20
  23. data/lib/ridgepole/logger.rb +17 -15
  24. data/lib/ridgepole/migration_ext.rb +6 -8
  25. data/lib/ridgepole/schema_statements_ext.rb +3 -3
  26. data/lib/ridgepole/version.rb +1 -1
  27. data/ridgepole.gemspec +11 -10
  28. data/spec/cli_helper.rb +2 -2
  29. data/spec/erb_helper.rb +6 -2
  30. data/spec/hide_pending_formatter.rb +5 -4
  31. data/spec/mysql/_migrate/migrate_change_table_option_spec.rb +8 -8
  32. data/spec/mysql/bigint_pk/bigint_pk_spec.rb +8 -8
  33. data/spec/mysql/bigint_pk/int_pk_spec.rb +13 -13
  34. data/spec/mysql/cli/config_spec.rb +52 -53
  35. data/spec/mysql/cli/ridgepole_spec.rb +111 -111
  36. data/spec/mysql/collation/collation_spec.rb +39 -39
  37. data/spec/mysql/comment/comment_spec.rb +36 -36
  38. data/spec/mysql/default_lambda/default_lambda_spec.rb +30 -30
  39. data/spec/mysql/diff/diff2_spec.rb +18 -18
  40. data/spec/mysql/diff/diff_spec.rb +11 -11
  41. data/spec/mysql/dump/dump_class_method_spec.rb +2 -2
  42. data/spec/mysql/dump/dump_some_tables_spec.rb +14 -14
  43. data/spec/mysql/dump/dump_spec.rb +2 -2
  44. data/spec/mysql/dump/dump_unknown_column_type_spec.rb +3 -3
  45. data/spec/mysql/dump/dump_without_table_options_spec.rb +8 -8
  46. data/spec/mysql/fk/migrate_change_fk_spec.rb +40 -40
  47. data/spec/mysql/fk/migrate_create_fk_spec.rb +40 -40
  48. data/spec/mysql/fk/migrate_drop_fk_spec.rb +60 -60
  49. data/spec/mysql/migrate/check_orphan_index_spec.rb +6 -6
  50. data/spec/mysql/migrate/migrate_add_column2_spec.rb +43 -43
  51. data/spec/mysql/migrate/migrate_add_column_order_spec.rb +50 -50
  52. data/spec/mysql/migrate/migrate_add_column_spec.rb +11 -11
  53. data/spec/mysql/migrate/migrate_add_column_with_alter_extra_spec.rb +8 -8
  54. data/spec/mysql/migrate/migrate_add_column_with_script_spec.rb +11 -11
  55. data/spec/mysql/migrate/migrate_change_column2_spec.rb +20 -20
  56. data/spec/mysql/migrate/migrate_change_column3_spec.rb +60 -60
  57. data/spec/mysql/migrate/migrate_change_column4_spec.rb +16 -16
  58. data/spec/mysql/migrate/migrate_change_column5_spec.rb +24 -24
  59. data/spec/mysql/migrate/migrate_change_column6_spec.rb +40 -40
  60. data/spec/mysql/migrate/migrate_change_column7_spec.rb +4 -4
  61. data/spec/mysql/migrate/migrate_change_column8_spec.rb +9 -9
  62. data/spec/mysql/migrate/migrate_change_column_default_spec.rb +48 -48
  63. data/spec/mysql/migrate/migrate_change_column_float_spec.rb +16 -16
  64. data/spec/mysql/migrate/migrate_change_column_spec.rb +11 -11
  65. data/spec/mysql/migrate/migrate_change_index2_spec.rb +20 -20
  66. data/spec/mysql/migrate/migrate_change_index3_spec.rb +43 -43
  67. data/spec/mysql/migrate/migrate_change_index4_spec.rb +24 -24
  68. data/spec/mysql/migrate/migrate_change_index5_spec.rb +16 -16
  69. data/spec/mysql/migrate/migrate_change_index6_spec.rb +12 -12
  70. data/spec/mysql/migrate/migrate_change_index7_spec.rb +20 -20
  71. data/spec/mysql/migrate/migrate_change_index8_spec.rb +20 -20
  72. data/spec/mysql/migrate/migrate_change_index_spec.rb +17 -17
  73. data/spec/mysql/migrate/migrate_change_table_comment_spec.rb +10 -10
  74. data/spec/mysql/migrate/migrate_change_table_option_spec.rb +18 -18
  75. data/spec/mysql/migrate/migrate_check_relation_column_type_spec.rb +37 -37
  76. data/spec/mysql/migrate/migrate_create_index2_spec.rb +12 -12
  77. data/spec/mysql/migrate/migrate_create_index_spec.rb +11 -11
  78. data/spec/mysql/migrate/migrate_create_table_spec.rb +8 -8
  79. data/spec/mysql/migrate/migrate_create_table_with_index_spec.rb +6 -6
  80. data/spec/mysql/migrate/migrate_create_table_with_options_spec.rb +12 -12
  81. data/spec/mysql/migrate/migrate_create_table_with_script_spec.rb +11 -11
  82. data/spec/mysql/migrate/migrate_drop_column_and_index2_spec.rb +9 -9
  83. data/spec/mysql/migrate/migrate_drop_column_and_index_spec.rb +12 -12
  84. data/spec/mysql/migrate/migrate_drop_column_and_unique_index_spec.rb +10 -10
  85. data/spec/mysql/migrate/migrate_drop_column_spec.rb +11 -11
  86. data/spec/mysql/migrate/migrate_drop_index_spec.rb +11 -11
  87. data/spec/mysql/migrate/migrate_drop_table_spec.rb +8 -8
  88. data/spec/mysql/migrate/migrate_duplicate_index_spec.rb +6 -6
  89. data/spec/mysql/migrate/migrate_duplicate_table_spec.rb +6 -6
  90. data/spec/mysql/migrate/migrate_empty_spec.rb +4 -4
  91. data/spec/mysql/migrate/migrate_execute_spec.rb +55 -55
  92. data/spec/mysql/migrate/migrate_log_file_spec.rb +9 -9
  93. data/spec/mysql/migrate/migrate_merge_mode_spec.rb +9 -9
  94. data/spec/mysql/migrate/migrate_noop_spec.rb +19 -19
  95. data/spec/mysql/migrate/migrate_primary_key_spec.rb +18 -18
  96. data/spec/mysql/migrate/migrate_rename_column_spec.rb +17 -17
  97. data/spec/mysql/migrate/migrate_rename_table_spec.rb +26 -26
  98. data/spec/mysql/migrate/migrate_same_default_null_spec.rb +16 -16
  99. data/spec/mysql/migrate/migrate_same_spec.rb +4 -4
  100. data/spec/mysql/migrate/migrate_script_error_spec.rb +8 -8
  101. data/spec/mysql/migrate/migrate_skip_column_comment_change_spec.rb +8 -8
  102. data/spec/mysql/migrate/migrate_skip_drop_table_spec.rb +9 -9
  103. data/spec/mysql/migrate/migrate_skip_rename_column_spec.rb +8 -8
  104. data/spec/mysql/migrate/migrate_skip_rename_table_spec.rb +9 -9
  105. data/spec/mysql/migrate/migrate_with_ignore_tables_spec.rb +64 -64
  106. data/spec/mysql/migrate/migrate_with_pre_post_query_spec.rb +12 -12
  107. data/spec/mysql/migrate/migrate_with_tables_spec.rb +29 -29
  108. data/spec/mysql/migrate/migrate_with_verbose_log_spec.rb +18 -18
  109. data/spec/mysql/migrate_/migrate_create_index_with_alter_spec.rb +8 -8
  110. data/spec/mysql/migrate_/migrate_drop_index_with_alter_spec.rb +8 -8
  111. data/spec/mysql/text_blob_types/text_blob_types_spec.rb +8 -8
  112. data/spec/mysql/~default_name_fk/migrate_change_fk_spec.rb +12 -12
  113. data/spec/mysql/~default_name_fk/migrate_create_fk_spec.rb +30 -30
  114. data/spec/mysql/~default_name_fk/migrate_drop_fk_spec.rb +22 -22
  115. data/spec/mysql/~dump_auto_increment/migrate_create_table_with_index_spec.rb +7 -7
  116. data/spec/mysql57/json/add_json_column_spec.rb +8 -8
  117. data/spec/mysql57/json/change_json_column_spec.rb +24 -24
  118. data/spec/mysql57/json/drop_json_column_spec.rb +8 -8
  119. data/spec/mysql57/virtual/add_virtual_column_spec.rb +9 -9
  120. data/spec/mysql57/virtual/change_virtual_column_spec.rb +9 -9
  121. data/spec/mysql57/virtual/drop_virtual_column_spec.rb +9 -9
  122. data/spec/postgresql/diff/diff_spec.rb +18 -18
  123. data/spec/postgresql/dump/dump_spec.rb +2 -2
  124. data/spec/postgresql/fk/migrate_change_fk_spec.rb +24 -24
  125. data/spec/postgresql/fk/migrate_create_fk_spec.rb +40 -40
  126. data/spec/postgresql/fk/migrate_drop_fk_spec.rb +44 -44
  127. data/spec/postgresql/migrate/migrate_add_column_spec.rb +21 -21
  128. data/spec/postgresql/migrate/migrate_add_expression_index_spec.rb +2 -2
  129. data/spec/postgresql/migrate/migrate_bigint_spec.rb +12 -12
  130. data/spec/postgresql/migrate/migrate_change_column_default_spec.rb +8 -8
  131. data/spec/postgresql/migrate/migrate_change_column_spec.rb +19 -19
  132. data/spec/postgresql/migrate/migrate_change_index_spec.rb +13 -13
  133. data/spec/postgresql/migrate/migrate_check_relation_column_type_spec.rb +19 -19
  134. data/spec/postgresql/migrate/migrate_create_table_spec.rb +8 -8
  135. data/spec/postgresql/migrate/migrate_create_table_with_default_proc_spec.rb +18 -18
  136. data/spec/postgresql/migrate/migrate_drop_column_spec.rb +11 -11
  137. data/spec/postgresql/migrate/migrate_drop_column_with_index_spec.rb +12 -12
  138. data/spec/postgresql/migrate/migrate_drop_expression_index_spec.rb +8 -8
  139. data/spec/postgresql/migrate/migrate_drop_index_spec.rb +11 -11
  140. data/spec/postgresql/migrate/migrate_drop_table_spec.rb +8 -8
  141. data/spec/postgresql/migrate/migrate_ext_cols_spec.rb +8 -8
  142. data/spec/postgresql/migrate/migrate_primary_key_spec.rb +97 -0
  143. data/spec/postgresql/migrate/migrate_references_spec.rb +24 -24
  144. data/spec/postgresql/migrate/migrate_rename_column_spec.rb +11 -11
  145. data/spec/postgresql/migrate/migrate_rename_table_spec.rb +16 -16
  146. data/spec/postgresql/migrate/migrate_same_spec.rb +4 -4
  147. data/spec/postgresql/~default_name_fk/migrate_change_fk_spec.rb +12 -12
  148. data/spec/postgresql/~default_name_fk/migrate_create_fk_spec.rb +30 -30
  149. data/spec/postgresql/~default_name_fk/migrate_drop_fk_spec.rb +22 -22
  150. data/spec/processing_for_travis.rb +1 -1
  151. data/spec/spec_condition.rb +2 -2
  152. data/spec/spec_const.rb +9 -9
  153. data/spec/spec_helper.rb +21 -23
  154. metadata +54 -37
@@ -4,6 +4,6 @@ if ENV['TRAVIS']
4
4
 
5
5
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
6
6
  SimpleCov.start do
7
- add_filter "spec/"
7
+ add_filter 'spec/'
8
8
  end
9
9
  end
@@ -15,7 +15,7 @@ module SpecCondition
15
15
  end
16
16
 
17
17
  def activerecord_5?
18
- ActiveRecord::VERSION::MAJOR >= 5 and ActiveRecord::VERSION::MAJOR < 6
18
+ (ActiveRecord::VERSION::MAJOR >= 5) && (ActiveRecord::VERSION::MAJOR < 6)
19
19
  end
20
20
 
21
21
  def debug?
@@ -46,7 +46,7 @@ module SpecCondition
46
46
  def condition(*conds)
47
47
  conds.any? do |c|
48
48
  if c.is_a? Array
49
- c.all? {|i| check_version_or_cond(i) }
49
+ c.all? { |i| check_version_or_cond(i) }
50
50
  else
51
51
  check_version_or_cond(c)
52
52
  end
@@ -1,18 +1,18 @@
1
1
  TEST_MYSQL_HOST = ENV['DOCKER_HOST'] ? ENV['DOCKER_HOST'].gsub(%r{\Atcp://|:\d+\z}, '') : '127.0.0.1'
2
- TEST_MYSQL_PORT = ENV['MYSQL57'] == '1' ? 13317 : 13316
3
- TEST_MYSQL_USER = 'root'
4
- TEST_MYSQL_PASS = 'password'
2
+ TEST_MYSQL_PORT = ENV['MYSQL57'] == '1' ? 13_317 : 13_316
3
+ TEST_MYSQL_USER = 'root'.freeze
4
+ TEST_MYSQL_PASS = 'password'.freeze
5
5
 
6
- MYSQL_CLI = "mysql -h #{TEST_MYSQL_HOST} -P #{TEST_MYSQL_PORT} -u #{TEST_MYSQL_USER} -p#{TEST_MYSQL_PASS} 2>/dev/null"
6
+ MYSQL_CLI = "mysql -h #{TEST_MYSQL_HOST} -P #{TEST_MYSQL_PORT} -u #{TEST_MYSQL_USER} -p#{TEST_MYSQL_PASS} 2>/dev/null".freeze
7
7
 
8
8
  TEST_PG_HOST = ENV['DOCKER_HOST'] ? ENV['DOCKER_HOST'].gsub(%r{\Atcp://|:\d+\z}, '') : '127.0.0.1'
9
- TEST_PG_PORT = 15442
10
- TEST_PG_USER = 'postgres'
11
- TEST_PG_PASS = 'password'
9
+ TEST_PG_PORT = 15_442
10
+ TEST_PG_USER = 'postgres'.freeze
11
+ TEST_PG_PASS = 'password'.freeze
12
12
 
13
- PG_CLI_OPTS = "PGPASSWORD=#{TEST_PG_PASS} %s -h #{TEST_PG_HOST} -p #{TEST_PG_PORT} -U #{TEST_PG_USER}"
13
+ PG_CLI_OPTS = "PGPASSWORD=#{TEST_PG_PASS} %s -h #{TEST_PG_HOST} -p #{TEST_PG_PORT} -U #{TEST_PG_USER}".freeze
14
14
  PG_PSQL = PG_CLI_OPTS % 'psql'
15
15
  PG_CREATEDB = PG_CLI_OPTS % 'createdb'
16
16
  PG_DUMP = PG_CLI_OPTS % 'pg_dump'
17
17
 
18
- TEST_SCHEMA = 'ridgepole_test'
18
+ TEST_SCHEMA = 'ridgepole_test'.freeze
@@ -1,4 +1,4 @@
1
- $: << File.expand_path('..', __FILE__)
1
+ $LOAD_PATH << File.expand_path(__dir__)
2
2
 
3
3
  require 'spec_const'
4
4
  require 'spec_condition'
@@ -35,8 +35,10 @@ RSpec.configure do |config|
35
35
  end
36
36
 
37
37
  config.before(:each) do |example|
38
- if conds = example.metadata[:condition]
39
- skip unless Array(conds).any? {|c| condition(*c) }
38
+ conds = example.metadata[:condition]
39
+
40
+ if conds
41
+ skip unless Array(conds).any? { |c| condition(*c) }
40
42
  end
41
43
 
42
44
  case example.metadata[:file_path]
@@ -62,18 +64,16 @@ module SpecHelper
62
64
  end
63
65
 
64
66
  def system_raise_on_fail(*args)
65
- unless system(*args)
66
- raise "Failed to run: #{args}"
67
- end
67
+ raise "Failed to run: #{args}" unless system(*args)
68
68
  end
69
69
 
70
70
  def restore_database_mysql
71
- sql_file = File.expand_path('../mysql/ridgepole_test_database.sql', __FILE__)
71
+ sql_file = File.expand_path('mysql/ridgepole_test_database.sql', __dir__)
72
72
  system_raise_on_fail("#{MYSQL_CLI} < #{sql_file}")
73
73
  end
74
74
 
75
75
  def restore_database_postgresql
76
- sql_file = File.expand_path('../postgresql/ridgepole_test_database.sql', __FILE__)
76
+ sql_file = File.expand_path('postgresql/ridgepole_test_database.sql', __dir__)
77
77
  system("#{PG_CREATEDB} ridgepole_test 2>/dev/null")
78
78
  system_raise_on_fail("#{PG_PSQL} ridgepole_test --set ON_ERROR_STOP=off -q -f #{sql_file} 2>/dev/null")
79
79
  end
@@ -87,23 +87,23 @@ module SpecHelper
87
87
  end
88
88
 
89
89
  def restore_tables_mysql
90
- sql_file = File.expand_path('../mysql/ridgepole_test_tables.sql', __FILE__)
90
+ sql_file = File.expand_path('mysql/ridgepole_test_tables.sql', __dir__)
91
91
  system_raise_on_fail("#{MYSQL_CLI} < #{sql_file}")
92
92
  end
93
93
 
94
94
  def restore_tables_postgresql
95
- sql_file = File.expand_path('../postgresql/ridgepole_test_tables.sql', __FILE__)
95
+ sql_file = File.expand_path('postgresql/ridgepole_test_tables.sql', __dir__)
96
96
  system_raise_on_fail("#{PG_PSQL} ridgepole_test -q -f #{sql_file} 2>/dev/null")
97
97
  end
98
98
 
99
99
  def restore_tables_mysql_unknown_column_type
100
- sql_file = File.expand_path('../mysql/ridgepole_test_tables_unknown_column_type.sql', __FILE__)
100
+ sql_file = File.expand_path('mysql/ridgepole_test_tables_unknown_column_type.sql', __dir__)
101
101
  system_raise_on_fail("#{MYSQL_CLI} < #{sql_file}")
102
102
  end
103
103
 
104
104
  def client(options = {}, config = {})
105
105
  config = conn_spec(config)
106
- default_options = {debug: condition(:debug)}
106
+ default_options = { debug: condition(:debug) }
107
107
  default_options[:dump_without_table_options] = true
108
108
 
109
109
  options = default_options.merge(options)
@@ -119,7 +119,7 @@ module SpecHelper
119
119
  host: TEST_PG_HOST,
120
120
  port: TEST_PG_PORT,
121
121
  username: TEST_PG_USER,
122
- password: TEST_PG_PASS,
122
+ password: TEST_PG_PASS
123
123
  }.merge(config)
124
124
  else
125
125
  {
@@ -128,7 +128,7 @@ module SpecHelper
128
128
  host: TEST_MYSQL_HOST,
129
129
  port: TEST_MYSQL_PORT,
130
130
  username: TEST_MYSQL_USER,
131
- password: TEST_MYSQL_PASS,
131
+ password: TEST_MYSQL_PASS
132
132
  }.merge(config)
133
133
  end
134
134
  end
@@ -151,18 +151,16 @@ module SpecHelper
151
151
  end
152
152
 
153
153
  def tempfile(basename, content = '')
154
- begin
155
- path = `mktemp /tmp/#{basename}.XXXXXX`
156
- open(path, 'wb') {|f| f << content }
157
- FileUtils.chmod(0777, path)
158
- yield(path)
159
- ensure
160
- FileUtils.rm_f(path) if path
161
- end
154
+ path = `mktemp /tmp/#{basename}.XXXXXX`
155
+ File.open(path, 'wb') { |f| f << content }
156
+ FileUtils.chmod(0o777, path)
157
+ yield(path)
158
+ ensure
159
+ FileUtils.rm_f(path) if path
162
160
  end
163
161
 
164
162
  def run_ridgepole(*args)
165
- Dir.chdir(File.expand_path('../..', __FILE__)) do
163
+ Dir.chdir(File.expand_path('..', __dir__)) do
166
164
  cmd = [:bundle, :exec, './bin/ridgepole'] + args
167
165
  Open3.capture2e(cmd.join(' '))
168
166
  end
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.7.3.beta
4
+ version: 0.7.3.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2018-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -45,21 +45,21 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: bundler
48
+ name: appraisal
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
53
+ version: 2.2.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '0'
60
+ version: 2.2.0
61
61
  - !ruby/object:Gem::Dependency
62
- name: rake
62
+ name: bundler
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
@@ -73,131 +73,131 @@ dependencies:
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: rspec
76
+ name: coveralls
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 3.0.0
81
+ version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 3.0.0
88
+ version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: mysql2
90
+ name: erbh
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 0.3.20
95
+ version: 0.1.2
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - "~>"
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 0.3.20
102
+ version: 0.1.2
103
103
  - !ruby/object:Gem::Dependency
104
- name: pg
104
+ name: hash_modern_inspect
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: 0.1.1
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '0'
116
+ version: 0.1.1
117
117
  - !ruby/object:Gem::Dependency
118
- name: coveralls
118
+ name: hash_order_helper
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '0'
123
+ version: 0.1.6
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: '0'
130
+ version: 0.1.6
131
131
  - !ruby/object:Gem::Dependency
132
- name: appraisal
132
+ name: mysql2
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ">="
135
+ - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 2.2.0
137
+ version: 0.3.20
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ">="
142
+ - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: 2.2.0
144
+ version: 0.3.20
145
145
  - !ruby/object:Gem::Dependency
146
- name: rspec-match_fuzzy
146
+ name: pg
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - ">="
150
150
  - !ruby/object:Gem::Version
151
- version: 0.1.3
151
+ version: '0'
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
- version: 0.1.3
158
+ version: '0'
159
159
  - !ruby/object:Gem::Dependency
160
- name: erbh
160
+ name: rake
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - ">="
164
164
  - !ruby/object:Gem::Version
165
- version: 0.1.2
165
+ version: '0'
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
- version: 0.1.2
172
+ version: '0'
173
173
  - !ruby/object:Gem::Dependency
174
- name: hash_modern_inspect
174
+ name: rspec
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: 0.1.1
179
+ version: 3.0.0
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: 0.1.1
186
+ version: 3.0.0
187
187
  - !ruby/object:Gem::Dependency
188
- name: hash_order_helper
188
+ name: rspec-match_fuzzy
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
- version: 0.1.6
193
+ version: 0.1.3
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: 0.1.6
200
+ version: 0.1.3
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: rspec-match_ruby
203
203
  requirement: !ruby/object:Gem::Requirement
@@ -212,6 +212,20 @@ dependencies:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: 0.1.3
215
+ - !ruby/object:Gem::Dependency
216
+ name: rubocop
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: 0.57.1
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: 0.57.1
215
229
  description: Ridgepole is a tool to manage DB schema. It defines DB schema using Rails
216
230
  DSL, and updates DB schema according to DSL.
217
231
  email:
@@ -223,6 +237,7 @@ extra_rdoc_files: []
223
237
  files:
224
238
  - ".gitignore"
225
239
  - ".rspec"
240
+ - ".rubocop.yml"
226
241
  - ".travis.yml"
227
242
  - Appraisals
228
243
  - Gemfile
@@ -375,6 +390,7 @@ files:
375
390
  - spec/postgresql/migrate/migrate_drop_index_spec.rb
376
391
  - spec/postgresql/migrate/migrate_drop_table_spec.rb
377
392
  - spec/postgresql/migrate/migrate_ext_cols_spec.rb
393
+ - spec/postgresql/migrate/migrate_primary_key_spec.rb
378
394
  - spec/postgresql/migrate/migrate_references_spec.rb
379
395
  - spec/postgresql/migrate/migrate_rename_column_spec.rb
380
396
  - spec/postgresql/migrate/migrate_rename_table_spec.rb
@@ -530,6 +546,7 @@ test_files:
530
546
  - spec/postgresql/migrate/migrate_drop_index_spec.rb
531
547
  - spec/postgresql/migrate/migrate_drop_table_spec.rb
532
548
  - spec/postgresql/migrate/migrate_ext_cols_spec.rb
549
+ - spec/postgresql/migrate/migrate_primary_key_spec.rb
533
550
  - spec/postgresql/migrate/migrate_references_spec.rb
534
551
  - spec/postgresql/migrate/migrate_rename_column_spec.rb
535
552
  - spec/postgresql/migrate/migrate_rename_table_spec.rb