grenache-ruby-base 0.2.17 → 0.2.18
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 +4 -4
- data/lib/grenache/configurable.rb +3 -6
- data/lib/grenache/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f15944ecbbe97dc8719b8fd5cab40e51f923313a
|
4
|
+
data.tar.gz: '0692e735d02dfece4da3a8ed082b9ade2e29da1c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf0b87e7465ac621dc57bb911c48a562714bfb5b74e52875f5fc41cdf4f23d3f5cc1649cdef1e40b189ad177d9442b2e9d0209c950e918500b8803459995142
|
7
|
+
data.tar.gz: 8fd56abae881f4538286a3990a39ff60cc27c67874584c965aac6caf308223c885e87926a7fc9013e576a697f1ac95670908e9af064582314446f9ca33e156bf
|
@@ -16,7 +16,7 @@ module Grenache
|
|
16
16
|
class Configuration < BaseConfiguration
|
17
17
|
|
18
18
|
def initialize(params = {})
|
19
|
-
@values = self.class.default.values
|
19
|
+
@values = self.class.default.values.clone
|
20
20
|
|
21
21
|
params.each do |k, v|
|
22
22
|
@values[k.to_s] = v
|
@@ -50,18 +50,15 @@ module Grenache
|
|
50
50
|
end
|
51
51
|
|
52
52
|
module ClassMethods
|
53
|
-
def configure
|
54
|
-
yield config
|
55
|
-
end
|
56
|
-
|
57
53
|
# Class configuration
|
58
54
|
def config
|
59
|
-
|
55
|
+
Grenache::Configuration.default
|
60
56
|
end
|
61
57
|
|
62
58
|
def default_conf &block
|
63
59
|
Grenache::Configuration.set_default &block
|
64
60
|
end
|
61
|
+
alias_method :configure, :default_conf
|
65
62
|
end
|
66
63
|
end
|
67
64
|
end
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bitfinex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|