grenache-ruby-http 0.2.1 → 0.2.2

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: 20fa647ee2208ea6dc289a3ae3bb15ec05eef710
4
- data.tar.gz: 0c87d09f78ec8e5ecebe0fbc73bf2102c2cd378d
3
+ metadata.gz: a60db532a660dc4937e497cc53f2114c703fda06
4
+ data.tar.gz: bde53160f62fa3b746aa8a1411ef2ac9355132df
5
5
  SHA512:
6
- metadata.gz: c57c064c97cde2144b257c85d2777b07c532506262bb933805ab928f1bf040000bcd0d9bcd32ab4867c7d9eee43d54122a2f8fe78ecd141d69c0f6c5a303f975
7
- data.tar.gz: ea181b7099a215dc36d52cf4d7b9b39dd4bc514e8ca2049cefc8baa0a01262320dc81341c739bfab41e5f79b1d62b51628349841dc0e28077a7c01559233a155
6
+ metadata.gz: 66bb9674838ffc589ef917e656e2d061247b6bafb810618308063ea10e3aaa22a1bcba6613a05ca091369aaf3c37a50ac9c7ed5e8f5ce0dc50d55990edc6a37f
7
+ data.tar.gz: 2ffbdfce383b22daf635c5451b41fe2498871008ed1150aa3d3cf91fe4e4e36b7aea44c5f95bd59af53cc1d91127cb1981d1df7299394962598087062a289c7c
data/lib/grenache/http.rb CHANGED
@@ -23,7 +23,7 @@ module Grenache
23
23
  def request(key, payload)
24
24
  services = lookup(key)
25
25
  if services.size > 0
26
- json = ServiceMessage.new(payload).to_json
26
+ json = ServiceMessage.new(payload,key).to_json
27
27
  service = services.sample.sub("tcp://","http://")
28
28
  service.prepend("http://") unless service.start_with?("http://")
29
29
  resp = HTTParty.post(service,{body: json})
@@ -1,5 +1,5 @@
1
1
  module Grenache
2
2
  module HTTP
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitfinex <info@bitfinex.com>