ruby_events 1.1.0.beta → 1.1.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +5 -9
  2. data/lib/ruby_events.rb +2 -2
  3. 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 'rake/gempackagetask'
10
- require 'rake/rdoctask'
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
- Rake::GemPackageTask.new(spec) do |p|
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
- Rake::RDocTask.new do |rdoc|
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.beta'
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 || @events = RubyEvents::Events.new(self)
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: 31098201
5
- prerelease: true
4
+ hash: 62196375
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - 0
10
10
  - beta
11
- version: 1.1.0.beta
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: 2010-09-06 00:00:00 +01:00
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
- has_rdoc: true
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.3.7
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!