bake/modernize/gemspec.rb in bake-modernize-0.4.4 vs bake/modernize/gemspec.rb in bake-modernize-0.4.5

- old
+ new

@@ -74,13 +74,12 @@ output.puts "\t" output.puts "\tspec.required_ruby_version = #{required_ruby_version.to_s.inspect}" end end - if spec.dependencies.any? + if spec.runtime_dependencies.any? output.puts "\t" - spec.dependencies.sort.each do |dependency| - next unless dependency.type == :runtime + spec.runtime_dependencies.sort.each do |dependency| output.puts "\tspec.add_dependency #{format_dependency(dependency)}" end end if spec.development_dependencies.any?