epitools 0.4.25 → 0.4.26

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.25
1
+ 0.4.26
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{epitools}
8
- s.version = "0.4.25"
8
+ s.version = "0.4.26"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["epitron"]
@@ -587,15 +587,16 @@ class Hash
587
587
 
588
588
  end
589
589
 
590
-
591
- if defined?(BasicObject)
592
- BlankSlate = BasicObject
593
- else
594
- class BlankSlate
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 < BlankSlate # :nodoc:
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 < BlankSlate # :nodoc:
647
+ class NotWrapper < BasicObject # :nodoc:
647
648
  def initialize(orig)
648
649
  @orig = orig
649
650
  end
@@ -245,10 +245,10 @@ describe Hash do
245
245
  end
246
246
 
247
247
 
248
- describe BlankSlate do
248
+ describe BasicObject do
249
249
 
250
250
  it "is blank!" do
251
- BlankSlate.methods(false).should == []
251
+ BasicObject.methods(false).should == []
252
252
  end
253
253
 
254
254
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: epitools
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.25
5
+ version: 0.4.26
6
6
  platform: ruby
7
7
  authors:
8
8
  - epitron