Skip to content

Commit

Permalink
Make hash in output Gemfile looks more like a DSL by removing parenth…
Browse files Browse the repository at this point in the history
…eses and hash brackets.
  • Loading branch information
sikachu committed May 24, 2011
1 parent 27a7d7b commit 39fc7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/appraisal/dependency.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/appraisal/gemspec.rb
Expand Up @@ -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.