Permalink
Browse files

Ruby 1.9 compatibility fixes

  • Loading branch information...
1 parent ffbd856 commit d297a1a76ab7f2b49c4a33a0dd8fc9720b6e714c @mbklein mbklein committed Nov 11, 2011
Showing with 1 addition and 2 deletions.
  1. +0 −1 confstruct.gemspec
  2. +1 −1 lib/confstruct/utils.rb
View
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
s.add_development_dependency "rdiscount"
s.add_development_dependency "rdoc"
s.add_development_dependency "rspec"
- s.add_development_dependency "ruby-debug"
s.add_development_dependency "yard"
end
View
@@ -1,7 +1,7 @@
module Kernel
def eval_or_yield obj, &block
if block_given?
- if block.arity == -1
+ if block.arity < 1
obj.instance_eval(&block)
else
block.call(obj)

0 comments on commit d297a1a

Please sign in to comment.