cool.io 1.4.1 → 1.4.2

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: 748b3044d9b1ce285eb665e6e4710f05994cb4d5
4
- data.tar.gz: a861336a57b113ceacbb8471b12b8a7655b7ac3c
3
+ metadata.gz: 9d730937f1acab28544c904ae2952ed826e8b475
4
+ data.tar.gz: 728a5a46fa65974a989c38f43249b43eca62fda2
5
5
  SHA512:
6
- metadata.gz: 20aec66fe00ade6bfddbbda6fa07c704c8814e314e0aa7f23c5ab185e317c53f10a993236243138c6f25c811976101470289ab9d6a0d673ca0117377db0c1685
7
- data.tar.gz: 4e9f1f0719248c9bdc0f0dc6156bf902f7187c294ad7b315bbde2cea8caa98ff849dd93cfa1a4849c259bb1c65b6659a86c68a22fb2a64a5accb8733185f3987
6
+ metadata.gz: ff24cd2f7ae57c9f67f70fa7537640ae5e627f274a281eb9888f103ecbb79c330a672678ed83699f420b09259598f57bebfb9051bcf7c31e831cf57d63c53741
7
+ data.tar.gz: bbf3ecbac1d11057ac86a7cf5d5b1fa7a018249e19f9d780f48da9d6e401d366acdde024fccbaec928cd56308e60f564066debc0c2d48548989d94a243e1333b
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.4.2
2
+ -----
3
+
4
+ * Add unexpected object info to attach exception message
5
+
1
6
  1.4.1
2
7
  -----
3
8
 
@@ -116,8 +116,8 @@ static VALUE Coolio_StatWatcher_attach(VALUE self, VALUE loop)
116
116
  struct Coolio_Loop *loop_data;
117
117
  struct Coolio_Watcher *watcher_data;
118
118
 
119
- if(!rb_obj_is_kind_of(loop, cCoolio_Loop))
120
- rb_raise(rb_eArgError, "expected loop to be an instance of Coolio::Loop");
119
+ if(!rb_obj_is_kind_of(loop, cCoolio_Loop))
120
+ rb_raise(rb_eArgError, "expected loop to be an instance of Coolio::Loop, not %s", RSTRING_PTR(rb_inspect(loop)));
121
121
 
122
122
  Data_Get_Struct(loop, struct Coolio_Loop, loop_data);
123
123
  Data_Get_Struct(self, struct Coolio_Watcher, watcher_data);
@@ -95,8 +95,8 @@ static VALUE Coolio_TimerWatcher_attach(VALUE self, VALUE loop)
95
95
  struct Coolio_Loop *loop_data;
96
96
  struct Coolio_Watcher *watcher_data;
97
97
 
98
- if(!rb_obj_is_kind_of(loop, cCoolio_Loop))
99
- rb_raise(rb_eArgError, "expected loop to be an instance of Coolio::Loop");
98
+ if(!rb_obj_is_kind_of(loop, cCoolio_Loop))
99
+ rb_raise(rb_eArgError, "expected loop to be an instance of Coolio::Loop, not %s", RSTRING_PTR(rb_inspect(loop)));
100
100
 
101
101
  Data_Get_Struct(loop, struct Coolio_Loop, loop_data);
102
102
  Data_Get_Struct(self, struct Coolio_Watcher, watcher_data);
@@ -12,7 +12,7 @@
12
12
  struct Coolio_Loop *loop_data; \
13
13
  \
14
14
  if(!rb_obj_is_kind_of(loop, cCoolio_Loop)) \
15
- rb_raise(rb_eArgError, "expected loop to be an instance of Coolio::Loop"); \
15
+ rb_raise(rb_eArgError, "expected loop to be an instance of Coolio::Loop, not %s", RSTRING_PTR(rb_inspect(loop))); \
16
16
  \
17
17
  Data_Get_Struct(watcher, struct Coolio_Watcher, watcher_data); \
18
18
  Data_Get_Struct(loop, struct Coolio_Loop, loop_data); \
@@ -1,5 +1,5 @@
1
1
  module Coolio
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cool.io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-28 00:00:00.000000000 Z
12
+ date: 2015-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.2.3
174
+ rubygems_version: 2.4.5.1
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: A cool framework for doing high performance I/O in Ruby