exe/parlour in parlour-0.8.1 vs exe/parlour in parlour-1.0.0

- old
+ new

@@ -34,11 +34,13 @@ plugin_instances = [] configuration[:requires].each { |source| require(source) } configuration[:relative_requires].each do |source| - require_relative(File.join(Dir.pwd, source)) + Dir[File.join(Dir.pwd, source)].each do |file| + require_relative(file) + end end # Collect the instances of each plugin into an array configuration[:plugins].each do |name, options| plugin = Parlour::Plugin.registered_plugins[name.to_s]&.new(options) @@ -80,11 +82,11 @@ s end.compact unique_strictness_levels = requested_strictness_levels.uniq if unique_strictness_levels.empty? # If no requests were made, just use the default - strictness = 'strong' + strictness = 'strong' else # Sort the strictnesses into "strictness order" and pick the weakest strictness = unique_strictness_levels.min_by do |level| %w[ignore false true strict strong].index(level) || Float::INFINITY end @@ -92,10 +94,10 @@ puts Rainbow('Note: ').yellow.bold + "All plugins specified the same strictness level, using it (#{strictness})" else puts Rainbow('Note: ').yellow.bold + "Plugins specified multiple strictness levels, chose the weakest (#{strictness})" end end - + # Write the final RBI File.write(configuration[:output_file], gen.rbi(strictness)) end end