lib/nextgen/tidy_gemfile.rb in nextgen-0.13.0 vs lib/nextgen/tidy_gemfile.rb in nextgen-0.14.0
- old
+ new
@@ -25,10 +25,10 @@
end
def add(gem, version: nil, group: nil, require: nil)
return false if include?(gem)
- gem_line = build_gem_line(gem, version: version, require: require, indent: group ? " " : "")
+ gem_line = build_gem_line(gem, version:, require:, indent: group ? " " : "")
if group
group_line = create_group_if_needed(group)
gemfile.sub!(/#{Regexp.quote(group_line)}/, '\0' + gem_line)
else