userlist 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: c8436f1e9a2b5dff59fcceedbe0ce2d334c8288ce231eb0db7da388881efb099
4
- data.tar.gz: 882e26f3f57562b399c43ad9e47aa16f008e1593042d490ea2b1f0611239347d
3
+ metadata.gz: d654ea7675fae65eaef3bd08958b6e565ad8cee82ddf8c00d25dc647bb04b047
4
+ data.tar.gz: 29ac435d2b7df8df2563d952c7c0f40557519e1fcd8fe035dbdd6bf61b420692
5
5
  SHA512:
6
- metadata.gz: 3224339ad8347c83f530907f0a968b0e245d1082c4337becc9be5395437cf39ef6370195e9fcf7a0361d60c34f6acf112a28ca43a3ed202af157bcd192ed0e68
7
- data.tar.gz: 433c0b6ee940f418f2d4de5ed6dd5cf161f1cc4f10c68a938106591e5518e8e653697cc8b625f3cee591082b528b914d937c01d331ad053cfc6ddfed90d808f5
6
+ metadata.gz: 6f725c5b9060d012eecf0bc99475687fb38df01c9111eb066a6cbdd4f3393b0aff1b0cd93d9c948c0b788f7ecdbc93f62efe525573c99ba95e8a5ee7aa3205ff
7
+ data.tar.gz: ee7fdc2e800edad20bdda9753b447b6da599ea14588c98247750af0ab63f3eaf74c2c3d1233c21f8e09b8e8de3e796bb9cf0068344f633ba99059944ad3a0140
@@ -62,7 +62,7 @@ module Userlist
62
62
  end
63
63
 
64
64
  def [](key)
65
- config[key] || parent && parent[key]
65
+ config.key?(key) ? config[key] : parent && parent[key]
66
66
  end
67
67
 
68
68
  def []=(key, value)
@@ -11,8 +11,8 @@ module Userlist
11
11
  def initialize(config = {})
12
12
  @config = Userlist.config.merge(config)
13
13
 
14
- raise Userlist::ConfigurationError, :push_key unless config.push_key
15
- raise Userlist::ConfigurationError, :push_endpoint unless config.push_endpoint
14
+ raise Userlist::ConfigurationError, :push_key unless @config.push_key
15
+ raise Userlist::ConfigurationError, :push_endpoint unless @config.push_endpoint
16
16
  end
17
17
 
18
18
  def get(endpoint)
@@ -1,3 +1,3 @@
1
1
  module Userlist
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userlist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benedikt Deicke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler