lib/autoproj/package_managers/bundler_manager.rb in autoproj-2.0.2 vs lib/autoproj/package_managers/bundler_manager.rb in autoproj-2.0.3

- old
+ new

@@ -252,10 +252,11 @@ if g.end_with?('/') g = g[0..-2] end contents << "source '#{g.to_s}'" end + valid_keys = %w{group groups git path glob name branch ref tag require submodules platform platforms type source install_if} dependencies.each do |group_name, by_platform| contents << "group :#{group_name} do" by_platform.each do |platform_name, deps| deps = deps.values.sort_by(&:name) if !platform_name.empty? @@ -263,11 +264,10 @@ platform_indent = " " end deps.each do |d| if d.source options = d.source.options.dup - options.delete 'root_path' - options.delete 'uri' + options.delete_if { |k, _| !valid_keys.include?(k) } options = options.map { |k, v| "#{k}: \"#{v}\"" } end contents << [" #{platform_indent}gem \"#{d.name}\", \"#{d.requirement}\"", *options].join(", ") end if !platform_name.empty?