callback 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 2006-11-24 (0.3.1)
2
+ * callback :name results in the callback name rather than on_name
3
+
1
4
  2006-11-24 (0.3.0)
2
5
  * Added Module#callback method. Also added all of the callback methods into Object.
3
6
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/clean'
5
5
  require 'rake/rdoctask'
6
6
 
7
7
  PKG_NAME = "callback"
8
- PKG_VERSION = "0.3.0"
8
+ PKG_VERSION = "0.3.1"
9
9
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
10
10
  PKG_FILES = FileList[
11
11
  '[A-Z]*',
@@ -2,7 +2,7 @@ module Callback
2
2
  module ModuleMethods
3
3
  def callback(event_name)
4
4
  module_eval %{
5
- def on_#{event_name}(&block)
5
+ def #{event_name}(&block)
6
6
  define_callback(:#{event_name}, &block)
7
7
  end
8
8
  }
@@ -11,7 +11,7 @@ context "A Module" do
11
11
  end
12
12
 
13
13
  the_obj = the_class.new
14
- the_obj.on_foo do
14
+ the_obj.foo do
15
15
  :bar
16
16
  end
17
17
  the_obj.call.should == [:bar]
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: callback
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
6
+ version: 0.3.1
7
7
  date: 2006-11-24 00:00:00 -08:00
8
8
  summary: A simple callback library for ruby objects.
9
9
  require_paths: