Skip to content
Browse files

Make hash in output Gemfile looks more like a DSL by removing parenth…

…eses and hash brackets.
  • Loading branch information...
1 parent 27a7d7b commit 39fc7b72c7a7f06cd514fa8c7295d0f51f59f1f0 @sikachu sikachu committed May 24, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/appraisal/dependency.rb
  2. +1 −1 lib/appraisal/gemspec.rb
View
2 lib/appraisal/dependency.rb
@@ -20,7 +20,7 @@ def to_s
private
def inspect_requirements
- requirements.map { |requirement| requirement.inspect }.join(", ")
+ requirements.map { |requirement| requirement.inspect.gsub(/^\{|\}$/, '') }.join(", ")
end
end
end
View
2 lib/appraisal/gemspec.rb
@@ -17,7 +17,7 @@ def exists?
end
def to_s
- "gemspec(#{@options.inspect})" if exists?
+ "gemspec #{@options.inspect.gsub(/^\{|\}$/, '')}" if exists?
end
end
end

0 comments on commit 39fc7b7

Please sign in to comment.
Something went wrong with that request. Please try again.