sinatra-synchrony 0.2.0.beta.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +17 -8
- data/README.markdown +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sinatra-synchrony (0.2.0.beta.
|
4
|
+
sinatra-synchrony (0.2.0.beta.2)
|
5
5
|
async-rack (>= 0.5.1)
|
6
|
-
em-http-request (= 1.0.0
|
6
|
+
em-http-request (= 1.0.0)
|
7
7
|
em-resolv-replace (>= 1.1.1)
|
8
|
-
em-synchrony (= 0.
|
8
|
+
em-synchrony (= 1.0.0)
|
9
9
|
eventmachine (= 1.0.0.beta.3)
|
10
10
|
rack-fiber_pool (= 0.9.2)
|
11
11
|
sinatra (>= 1.0)
|
@@ -23,20 +23,22 @@ GEM
|
|
23
23
|
async-rack (0.5.1)
|
24
24
|
rack (~> 1.1)
|
25
25
|
diff-lcs (1.1.2)
|
26
|
-
em-http-request (1.0.0
|
26
|
+
em-http-request (1.0.0)
|
27
27
|
addressable (>= 2.2.3)
|
28
28
|
em-socksify
|
29
29
|
eventmachine (>= 1.0.0.beta.3)
|
30
|
-
http_parser.rb (>= 0.5.
|
30
|
+
http_parser.rb (>= 0.5.2)
|
31
31
|
em-resolv-replace (1.1.1)
|
32
32
|
em-socksify (0.1.0)
|
33
33
|
eventmachine
|
34
|
-
em-synchrony (0.
|
34
|
+
em-synchrony (1.0.0)
|
35
35
|
eventmachine (>= 1.0.0.beta.1)
|
36
36
|
eventmachine (1.0.0.beta.3)
|
37
|
+
eventmachine (1.0.0.beta.3-java)
|
37
38
|
file-tail (1.0.5)
|
38
39
|
spruz (>= 0.1.0)
|
39
|
-
http_parser.rb (0.5.
|
40
|
+
http_parser.rb (0.5.2)
|
41
|
+
http_parser.rb (0.5.2-java)
|
40
42
|
minitest (2.1.0)
|
41
43
|
predicated (0.2.2)
|
42
44
|
rack (1.2.2)
|
@@ -52,7 +54,7 @@ GEM
|
|
52
54
|
sexp_processor (3.0.5)
|
53
55
|
sinatra (1.2.6)
|
54
56
|
rack (~> 1.1)
|
55
|
-
tilt (
|
57
|
+
tilt (>= 1.2.2, < 2.0)
|
56
58
|
sourcify (0.5.0)
|
57
59
|
file-tail (>= 1.0.5)
|
58
60
|
ruby2ruby (>= 1.2.5)
|
@@ -69,8 +71,15 @@ GEM
|
|
69
71
|
ruby_parser (~> 2.0.4)
|
70
72
|
sexp_processor (~> 3.0)
|
71
73
|
sourcify (>= 0.3.0)
|
74
|
+
wrong (0.5.0-java)
|
75
|
+
diff-lcs (~> 1.1.2)
|
76
|
+
predicated (>= 0.2.2)
|
77
|
+
ruby2ruby (~> 1.2)
|
78
|
+
ruby_parser (~> 2.0.4)
|
79
|
+
sexp_processor (~> 3.0)
|
72
80
|
|
73
81
|
PLATFORMS
|
82
|
+
java
|
74
83
|
ruby
|
75
84
|
|
76
85
|
DEPENDENCIES
|
data/README.markdown
CHANGED
@@ -8,7 +8,7 @@ Sinatra::Synchrony is a very small extension for Sinatra that dramatically impro
|
|
8
8
|
How it works
|
9
9
|
---
|
10
10
|
|
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).
|
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). It should also work on JRuby (with JRUBY_OPTS="--1.9").
|
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
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:
|
14
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!
|