ruby_events 0.0.1 → 0.0.2
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/README.markdown +19 -0
- data/Rakefile +6 -6
- metadata +17 -12
- data/LICENSE +0 -3
- data/README +0 -3
data/README.markdown
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Use ruby_events to add event listening and firing capabilities to all Ruby
|
2
|
+
objects. It's simple, fast and remains Ruby-ish in style and usage.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
gem install ruby_events
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
Using ruby_events is simple! Because all objects are automatically extended
|
11
|
+
with the ruby_events functionality, it's as simple as:
|
12
|
+
|
13
|
+
require 'ruby_events'
|
14
|
+
|
15
|
+
x = Object.new
|
16
|
+
x.events.listen :test_event, Proc.new {|data_passed| puts 'hai!'; puts data_passed }
|
17
|
+
x.events.fire :test_event, :test_data => 'hello', :more_test_data => 'hey'
|
18
|
+
|
19
|
+
All ruby_events functionality is just an object.events call away.
|
data/Rakefile
CHANGED
@@ -12,15 +12,15 @@ require 'rake/testtask'
|
|
12
12
|
|
13
13
|
spec = Gem::Specification.new do |s|
|
14
14
|
s.name = 'ruby_events'
|
15
|
-
s.version = '0.0.
|
15
|
+
s.version = '0.0.2'
|
16
16
|
s.has_rdoc = true
|
17
|
-
s.extra_rdoc_files = ['README'
|
18
|
-
s.summary = '
|
17
|
+
s.extra_rdoc_files = ['README.markdown']
|
18
|
+
s.summary = 'A really simple event implementation that hooks into the Object class. Now all your objects can join in the fun of firing events!'
|
19
19
|
s.description = s.summary
|
20
|
-
s.author = ''
|
21
|
-
s.email = ''
|
20
|
+
s.author = 'Nathan Kleyn'
|
21
|
+
s.email = 'nathan@unfinitydesign.com'
|
22
22
|
# s.executables = ['your_executable_here']
|
23
|
-
s.files = %w(
|
23
|
+
s.files = %w(README.markdown Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
24
24
|
s.require_path = "lib"
|
25
25
|
s.bindir = "bin"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
|
-
-
|
12
|
+
- Nathan Kleyn
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
@@ -13,18 +18,16 @@ date: 2010-04-26 00:00:00 +01:00
|
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
16
|
-
description:
|
17
|
-
email:
|
21
|
+
description: A really simple event implementation that hooks into the Object class. Now all your objects can join in the fun of firing events!
|
22
|
+
email: nathan@unfinitydesign.com
|
18
23
|
executables: []
|
19
24
|
|
20
25
|
extensions: []
|
21
26
|
|
22
27
|
extra_rdoc_files:
|
23
|
-
- README
|
24
|
-
- LICENSE
|
28
|
+
- README.markdown
|
25
29
|
files:
|
26
|
-
-
|
27
|
-
- README
|
30
|
+
- README.markdown
|
28
31
|
- Rakefile
|
29
32
|
- lib/ruby_events.rb
|
30
33
|
has_rdoc: true
|
@@ -40,20 +43,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
43
|
requirements:
|
41
44
|
- - ">="
|
42
45
|
- !ruby/object:Gem::Version
|
46
|
+
segments:
|
47
|
+
- 0
|
43
48
|
version: "0"
|
44
|
-
version:
|
45
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
50
|
requirements:
|
47
51
|
- - ">="
|
48
52
|
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
49
55
|
version: "0"
|
50
|
-
version:
|
51
56
|
requirements: []
|
52
57
|
|
53
58
|
rubyforge_project:
|
54
|
-
rubygems_version: 1.3.
|
59
|
+
rubygems_version: 1.3.6
|
55
60
|
signing_key:
|
56
61
|
specification_version: 3
|
57
|
-
summary:
|
62
|
+
summary: A really simple event implementation that hooks into the Object class. Now all your objects can join in the fun of firing events!
|
58
63
|
test_files: []
|
59
64
|
|
data/LICENSE
DELETED
data/README
DELETED