grenache-ruby-http 0.0.5 → 0.0.6

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: 32961983a6af0cbeaa13fc0610b349569b08c38a
4
- data.tar.gz: d6f57308650a52550220e1c3c9b2f9b8f019f4e4
3
+ metadata.gz: 6b037819c2b71b041d2e3f3edd782d25bbfc119e
4
+ data.tar.gz: 40fb9207f84ce80cbdc6b3131a3c2f40571a0ac2
5
5
  SHA512:
6
- metadata.gz: 335bf4097cf2e9fa05d247a677a0fd7b60b35ec36d30b817abcb3bd53a193d16c90cbd630cae8b6adb1a5c409e93e699a68e85a6a0cfb761cd028ad65db7d13b
7
- data.tar.gz: c9d9868426b5214c52e8273454333911be5b5e182ef030f314491c789b5ee4e5ccec31886dcd959e058cba47e68c42b3552c897bf79b05f55c300d9bcbd8898e
6
+ metadata.gz: 22c0478adf012905f83eef1d2e5cf990e9eceb99325b02a3a31b604454008992d90e6308179724d6af0753c53e2dabd103277f736ef4190001ffd1d666507220
7
+ data.tar.gz: 1aeda6704057da2e0ef0ddd4c671fa99ca63d8647fe689babdeb1e188247b7407406567348721b57fd6e086672317c2844bc8991e089da9cdf56db7174cb0f90
data/examples/client.rb CHANGED
@@ -1,12 +1,10 @@
1
- require 'grenache-ruby-base'
2
-
3
- require_relative "../lib/grenache/base-http.rb"
1
+ require 'grenahce-ruby-http'
4
2
 
5
3
  Grenache::Base.configure do |conf|
6
4
  conf.grape_address = "http://127.0.0.1:40002/"
7
5
  end
8
6
 
9
- c = Grenache::BaseHttp.new
7
+ c = Grenache::Http.new
10
8
  start_time = Time.now
11
9
 
12
10
  10.times do |n|
@@ -15,4 +13,3 @@ start_time = Time.now
15
13
  end
16
14
 
17
15
  puts "Total Time: #{Time.now - start_time}"
18
-
data/examples/worker.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'thin'
2
- require 'grenache-ruby-base'
3
- require_relative "../lib/grenache/base-http.rb"
2
+ require 'grenache-ruby-http'
4
3
 
5
4
  Grenache::Base.configure do |conf|
6
5
  conf.grape_address = "http://127.0.0.1:40002/"
@@ -11,7 +10,7 @@ EM.run do
11
10
  Signal.trap("INT") { EventMachine.stop }
12
11
  Signal.trap("TERM") { EventMachine.stop }
13
12
 
14
- c = Grenache::BaseHttp.new
13
+ c = Grenache::Http.new
15
14
 
16
15
  c.listen('test',5004) do |env|
17
16
  req = Oj.load(env['rack.input'].read)
@@ -23,4 +23,5 @@ 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
+
26
27
  end
@@ -1,5 +1,5 @@
1
1
  module Grenache
2
- class BaseHttp < Grenache::Base
2
+ class Http < 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.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grenache-ruby-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitfinex <info@bitfinex.com>