bin/ridgepole in ridgepole-2.0.2 vs bin/ridgepole in ridgepole-2.0.3

- old
+ new

@@ -84,12 +84,11 @@ end opt.on('-f', '--file SCHEMAFILE') { |v| file = v } opt.on('', '--dry-run') { options[:dry_run] = true } opt.on('', '--table-options OPTIONS') { |v| options[:table_options] = v } opt.on('', '--table-hash-options OPTIONS') do |v| - # NOTE: Ruby2.4 doesn't support `symbolize_names: true` - hash = YAML.safe_load(v).deep_symbolize_keys + hash = YAML.safe_load(v, symbolize_names: true) case hash[:id] when String hash[:id] = hash[:id].to_sym when Hash @@ -135,10 +134,11 @@ opt.on('', '--ignore-tables REGEX_LIST', Array) { |v| options[:ignore_tables] = v.map { |i| Regexp.new(i) } } opt.on('', '--dump-without-table-options') { options[:dump_without_table_options] = true } opt.on('', '--dump-with-default-fk-name') { options[:dump_with_default_fk_name] = true } opt.on('', '--index-removed-drop-column') { options[:index_removed_drop_column] = true } opt.on('', '--drop-table') { options[:force_drop_table] = true } + opt.on('', '--drop-table-only') { options[:drop_table_only] = true } opt.on('', '--mysql-change-table-options') { options[:mysql_change_table_options] = true } opt.on('', '--mysql-change-table-comment') { options[:mysql_change_table_comment] = true } opt.on('', '--check-relation-type DEF_PK') { |v| options[:check_relation_type] = v } opt.on('', '--ignore-table-comment') { options[:ignore_table_comment] = true } opt.on('', '--skip-column-comment-change') { options[:skip_column_comment_change] = true } @@ -263,18 +263,16 @@ if %w[.yml .yaml].include?(file_ext) Ridgepole::Config.load(diff_file, env, spec_name) else File.open(diff_file) end - elsif Gem::Version.new(Psych::VERSION) >= Gem::Version.new('3.1.0.pre1') # Ruby 2.6 + else YAML.safe_load( diff_file, permitted_classes: [], permitted_symbols: [], aliases: true ) - else - YAML.safe_load(diff_file, [], [], true) end end delta = Ridgepole::Client.diff(*diff_files, options)