Permalink
Browse files

Support 1.8.7

  • Loading branch information...
1 parent cb48ec9 commit bfe6dc00b56431c5465d4b1bb8c94d4fd3347bfe @joshuaclayton committed Jun 13, 2012
Showing with 10 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +9 −1 lib/basic_decorator/decorator.rb
View
1 .travis.yml
@@ -1,4 +1,5 @@
rvm:
+ - 1.8.7
- 1.9.2
- 1.9.3
before_install:
View
10 lib/basic_decorator/decorator.rb
@@ -1,5 +1,13 @@
module BasicDecorator
- class Decorator < BasicObject
+ unless defined?(::BasicObject)
+ class ::BasicObject
+ instance_methods.each do |m|
+ undef_method(m) if m.to_s !~ /(?:^__|^==$)/
+ end
+ end
+ end
+
+ class Decorator < ::BasicObject
undef_method :==
def initialize(component)

0 comments on commit bfe6dc0

Please sign in to comment.