holywarez-mpt 0.1.3.4 → 0.1.3.5

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.
Files changed (5) hide show
  1. data/CHANGELOG +1 -0
  2. data/install_gem.bat +1 -1
  3. data/lib/event.rb +1 -1
  4. data/mpt.gemspec +1 -1
  5. metadata +1 -1
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.1.3.5 Little bug fix for empty subscriber chain
1
2
  v0.1.3.4 Added clear_owner_subscribers
2
3
  v0.1.3.3 Added clear_event_chain support
3
4
  v0.1.3.2 Added new example
data/install_gem.bat CHANGED
@@ -1,5 +1,5 @@
1
1
  call rake manifest
2
2
  call rake install
3
3
  cd pkg
4
- call gem install mpt-0.1.3.4.gem
4
+ call gem install mpt-0.1.3.5.gem
5
5
  cd ..
data/lib/event.rb CHANGED
@@ -50,7 +50,7 @@ module MPT
50
50
  def trigger_with_object(event_name, object, *args)
51
51
  container = MPT::EventContainer.new(object)
52
52
  channel = @@mpt_subscribers[event_name]
53
- if channel.size > 0
53
+ if !channel.nil? && channel.size > 0
54
54
 
55
55
  channel.each do |subscriber|
56
56
  container.instance_eval_with_args( *args, &subscriber[:proc] )
data/mpt.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mpt}
5
- s.version = "0.1.3.4"
5
+ s.version = "0.1.3.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Anatoly Lapshin"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holywarez-mpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.4
4
+ version: 0.1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Lapshin