grenache-ruby-http 0.0.3 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d0e5e2a1268526f9a652e4799f4ec3a49155c71
4
- data.tar.gz: e50a924c3fd586aadfcff623c5eb4090fdc1b16f
3
+ metadata.gz: 32961983a6af0cbeaa13fc0610b349569b08c38a
4
+ data.tar.gz: d6f57308650a52550220e1c3c9b2f9b8f019f4e4
5
5
  SHA512:
6
- metadata.gz: 8f0856bdfcc5e5dd90bcd87f75c1c9bdc71e0220bc259a1bc3c497df00c1321a18960a9a2d33134bd0c3ceee239892d065aa999a6604f380e9bb875fab643002
7
- data.tar.gz: eaa5ffc86dde4db2c45317063ea7eec234ace56d47abf49f2f9a271c0596e8f5bca4ed565b9b35b40a03104d710e834813bae652321e4c964b6e822b3304d909
6
+ metadata.gz: 335bf4097cf2e9fa05d247a677a0fd7b60b35ec36d30b817abcb3bd53a193d16c90cbd630cae8b6adb1a5c409e93e699a68e85a6a0cfb761cd028ad65db7d13b
7
+ data.tar.gz: c9d9868426b5214c52e8273454333911be5b5e182ef030f314491c789b5ee4e5ccec31886dcd959e058cba47e68c42b3552c897bf79b05f55c300d9bcbd8898e
data/README.md CHANGED
@@ -13,7 +13,7 @@ end
13
13
  ## Announce a service
14
14
 
15
15
  ```ruby
16
- c = Grenache::Base.new
16
+ c = Grenache::BaseHttp.new
17
17
 
18
18
  c.listen("test",5001) do |env|
19
19
  req = Oj.load(env['rack.input'].read)
data/examples/client.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'grenache-ruby-base'
2
2
 
3
- require_relative "../lib/grenache/base.rb"
3
+ require_relative "../lib/grenache/base-http.rb"
4
4
 
5
5
  Grenache::Base.configure do |conf|
6
6
  conf.grape_address = "http://127.0.0.1:40002/"
7
7
  end
8
8
 
9
- c = Grenache::Base.new
9
+ c = Grenache::BaseHttp.new
10
10
  start_time = Time.now
11
11
 
12
12
  10.times do |n|
data/examples/worker.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'thin'
2
2
  require 'grenache-ruby-base'
3
- require_relative "../lib/grenache/base.rb"
3
+ require_relative "../lib/grenache/base-http.rb"
4
4
 
5
5
  Grenache::Base.configure do |conf|
6
6
  conf.grape_address = "http://127.0.0.1:40002/"
@@ -11,7 +11,7 @@ EM.run do
11
11
  Signal.trap("INT") { EventMachine.stop }
12
12
  Signal.trap("TERM") { EventMachine.stop }
13
13
 
14
- c = Grenache::Base.new
14
+ c = Grenache::BaseHttp.new
15
15
 
16
16
  c.listen('test',5004) do |env|
17
17
  req = Oj.load(env['rack.input'].read)
@@ -23,5 +23,4 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency "oj", "~> 2.17"
24
24
  spec.add_runtime_dependency "thin", "~> 1.7"
25
25
 
26
-
27
26
  end
@@ -1,5 +1,5 @@
1
1
  module Grenache
2
- class Base
2
+ class BaseHttp < Grenache::Base
3
3
  def listen(key, port, opts={}, &block)
4
4
  start_http_service(port,&block)
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Grenache
2
2
  module HTTP
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -2,9 +2,10 @@ require 'oj'
2
2
  require 'eventmachine'
3
3
  require 'faye/websocket'
4
4
  require 'httpclient'
5
+ require 'grenache-ruby-base'
5
6
  require 'thin'
6
7
  require 'rack'
7
8
 
8
- require 'grenache/base'
9
+ require 'grenache/base-http'
9
10
  require 'grenache/version'
10
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grenache-ruby-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitfinex <info@bitfinex.com>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -109,7 +109,7 @@ files:
109
109
  - examples/worker.rb
110
110
  - grenache-ruby-http.gemspec
111
111
  - lib/grenache-ruby-http.rb
112
- - lib/grenache/base.rb
112
+ - lib/grenache/base-http.rb
113
113
  - lib/grenache/version.rb
114
114
  homepage: https://github.com/bitfinexcom/grenache-ruby-http
115
115
  licenses: