pigato 0.1.5 → 0.1.6

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: 767b55541e28f390d0a978bc478cb209d8022e48
4
- data.tar.gz: 7ad212b6cd040e718a74cff8f54e1383c01a7cc9
3
+ metadata.gz: eddcc86cfe0e27ec9809e3d80281dd86a528ecf6
4
+ data.tar.gz: a3634d70ef73576ce8bbeee750752d02630cf3e2
5
5
  SHA512:
6
- metadata.gz: 5679ae6ea22bd9a45275f8de037bf2c8abbda0a3a1cb5b914a72a4417005f083902ed3deb1fc175c7e525f1c9662b373e55e4d56a68c5a9bd06b6e9d1ac1ce10
7
- data.tar.gz: 4fa094d344f1e726b47610e003c16d10747626c7e54ef99b76aada96193d4d1ce2c103b0ed0d157c60b7038bb6025ce5164d6bb5c3bc041165655264ea0612f4
6
+ metadata.gz: 5bdecf928cbc500ab52fd4f182bcfdb4aee00e922c4971fbed633a4223db9d81a700d36698594efec90fae2f0272a15d9be29b59560c9e18c04fd4c04df84eb9
7
+ data.tar.gz: ee76331da3ae58cad455df0dd75529786616ee72133a8ec2d4ffd281214a5ca9ad0b8d30ed8a14ecd12a4faa1ba0a0707c655e0bf5aa2ffb88f8937ef9dcc921
data/README.md CHANGED
@@ -1,11 +1,13 @@
1
- # PIGATO-RUBY
1
+ # PIGATO-RUBY - Ruby Client / Worker for PIGATO
2
2
 
3
- * [Official PIGATO project page](http://prdn.github.io/pigato/)
4
- * [Node.js and io.js broker/client/worker](https://github.com/prdn/pigato)
3
+ [![PIGATO](http://ardoino.com/pub/pigato-ruby-200.png)](https://github.com/prdn/pigato-ruby)
5
4
 
6
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pigato`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ **PIGATO - an high-performance microservices framework based on ZeroMQ**
7
6
 
8
- TODO: Delete this and the text above, and describe your gem
7
+ PIGATO aims to offer an high-performance, reliable, scalable and extensible service-oriented framework supporting multiple programming languages: Node.js/Io.js and Ruby.
8
+
9
+ * [Official PIGATO project page](http://prdn.github.io/pigato/)
10
+ * [Node.js and io.js broker/client/worker](https://github.com/prdn/pigato)
9
11
 
10
12
  ## Installation
11
13
 
@@ -24,18 +26,13 @@ Or install it yourself as:
24
26
  $ gem install pigato
25
27
 
26
28
  ## Usage
27
- Example client/worker echo:
28
-
29
- * `examples/echo_client.rb`
30
- * `examples/echo_worker.rb`
31
29
 
32
30
  In order to run the example you need to run Node.js PIGATO example Broker from the [main project](https://github.com/prdn/pigato/tree/master/examples)
33
31
 
34
- ## Development
35
-
36
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
32
+ Example client/worker echo:
37
33
 
38
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+ * `examples/echo_client.rb`
35
+ * `examples/echo_worker.rb`
39
36
 
40
37
  ## Contributing
41
38
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "rubygems"
4
4
  require "#{File.dirname(__FILE__)}/../lib/pigato.rb"
5
+ #require "pigato"
5
6
 
6
7
  client = PigatoClient.new('tcp://localhost:55555')
7
8
  requests = 1000
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "rubygems"
4
4
  require "#{File.dirname(__FILE__)}/../lib/pigato.rb"
5
+ #require "pigato"
5
6
 
6
7
  worker = PigatoWorker.new('tcp://localhost:55555', 'echo')
7
8
  reply = nil
@@ -1,3 +1,3 @@
1
1
  module Pigato
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/pigato/worker.rb CHANGED
@@ -3,6 +3,7 @@ require "ffi-rzmq"
3
3
  require "securerandom"
4
4
 
5
5
  class PigatoWorker
6
+
6
7
  HEARTBEAT_LIVENESS = 3 # 3-5 is reasonable
7
8
 
8
9
  def initialize broker, service
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pigato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Ardoino
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-14 00:00:00.000000000 Z
11
+ date: 2015-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler