event_emitter 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53437cd7c3a975110a854e702cac7d66feafc6e2
4
- data.tar.gz: 8902288ec0d61444c5f314273dfc1d6a621edae6
3
+ metadata.gz: 476a419714d7b115bf5ecee5d251be0edb47dc46
4
+ data.tar.gz: 39839261279fea278c26332d2f8b801a32aead07
5
5
  SHA512:
6
- metadata.gz: f7a1a1db775417a9549edb3e0a2a63744a0efee4de8e553a45deeb79b92afa2217ac38f3b6cb3ab3541587d6b7aedd207d4298f9867c2bdb8e282c3dc01f7845
7
- data.tar.gz: 716573b4a20b33ef08e778536c76bc8dcb9e382dcd12d1a01ec5b90a1de364c1a1ff045de26affc414eff4f13473b4dbeaf768c1b147d88bede2d83bf25b430f
6
+ metadata.gz: 9166e525e52f7e994ec00df2add9c2067a33a117a66e2dd79abb0bb47ce155220a4916ea6f0cca4956b6fab9700207b64af777e5159dc57c8026c2bac8451b94
7
+ data.tar.gz: 72ef5cef8f3f0fc3208f6ff3b0d3b32b0ee0a7811f4932ce7b328bf168422d68c90e2b6af422001cd5fe98efbee00b0aa368b3936fe7ac72cf837a6c0740d769
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ - 2.2.7
5
+ - 2.3.4
6
+ - 2.4.1
7
+
@@ -1,3 +1,8 @@
1
+ === 0.2.6 2013-07-25
2
+
3
+ * Update Travis ruby versions (#16)
4
+ * Fix Fixnum warning on Ruby 2.4+ (#15)
5
+
1
6
  === 0.2.5 2013-03-31
2
7
 
3
8
  * add benchmark
data/README.md CHANGED
@@ -4,6 +4,9 @@ event_emitter
4
4
  * Ruby port of EventEmitter from Node.js
5
5
  * http://shokai.github.com/event_emitter
6
6
 
7
+ [![Build Status](https://travis-ci.org/shokai/event_emitter.svg)](https://travis-ci.org/shokai/event_emitter)
8
+
9
+
7
10
  Install
8
11
  -------
9
12
 
@@ -15,10 +18,11 @@ Requirements
15
18
 
16
19
  testing on
17
20
 
18
- * Ruby 1.8.7+
19
- * Ruby 1.9.2+
20
- * Ruby 2.0.0+
21
- * JRuby 1.6.7+
21
+ * Ruby 1.8.7
22
+ * Ruby 1.9.2
23
+ * Ruby 2.0.0
24
+ * Ruby 2.1.0
25
+ * JRuby
22
26
 
23
27
 
24
28
  Synopsys
@@ -18,5 +18,5 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_development_dependency "minitest"
20
20
  gem.add_development_dependency "rake"
21
- gem.add_development_dependency "bundler", "~> 1.3"
21
+ gem.add_development_dependency "bundler", "~> 1.15"
22
22
  end
@@ -32,7 +32,7 @@ module EventEmitter
32
32
  alias :on :add_listener
33
33
 
34
34
  def remove_listener(id_or_type)
35
- if id_or_type.class == Fixnum
35
+ if id_or_type.is_a? Integer
36
36
  __events.delete_if do |e|
37
37
  e[:id] == id_or_type
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module EventEmitter
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestCatchAllEvents < MiniTest::Unit::TestCase
3
+ class TestCatchAllEvents < MiniTest::Test
4
4
 
5
5
  class Foo
6
6
  include EventEmitter
@@ -1,6 +1,6 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestClassMethod < MiniTest::Unit::TestCase
3
+ class TestClassMethod < MiniTest::Test
4
4
 
5
5
  class Foo
6
6
  def self.created_at
@@ -1,6 +1,6 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestEventEmitter < MiniTest::Unit::TestCase
3
+ class TestEventEmitter < MiniTest::Test
4
4
 
5
5
  class Foo
6
6
  include EventEmitter
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'bundler/setup'
2
3
  require 'minitest/autorun'
3
4
 
4
5
  $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
@@ -1,6 +1,6 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestSingularMethod < MiniTest::Unit::TestCase
3
+ class TestSingularMethod < MiniTest::Test
4
4
 
5
5
  class Foo
6
6
  attr_accessor :created_at
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_emitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-31 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.15'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.15'
55
55
  description: Ruby port of EventEmitter from Node.js
56
56
  email:
57
57
  - hashimoto@shokai.org
@@ -59,7 +59,8 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
+ - ".travis.yml"
63
64
  - Gemfile
64
65
  - History.txt
65
66
  - LICENSE.txt
@@ -89,17 +90,17 @@ require_paths:
89
90
  - lib
90
91
  required_ruby_version: !ruby/object:Gem::Requirement
91
92
  requirements:
92
- - - '>='
93
+ - - ">="
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  requirements:
97
- - - '>='
98
+ - - ">="
98
99
  - !ruby/object:Gem::Version
99
100
  version: '0'
100
101
  requirements: []
101
102
  rubyforge_project:
102
- rubygems_version: 2.0.3
103
+ rubygems_version: 2.6.11
103
104
  signing_key:
104
105
  specification_version: 4
105
106
  summary: Ruby port of EventEmitter from Node.js