epitools 0.4.25 → 0.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/epitools.gemspec +1 -1
- data/lib/epitools/basetypes.rb +8 -7
- data/spec/basetypes_spec.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.26
|
data/epitools.gemspec
CHANGED
data/lib/epitools/basetypes.rb
CHANGED
@@ -587,15 +587,16 @@ class Hash
|
|
587
587
|
|
588
588
|
end
|
589
589
|
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
class
|
590
|
+
unless defined?(BasicObject)
|
591
|
+
#
|
592
|
+
# A BasicObject class for Ruby 1.8
|
593
|
+
#
|
594
|
+
class BasicObject
|
595
595
|
instance_methods.each { |m| undef_method m unless m =~ /^__/ }
|
596
596
|
end
|
597
597
|
end
|
598
598
|
|
599
|
+
|
599
600
|
module Kernel
|
600
601
|
|
601
602
|
protected
|
@@ -622,7 +623,7 @@ protected
|
|
622
623
|
end
|
623
624
|
|
624
625
|
|
625
|
-
class It <
|
626
|
+
class It < BasicObject # :nodoc:
|
626
627
|
#undef_method( *(instance_methods - ["__id__", "__send__"]) )
|
627
628
|
|
628
629
|
def initialize
|
@@ -643,7 +644,7 @@ class It < BlankSlate # :nodoc:
|
|
643
644
|
end
|
644
645
|
end
|
645
646
|
|
646
|
-
class NotWrapper <
|
647
|
+
class NotWrapper < BasicObject # :nodoc:
|
647
648
|
def initialize(orig)
|
648
649
|
@orig = orig
|
649
650
|
end
|
data/spec/basetypes_spec.rb
CHANGED