Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2193 from chastell/bugs/remove_warnings
Browse files Browse the repository at this point in the history
Remove sources of two outstanding warnings
  • Loading branch information
indirect committed Nov 30, 2012
2 parents 22a6f54 + dc3e4f5 commit 3e583bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def lock(file)
end

File.open(file, 'wb'){|f| f.puts(contents) }
rescue Errno::EACCES => e
rescue Errno::EACCES
raise Bundler::InstallError,
"There was an error while trying to write to Gemfile.lock. It is likely that \n" \
"you need to allow write permissions for the file at path: \n" \
Expand Down
1 change: 1 addition & 0 deletions lib/bundler/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ def initialize(path, uri, ref, revision=nil, &allow)
@allow = allow || Proc.new { true }
end

remove_method :revision if method_defined? :revision
def revision
@revision ||= allowed_in_path { git("rev-parse #{ref}").strip }
end
Expand Down

0 comments on commit 3e583bd

Please sign in to comment.