sinatra-synchrony 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,8 +4,6 @@ gem 'rack-fiber_pool', '0.9.1'
4
4
  gem 'em-http-request', '0.3.0'
5
5
  gem 'em-synchrony', '0.2.0'
6
6
  gem 'em-resolv-replace', '1.1.1'
7
- gem 'async-rack', '0.5.1'
8
7
  gem 'wrong', '0.5.0'
9
8
  gem 'rack-test', '0.5.7'
10
- gem 'freegenie-em-spec', '0.2.3'
11
- gem 'ruby-debug19'
9
+ gem 'ruby-debug19'
@@ -0,0 +1,79 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ ParseTree (3.0.7)
5
+ RubyInline (>= 3.7.0)
6
+ sexp_processor (>= 3.0.0)
7
+ RubyInline (3.9.0)
8
+ ZenTest (~> 4.3)
9
+ ZenTest (4.5.0)
10
+ addressable (2.2.5)
11
+ archive-tar-minitar (0.5.2)
12
+ columnize (0.3.2)
13
+ diff-lcs (1.1.2)
14
+ em-http-request (0.3.0)
15
+ addressable (>= 2.0.0)
16
+ escape_utils
17
+ eventmachine (>= 0.12.9)
18
+ em-resolv-replace (1.1.1)
19
+ em-synchrony (0.2.0)
20
+ eventmachine (>= 0.12.9)
21
+ escape_utils (0.2.3)
22
+ eventmachine (0.12.10)
23
+ file-tail (1.0.5)
24
+ spruz (>= 0.1.0)
25
+ linecache19 (0.5.12)
26
+ ruby_core_source (>= 0.1.4)
27
+ predicated (0.2.2)
28
+ rack (1.2.2)
29
+ rack-fiber_pool (0.9.1)
30
+ rack-test (0.5.7)
31
+ rack (>= 1.0)
32
+ ruby-debug-base19 (0.11.25)
33
+ columnize (>= 0.3.1)
34
+ linecache19 (>= 0.5.11)
35
+ ruby_core_source (>= 0.1.4)
36
+ ruby-debug19 (0.11.6)
37
+ columnize (>= 0.3.1)
38
+ linecache19 (>= 0.5.11)
39
+ ruby-debug-base19 (>= 0.11.19)
40
+ ruby2ruby (1.2.5)
41
+ ruby_parser (~> 2.0)
42
+ sexp_processor (~> 3.0)
43
+ ruby_core_source (0.1.5)
44
+ archive-tar-minitar (>= 0.5.2)
45
+ ruby_parser (2.0.6)
46
+ sexp_processor (~> 3.0)
47
+ sexp_processor (3.0.5)
48
+ sinatra (1.2.6)
49
+ rack (~> 1.1)
50
+ tilt (< 2.0, >= 1.2.2)
51
+ sourcify (0.5.0)
52
+ file-tail (>= 1.0.5)
53
+ ruby2ruby (>= 1.2.5)
54
+ ruby_parser (>= 2.0.5)
55
+ sexp_processor (>= 3.0.5)
56
+ spruz (0.2.6)
57
+ tilt (1.3)
58
+ wrong (0.5.0)
59
+ ParseTree (~> 3.0)
60
+ diff-lcs (~> 1.1.2)
61
+ file-tail (~> 1.0)
62
+ predicated (>= 0.2.2)
63
+ ruby2ruby (~> 1.2)
64
+ ruby_parser (~> 2.0.4)
65
+ sexp_processor (~> 3.0)
66
+ sourcify (>= 0.3.0)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ em-http-request (= 0.3.0)
73
+ em-resolv-replace (= 1.1.1)
74
+ em-synchrony (= 0.2.0)
75
+ rack-fiber_pool (= 0.9.1)
76
+ rack-test (= 0.5.7)
77
+ ruby-debug19
78
+ sinatra
79
+ wrong (= 0.5.0)
@@ -10,7 +10,6 @@ How it works
10
10
 
11
11
  * Loads [EventMachine](https://github.com/eventmachine/eventmachine) and [EM-Synchrony](https://github.com/igrigorik/em-synchrony). Requires app server with EventMachine and Ruby 1.9 support (Thin, Rainbows!, Heroku).
12
12
  * Inserts the [Rack::FiberPool](https://github.com/mperham/rack-fiber_pool) middleware, which automatically provides a Fiber for each incoming request, allowing EM-Synchrony to work.
13
- * Inserts [async-rack](https://github.com/rkh/async-rack/tree/master/lib/async_rack), which makes Rack's middleware more async friendly.
14
13
  * Adds [em-http-request](https://github.com/igrigorik/em-http-request), which you can use with EM::Synchrony to do concurrent HTTP calls to APIs! Or if you'd rather use a different client:
15
14
  * Patches TCPSocket via EM-Synchrony. Any software that uses this (such as an HTTP Client that uses Net::HTTP) can run without blocking IO. [RestClient](https://github.com/archiloque/rest-client) works great with this!
16
15
  * Patches Rack::Test so that it runs your tests within an EventMachine. Just test the same way you did before and it should just work.
@@ -108,4 +107,5 @@ Thanks
108
107
  * [Ilya Grigorik](http://www.igvita.com) and [PostRank](http://www.postrank.com) for their amazing work on em-synchrony, em-http-request, and countless articles explaining this.
109
108
  * [Mike Perham](http://www.mikeperham.com) and [Carbon Five](http://carbonfive.com). For rack-fiber_pool, em-resolv-replace, and many blog posts and presentations on this.
110
109
  * [Konstantin Haase](http://rkh.im/) for async-rack and his many contributions to Sinatra.
111
- * The many Sinatra developers that liberated me from framework hell, and EventMachine developers that liberated me from blocking IO hell.
110
+ * [Steeve Morin](http://github.com/steeve)
111
+ * The many Sinatra developers that liberated me from framework hell, and EventMachine developers that liberated me from blocking IO hell.
@@ -1,6 +1,5 @@
1
1
  require 'sinatra/base'
2
2
  require 'rack/fiber_pool'
3
- require 'async-rack'
4
3
  require 'eventmachine'
5
4
  require 'em-http-request'
6
5
  require 'em-synchrony'
@@ -19,4 +18,4 @@ module Sinatra
19
18
  end
20
19
  end
21
20
  register Synchrony
22
- end
21
+ end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-synchrony
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
5
+ version: 0.0.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Kyle Drake
@@ -15,7 +10,8 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-05-04 00:00:00 Z
13
+ date: 2011-05-05 00:00:00 -07:00
14
+ default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
17
  name: sinatra
@@ -25,10 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- hash: 15
29
- segments:
30
- - 1
31
- - 0
32
24
  version: "1.0"
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,11 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - "="
42
34
  - !ruby/object:Gem::Version
43
- hash: 57
44
- segments:
45
- - 0
46
- - 9
47
- - 1
48
35
  version: 0.9.1
49
36
  type: :runtime
50
37
  version_requirements: *id002
@@ -56,11 +43,6 @@ dependencies:
56
43
  requirements:
57
44
  - - "="
58
45
  - !ruby/object:Gem::Version
59
- hash: 9
60
- segments:
61
- - 0
62
- - 5
63
- - 1
64
46
  version: 0.5.1
65
47
  type: :runtime
66
48
  version_requirements: *id003
@@ -72,11 +54,6 @@ dependencies:
72
54
  requirements:
73
55
  - - "="
74
56
  - !ruby/object:Gem::Version
75
- hash: 19
76
- segments:
77
- - 0
78
- - 3
79
- - 0
80
57
  version: 0.3.0
81
58
  type: :runtime
82
59
  version_requirements: *id004
@@ -88,11 +65,6 @@ dependencies:
88
65
  requirements:
89
66
  - - "="
90
67
  - !ruby/object:Gem::Version
91
- hash: 23
92
- segments:
93
- - 0
94
- - 2
95
- - 0
96
68
  version: 0.2.0
97
69
  type: :runtime
98
70
  version_requirements: *id005
@@ -104,11 +76,6 @@ dependencies:
104
76
  requirements:
105
77
  - - "="
106
78
  - !ruby/object:Gem::Version
107
- hash: 17
108
- segments:
109
- - 1
110
- - 1
111
- - 1
112
79
  version: 1.1.1
113
80
  type: :runtime
114
81
  version_requirements: *id006
@@ -120,11 +87,6 @@ dependencies:
120
87
  requirements:
121
88
  - - "="
122
89
  - !ruby/object:Gem::Version
123
- hash: 5
124
- segments:
125
- - 0
126
- - 5
127
- - 7
128
90
  version: 0.5.7
129
91
  type: :development
130
92
  version_requirements: *id007
@@ -136,11 +98,6 @@ dependencies:
136
98
  requirements:
137
99
  - - "="
138
100
  - !ruby/object:Gem::Version
139
- hash: 11
140
- segments:
141
- - 0
142
- - 5
143
- - 0
144
101
  version: 0.5.0
145
102
  type: :development
146
103
  version_requirements: *id008
@@ -158,7 +115,9 @@ files:
158
115
  - lib/rack/test_synchrony.rb
159
116
  - spec/synchrony_spec.rb
160
117
  - Gemfile
118
+ - Gemfile.lock
161
119
  - README.markdown
120
+ has_rdoc: true
162
121
  homepage: https://github.com/kyledrake/sinatra-synchrony
163
122
  licenses: []
164
123
 
@@ -172,25 +131,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
131
  requirements:
173
132
  - - ">="
174
133
  - !ruby/object:Gem::Version
175
- hash: 3
176
- segments:
177
- - 0
178
134
  version: "0"
179
135
  required_rubygems_version: !ruby/object:Gem::Requirement
180
136
  none: false
181
137
  requirements:
182
138
  - - ">="
183
139
  - !ruby/object:Gem::Version
184
- hash: 19
185
- segments:
186
- - 1
187
- - 3
188
- - 4
189
140
  version: 1.3.4
190
141
  requirements: []
191
142
 
192
143
  rubyforge_project: sinatra-synchrony
193
- rubygems_version: 1.7.2
144
+ rubygems_version: 1.5.2
194
145
  signing_key:
195
146
  specification_version: 3
196
147
  summary: Bootstraps Sinatra with EM-Synchrony code, make TCPSocket EM-aware, provides support for tests