grenache-ruby-base 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grenache/base.rb +1 -1
- data/lib/grenache/configurable.rb +5 -9
- data/lib/grenache/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e1328d30d0bcdaf82f9284189fad8d3fa421677
|
4
|
+
data.tar.gz: d0ca3f6002e055f723588ee1105d777a10e64b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a52c4c939d04a236f1180748b60c8cebf2c33754c36ebc9a149c0a16521ffbe6f8289e1434b46b67727ecab577f0e1f3ffd6911a9b89187afc56e8f9f8e719a
|
7
|
+
data.tar.gz: 002d0f740fd56696a5e25d14641c0f27550f897ddbd69b82bbae54ed012f1df0b5ff1ad9e69de17c41c3e9d25a13f369cbf9454f35643632db0b29e93af7226c
|
data/lib/grenache/base.rb
CHANGED
@@ -2,18 +2,14 @@ module Grenache
|
|
2
2
|
|
3
3
|
# Encapsulate Configuration parameters
|
4
4
|
class Configuration
|
5
|
-
attr_accessor :grape_address, :auto_announce, :timeout
|
5
|
+
attr_accessor :grape_address, :auto_announce, :timeout, :auto_announce_interval
|
6
6
|
|
7
7
|
# Initialize default values
|
8
8
|
def initialize(params = {})
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
14
|
-
self.grape_address ||= "ws://127.0.0.1:30001"
|
15
|
-
self.auto_announce ||= true
|
16
|
-
self.timeout ||= 5
|
9
|
+
self.grape_address = params[:grape_address] ? params[:grape_address] : "ws://127.0.0.1:30001"
|
10
|
+
self.auto_announce = params[:auto_announce].nil? ? true : params[:auto_announce]
|
11
|
+
self.auto_announce_interval = params[:auto_announce_interval] ? params[:auto_announce_interval] : 5
|
12
|
+
self.timeout = params[:timeout] ? params[:timeout] : 5
|
17
13
|
end
|
18
14
|
end
|
19
15
|
|
data/lib/grenache/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grenache-ruby-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bitfinex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.6.11
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Grenache Base Client implementation.
|