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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adbe9754487376327c5109b39060a681ab7cce25
4
- data.tar.gz: 675f41681e25267259e01490f4a110373926716f
3
+ metadata.gz: f15944ecbbe97dc8719b8fd5cab40e51f923313a
4
+ data.tar.gz: '0692e735d02dfece4da3a8ed082b9ade2e29da1c'
5
5
  SHA512:
6
- metadata.gz: dff0b847ec247725d8aa610924b8f4af81a7f93bfd8377c1e5efa6a143c0defa988b89d1e3b5a0557a6e1ffb5926845372395f209ed4874dab657246c1b1b753
7
- data.tar.gz: 919ead3c4de948b6cd85749aa2e5d6c4a9a9dcd6b01007f50c0291e2845a4d3153f16d7183410aa1710c69c358e83a00c4d3953b770d93bfe4f7fdbb2413f1ce
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
- @configuration ||= Configuration.new
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
@@ -1,3 +1,3 @@
1
1
  module Grenache
2
- VERSION = '0.2.17'
2
+ VERSION = '0.2.18'
3
3
  end
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.17
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-06-30 00:00:00.000000000 Z
11
+ date: 2018-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine