rev 0.1.4 → 0.2.0

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.
@@ -4,8 +4,6 @@
4
4
  # See file LICENSE for details
5
5
  #++
6
6
 
7
- require File.dirname(__FILE__) + '/../rev'
8
-
9
7
  module Rev
10
8
  class IOWatcher
11
9
  # The actual implementation of this class resides in the C extension
@@ -4,8 +4,6 @@
4
4
  # See file LICENSE for details
5
5
  #++
6
6
 
7
- require File.dirname(__FILE__) + '/../rev'
8
-
9
7
  module Rev
10
8
  class Watcher
11
9
  # Use an alternate watcher with the attach/detach/enable/disable methods
@@ -0,0 +1,27 @@
1
+ require 'rubygems'
2
+
3
+ GEMSPEC = Gem::Specification.new do |s|
4
+ s.name = "rev"
5
+ s.version = "0.2.0"
6
+ s.authors = "Tony Arcieri"
7
+ s.email = "tony@medioh.com"
8
+ s.date = "2008-2-16"
9
+ s.summary = "Rev is a Ruby binding to the libev high performance event library"
10
+ s.platform = Gem::Platform::RUBY
11
+ s.required_ruby_version = '>= 1.8.6'
12
+
13
+ # Gem contents
14
+ s.files = Dir.glob("{lib,ext,examples}/**/*") + ['Rakefile', 'rev.gemspec']
15
+
16
+ # RubyForge info
17
+ s.homepage = "http://rev.rubyforge.org"
18
+ s.rubyforge_project = "rev"
19
+
20
+ # RDoc settings
21
+ s.has_rdoc = true
22
+ s.rdoc_options = %w(--title Rev --main README --line-numbers)
23
+ s.extra_rdoc_files = ["LICENSE", "README", "CHANGES"]
24
+
25
+ # Extensions
26
+ s.extensions = FileList["ext/**/extconf.rb"].to_a
27
+ end
metadata CHANGED
@@ -1,38 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: rev
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.1.4
7
- date: 2008-01-28 00:00:00 -07:00
8
- summary: Ruby 1.9 binding to the libev high performance event library
9
- require_paths:
10
- - lib
11
- email:
12
- homepage:
13
- rubyforge_project:
14
- description:
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.9.0
24
- version:
4
+ version: 0.2.0
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Tony Arcieri
31
- files:
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-02-16 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: tony@medioh.com
18
+ executables: []
19
+
20
+ extensions:
21
+ - ext/http11_client/extconf.rb
22
+ - ext/rev/extconf.rb
23
+ extra_rdoc_files:
32
24
  - LICENSE
33
25
  - README
34
- - lib/http11_client.bundle
26
+ - CHANGES
27
+ files:
35
28
  - lib/rev
29
+ - lib/rev/async_watcher.rb
36
30
  - lib/rev/dns_resolver.rb
37
31
  - lib/rev/http_client.rb
38
32
  - lib/rev/io.rb
@@ -41,66 +35,80 @@ files:
41
35
  - lib/rev/loop.rb
42
36
  - lib/rev/server.rb
43
37
  - lib/rev/socket.rb
38
+ - lib/rev/ssl.rb
44
39
  - lib/rev/timer_watcher.rb
45
40
  - lib/rev/watcher.rb
46
41
  - lib/rev.rb
47
- - lib/rev_ext.bundle
42
+ - ext/http11_client
48
43
  - ext/http11_client/ext_help.h
49
- - ext/http11_client/http11_parser.h
50
- - ext/libev/ev.h
51
- - ext/libev/ev_vars.h
52
- - ext/libev/ev_wrap.h
53
- - ext/rev/rev.h
54
- - ext/rev/rev_watcher.h
44
+ - ext/http11_client/extconf.rb
55
45
  - ext/http11_client/http11_client.c
56
46
  - ext/http11_client/http11_parser.c
47
+ - ext/http11_client/http11_parser.h
48
+ - ext/http11_client/http11_parser.rl
49
+ - ext/libev
50
+ - ext/libev/Changes
57
51
  - ext/libev/ev.c
52
+ - ext/libev/ev.h
58
53
  - ext/libev/ev_epoll.c
59
54
  - ext/libev/ev_kqueue.c
60
55
  - ext/libev/ev_poll.c
61
56
  - ext/libev/ev_port.c
62
57
  - ext/libev/ev_select.c
58
+ - ext/libev/ev_vars.h
63
59
  - ext/libev/ev_win32.c
60
+ - ext/libev/ev_wrap.h
61
+ - ext/libev/LICENSE
62
+ - ext/libev/README
63
+ - ext/libev/README.embed
64
+ - ext/libev/update_ev_wrap
65
+ - ext/rev
66
+ - ext/rev/extconf.rb
67
+ - ext/rev/rev.h
64
68
  - ext/rev/rev_buffer.c
65
69
  - ext/rev/rev_ext.c
66
70
  - ext/rev/rev_io_watcher.c
67
71
  - ext/rev/rev_loop.c
72
+ - ext/rev/rev_ssl.c
68
73
  - ext/rev/rev_timer_watcher.c
74
+ - ext/rev/rev_utils.c
69
75
  - ext/rev/rev_watcher.c
70
- - ext/http11_client/extconf.rb
71
- - ext/rev/extconf.rb
72
- test_files:
73
- - spec/rev_spec.rb
76
+ - ext/rev/rev_watcher.h
77
+ - examples/echo_server.rb
78
+ - Rakefile
79
+ - rev.gemspec
80
+ - LICENSE
81
+ - README
82
+ - CHANGES
83
+ has_rdoc: true
84
+ homepage: http://rev.rubyforge.org
85
+ post_install_message:
74
86
  rdoc_options:
75
87
  - --title
76
88
  - Rev
77
89
  - --main
78
90
  - README
79
91
  - --line-numbers
80
- extra_rdoc_files:
81
- - README
82
- - LICENSE
83
- - ext/http11_client/http11_client.c
84
- - ext/http11_client/http11_parser.c
85
- - ext/libev/ev.c
86
- - ext/libev/ev_epoll.c
87
- - ext/libev/ev_kqueue.c
88
- - ext/libev/ev_poll.c
89
- - ext/libev/ev_port.c
90
- - ext/libev/ev_select.c
91
- - ext/libev/ev_win32.c
92
- - ext/rev/rev_buffer.c
93
- - ext/rev/rev_ext.c
94
- - ext/rev/rev_io_watcher.c
95
- - ext/rev/rev_loop.c
96
- - ext/rev/rev_timer_watcher.c
97
- - ext/rev/rev_watcher.c
98
- executables: []
99
-
100
- extensions:
101
- - ext/http11_client/extconf.rb
102
- - ext/rev/extconf.rb
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 1.8.6
99
+ version:
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: "0"
105
+ version:
103
106
  requirements: []
104
107
 
105
- dependencies: []
108
+ rubyforge_project: rev
109
+ rubygems_version: 1.0.1
110
+ signing_key:
111
+ specification_version: 2
112
+ summary: Rev is a Ruby binding to the libev high performance event library
113
+ test_files: []
106
114
 
Binary file
Binary file
@@ -1,26 +0,0 @@
1
- #
2
- # Oops, were you expecting some real RSpec?
3
- #
4
- # I'm sorry to disappoint. Really, this is pretty damn weak.
5
- #
6
- # I swear that after Ruby 1.9 comes out proper, this will become an actual spec
7
- #
8
-
9
- require 'socket'
10
- require File.dirname(__FILE__) + '/../lib/rev'
11
-
12
- class MyWatcher < Rev::IOWatcher
13
- def on_readable
14
- puts "Yippie, I'm readable!"
15
- detach
16
- end
17
- end
18
-
19
- listen_socket = TCPServer.new 'localhost', 4321
20
- watcher = MyWatcher.new(listen_socket)
21
- event_loop = Rev::Loop.new
22
- watcher.attach(event_loop)
23
-
24
- puts "Running the event loop in blocking mode on localhost port 4321"
25
- puts "Telnet there or something and you should get a read event"
26
- event_loop.run