ruby_events 1.1.0.beta → 1.1.0.beta2
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/Rakefile +5 -9
- data/lib/ruby_events.rb +2 -2
- metadata +7 -8
data/Rakefile
CHANGED
@@ -1,37 +1,33 @@
|
|
1
|
-
#
|
2
|
-
# To change this template, choose Tools | Templates
|
3
|
-
# and open the template in the editor.
|
4
|
-
|
5
1
|
require 'lib/ruby_events'
|
6
2
|
require 'rubygems'
|
7
3
|
require 'rake'
|
8
4
|
require 'rake/clean'
|
9
|
-
require '
|
10
|
-
require '
|
5
|
+
require 'rubygems/package_task'
|
6
|
+
require 'rdoc/task'
|
11
7
|
require 'rake/testtask'
|
12
8
|
|
13
9
|
spec = Gem::Specification.new do |s|
|
14
10
|
s.name = 'ruby_events'
|
15
11
|
s.version = RubyEvents::Events.version
|
16
|
-
s.has_rdoc = true
|
17
12
|
s.extra_rdoc_files = ['README.markdown']
|
18
13
|
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
14
|
s.description = s.summary + ' See http://github.com/nathankleyn/ruby_events for more information.'
|
20
15
|
s.author = 'Nathan Kleyn'
|
21
16
|
s.email = 'nathan@unfinitydesign.com'
|
17
|
+
s.homepage = 'http://github.com/nathankleyn/ruby_events'
|
22
18
|
# s.executables = ['your_executable_here']
|
23
19
|
s.files = %w(README.markdown Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
24
20
|
s.require_path = "lib"
|
25
21
|
s.bindir = "bin"
|
26
22
|
end
|
27
23
|
|
28
|
-
|
24
|
+
Gem::PackageTask.new(spec) do |p|
|
29
25
|
p.gem_spec = spec
|
30
26
|
p.need_tar = true
|
31
27
|
p.need_zip = true
|
32
28
|
end
|
33
29
|
|
34
|
-
|
30
|
+
RDoc::Task.new do |rdoc|
|
35
31
|
files =['README.markdown', 'lib/**/*.rb']
|
36
32
|
rdoc.rdoc_files.add(files)
|
37
33
|
rdoc.main = "README.markdown" # page to start on
|
data/lib/ruby_events.rb
CHANGED
@@ -9,7 +9,7 @@ module RubyEvents
|
|
9
9
|
class Events
|
10
10
|
# The current version of RubyEvents.
|
11
11
|
def self.version
|
12
|
-
'1.1.0.
|
12
|
+
'1.1.0.beta2'
|
13
13
|
end
|
14
14
|
|
15
15
|
# Initialize the events class by instantiating the class methods we'll be
|
@@ -107,6 +107,6 @@ class Object
|
|
107
107
|
# Attribute reader for the events accessor. Returns a new instance of the
|
108
108
|
# events class if not defined, or the already defined class otherwise.
|
109
109
|
def events
|
110
|
-
@events
|
110
|
+
@events ||= RubyEvents::Events.new(self)
|
111
111
|
end
|
112
112
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 62196375
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
|
11
|
+
- 2
|
12
|
+
version: 1.1.0.beta2
|
12
13
|
platform: ruby
|
13
14
|
authors:
|
14
15
|
- Nathan Kleyn
|
@@ -16,8 +17,7 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date:
|
20
|
-
default_executable:
|
20
|
+
date: 2011-05-28 00:00:00 Z
|
21
21
|
dependencies: []
|
22
22
|
|
23
23
|
description: A really simple event implementation that hooks into the Object class. Now all your objects can join in the fun of firing events! See http://github.com/nathankleyn/ruby_events for more information.
|
@@ -32,8 +32,7 @@ files:
|
|
32
32
|
- README.markdown
|
33
33
|
- Rakefile
|
34
34
|
- lib/ruby_events.rb
|
35
|
-
|
36
|
-
homepage:
|
35
|
+
homepage: http://github.com/nathankleyn/ruby_events
|
37
36
|
licenses: []
|
38
37
|
|
39
38
|
post_install_message:
|
@@ -64,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
63
|
requirements: []
|
65
64
|
|
66
65
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.7.2
|
68
67
|
signing_key:
|
69
68
|
specification_version: 3
|
70
69
|
summary: A really simple event implementation that hooks into the Object class. Now all your objects can join in the fun of firing events!
|