Permalink
Browse files

Removed warnings in 1.9.2

  • Loading branch information...
keithpitt committed Jan 13, 2011
1 parent 24b3cc4 commit a4636a5df94537b16805b7c646d560f212770829
Showing with 1 addition and 4 deletions.
  1. +1 −1 lib/commands/helpers.rb
  2. +0 −1 lib/github/extensions.rb
  3. +0 −2 spec/commands/command_helper.rb
View
@@ -29,7 +29,7 @@
helper :project do
repo = repo_for(origin)
- if repo.nil?
+ if repo.nil? || repo.empty?
if url_for(origin) == ""
STDERR.puts "Error: missing remote 'origin'"
else
View
@@ -8,7 +8,6 @@ def try
class NilClass
klass = Class.new
klass.class_eval do
- instance_methods.each { |meth| undef_method meth.to_sym unless meth =~ /^__(id|send)__$/ }
def method_missing(*args)
self
end
@@ -149,8 +149,6 @@ def initialize(mock, call)
@calls = []
end
- undef_method *(instance_methods.map { |x| x.to_sym } - [:__id__, :__send__])
-
def invoke
@calls.each do |sym, args|
(@mock.obj.send @call).send sym, *args

0 comments on commit a4636a5

Please sign in to comment.