libevent 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -144,3 +144,8 @@ Or via rackup
144
144
 
145
145
  Check rack handler `rack/handler/libevent.rb`
146
146
 
147
+
148
+ ## References
149
+
150
+ * [libevent2 documentation](http://www.wangafu.net/~nickm/libevent-2.0/doxygen/html/index.html)
151
+ * [libevent ruby binding documentation](http://rubydoc.info/github/ayanko/libevent/master/file/README.md)
@@ -1,5 +1,11 @@
1
1
  #include "ext.h"
2
2
 
3
+ VALUE mLibevent;
4
+ VALUE cLibevent_Base;
5
+ VALUE cLibevent_Signal;
6
+ VALUE cLibevent_Http;
7
+ VALUE cLibevent_HttpRequest;
8
+
3
9
  void Init_libevent_ext() {
4
10
  mLibevent = rb_define_module("Libevent");
5
11
 
@@ -7,11 +7,11 @@
7
7
  #include <event.h>
8
8
  #include <evhttp.h>
9
9
 
10
- VALUE mLibevent;
11
- VALUE cLibevent_Base;
12
- VALUE cLibevent_Signal;
13
- VALUE cLibevent_Http;
14
- VALUE cLibevent_HttpRequest;
10
+ extern VALUE mLibevent;
11
+ extern VALUE cLibevent_Base;
12
+ extern VALUE cLibevent_Signal;
13
+ extern VALUE cLibevent_Http;
14
+ extern VALUE cLibevent_HttpRequest;
15
15
 
16
16
  typedef struct Libevent_Base {
17
17
  struct event_base *ev_base;
@@ -298,7 +298,7 @@ static VALUE t_get_uri(VALUE self) {
298
298
  static VALUE t_get_body(VALUE self) {
299
299
  Libevent_HttpRequest *http_request;
300
300
  struct evbuffer *ev_buffer;
301
- int length;
301
+ size_t length;
302
302
  VALUE body;
303
303
 
304
304
  Data_Get_Struct(self, Libevent_HttpRequest, http_request);
@@ -1,3 +1,3 @@
1
1
  module Libevent
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-18 00:00:00.000000000Z
12
+ date: 2011-11-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: C extension for libevent
15
15
  email:
@@ -63,8 +63,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project: libevent
66
- rubygems_version: 1.8.6
66
+ rubygems_version: 1.8.10
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: C extension for libevent
70
70
  test_files: []
71
+ has_rdoc: