smalltalkable 0.3.0 → 0.3.1

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.
@@ -1,3 +1,3 @@
1
1
  module Smalltalkable
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/smalltalkable.rb CHANGED
@@ -85,12 +85,6 @@ class Object
85
85
  alias smalltalkise smalltalkize
86
86
  end
87
87
 
88
- def eigenclass
89
- class << self
90
- self
91
- end
92
- end
93
-
94
88
  def if_nil(true_proc, opts={})
95
89
  (opts[:if_not_nil] || opts[:ifNotNil] || ->{nil}).call
96
90
  end
@@ -83,7 +83,7 @@ class TestSmalltalkable < Test::Unit::TestCase
83
83
  String.smalltalkize :rjust => [:rjustWidth, :padding]
84
84
  assert_equal '*******foo', 'foo'.rjustWidth(10, padding:'*')
85
85
 
86
- Time.eigenclass.smalltalkize :gm, :month, :day, :hour, :minute, :second
86
+ Time.singleton_class.smalltalkize :gm, :month, :day, :hour, :minute, :second
87
87
  time = Time.gm 2013, month:1, day:2, hour:3, minute:4, second:5
88
88
  assert_equal 2013, time.year
89
89
  assert_equal 1, time.month
@@ -92,7 +92,7 @@ class TestSmalltalkable < Test::Unit::TestCase
92
92
  assert_equal 4, time.min
93
93
  assert_equal 5, time.sec
94
94
 
95
- Time.eigenclass.smalltalkize :local => [:local_year, :month, :day, :hour, :minute, :second]
95
+ Time.singleton_class.smalltalkize :local => [:local_year, :month, :day, :hour, :minute, :second]
96
96
  local_time = Time.local_year 2013, month:1, day:2, hour:3, minute:4, second:5
97
97
  assert_equal 2013, local_time.year
98
98
  assert_equal 1, local_time.month
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smalltalkable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: