garufa 0.0.1.alpha.2 → 0.0.1.beta.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/garufa.pid +1 -1
- data/lib/garufa/api/api.rb +1 -1
- data/lib/garufa/garufa_app.rb +1 -0
- data/lib/garufa/goliath/connection.rb +14 -0
- data/lib/garufa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10052debad06b41d1ebb56145493aea97987d5e8
|
4
|
+
data.tar.gz: 9f6fbb6b447fd706042339f0b5c3d046b442a32d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de5feab7a14ac3ac6101398e681423f5657218da0e1e8e46777027a1e29b7578f659b4b068f892f744e30834d007c086251e7d0cdb3e92c56db1de5a6cc270b4
|
7
|
+
data.tar.gz: 7d05306034b82221c97e8f8d06e654c2e31f09981b953a1c0493e8a4afd02571989c580b9ad480c30754eed4e0101b923ce82abfe6a672d1cbc3a9aeee534992
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/Juanmcuello/garufa.png?branch=master)](https://travis-ci.org/Juanmcuello/garufa)
|
1
|
+
[![Build Status](https://travis-ci.org/Juanmcuello/garufa.png?branch=master)](https://travis-ci.org/Juanmcuello/garufa) [![Code Climate](https://codeclimate.com/github/Juanmcuello/garufa.png)](https://codeclimate.com/github/Juanmcuello/garufa)
|
2
2
|
|
3
3
|
Garufa
|
4
4
|
====
|
data/bin/garufa.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
16262
|
data/lib/garufa/api/api.rb
CHANGED
@@ -15,7 +15,7 @@ module Garufa
|
|
15
15
|
|
16
16
|
# Events
|
17
17
|
on post, "events" do
|
18
|
-
# Process requests
|
18
|
+
# Process requests deferred in order to response immediately.
|
19
19
|
EM.defer proc { Handler.handle_events(req.body.read) }
|
20
20
|
res.write "{}"
|
21
21
|
end
|
data/lib/garufa/garufa_app.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Goliath
|
2
|
+
class Connection < EM::Connection
|
3
|
+
alias :goliath_post_init :post_init
|
4
|
+
|
5
|
+
# Ensure GOLIATH_ENV is set on new connections
|
6
|
+
#
|
7
|
+
# See https://github.com/postrank-labs/goliath/pull/279
|
8
|
+
#
|
9
|
+
def post_init
|
10
|
+
Thread.current[GOLIATH_ENV] = nil
|
11
|
+
goliath_post_init
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/garufa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garufa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.beta.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Manuel Cuello
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: goliath
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- README.md
|
93
93
|
- Rakefile
|
94
94
|
- lib/garufa/version.rb
|
95
|
+
- lib/garufa/goliath/connection.rb
|
95
96
|
- lib/garufa/api/api.rb
|
96
97
|
- lib/garufa/api/handler.rb
|
97
98
|
- lib/garufa/websocket/websocket.rb
|