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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6aae7d9943c8813bcc3abf3dd5c8859bbb54afe2
4
- data.tar.gz: 2eae84445cac472c01ad9d069fc554e1ca7ac91a
3
+ metadata.gz: 10052debad06b41d1ebb56145493aea97987d5e8
4
+ data.tar.gz: 9f6fbb6b447fd706042339f0b5c3d046b442a32d
5
5
  SHA512:
6
- metadata.gz: b5a0f00ef6a6f7f5fa06db25c4b956d8efb5a87a75c22cbc97cbfd1764fc535f40d539897e241d0e35f849819c5ea2c038e5c6a4bc133f482ffcb1f5ea6ff257
7
- data.tar.gz: 873cbbd8d23455cdf71ddb005df15e4dbc3f0fa7e440f3515f9f1f17fa40acb3e2e579cd05a9a90299a6616f368f363ac4bf3f258c4d4013aa3dae116ae86393
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
- 27355
1
+ 16262
@@ -15,7 +15,7 @@ module Garufa
15
15
 
16
16
  # Events
17
17
  on post, "events" do
18
- # Process requests dererred in order to response immediatly.
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
@@ -1,5 +1,6 @@
1
1
  require 'goliath/api'
2
2
  require 'goliath/connection'
3
+ require 'garufa/goliath/connection'
3
4
  require 'faye/websocket'
4
5
  require 'garufa/config'
5
6
  require 'garufa/websocket/websocket'
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Garufa
2
- VERSION = '0.0.1.alpha.2'
2
+ VERSION = '0.0.1.beta.0'
3
3
  end
4
4
 
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.alpha.2
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-01-18 00:00:00.000000000 Z
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