platform-skvs 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7d5c81945f71ba8b0c30b983dbf9adc85e0be1d
4
- data.tar.gz: ceea6c6472b33af94a2bdbf5fd44961a3e67349e
3
+ metadata.gz: 582cc6fca85045b00e37f7096b986bbae9eb4e2b
4
+ data.tar.gz: f7823ea6e8fb84838ad5c0979b1df82f1dabcc45
5
5
  SHA512:
6
- metadata.gz: fd4a20d7f64d1b510b37bccd00ce4573f4700b918e549115fc08a53b35e75a8fbedb52337d693f219e489f4e6089aa2ed4dbc4fa8f48f389b4dc69fc14561f28
7
- data.tar.gz: 67f03e780e7bc9f8baf7ad29f8742ef21b5744a91d70b1fbfd7ccf8f1a9851c5eb4cce3a16c4e969037e23a553aee6f0d59eb1fb35582c193068767cf9235c15
6
+ metadata.gz: 9c5b2a91f13eea703e0fcfdb0dfe2551d79f359787fba98daef9e7130a2bf8c35047642469333ac03f16aec0353858178ae740e70edc423a9b496782b8e649da
7
+ data.tar.gz: 4f502498e7936d2be5257fecea74f8a019071c7a0f7c7bb1310649f738fad06c7d8849c7467324422cbe16c5401f8693c39cc958d426da2d621f3533f8304ebe
@@ -45,7 +45,7 @@ class SKVS
45
45
 
46
46
  private
47
47
  def clean(value)
48
- if value.kind_of? String and cleaned = value.strip and cleaned.length > 0
48
+ if value.kind_of? String and cleaned = value.strip
49
49
  cleaned
50
50
  end
51
51
  end
@@ -5,7 +5,9 @@ class SKVS
5
5
  end
6
6
 
7
7
  def get(key)
8
- @storage[key]
8
+ if @storage.has_key? key
9
+ @storage[key]
10
+ end
9
11
  end
10
12
 
11
13
  def set(key, value)
@@ -1,3 +1,3 @@
1
1
  class SKVS
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platform-skvs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http