protos 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 2e1c2bbb97997971d3380fb5846b8720a01d50d61942a9dea5a00e5d19d2c416
4
- data.tar.gz: 10c0adb3dfeef8488ae235b0b7d4ec9567f7011ec5bbe0707d33bff3d6cc0049
3
+ metadata.gz: 0233ed8699bbfd2a557d575c4d42418599a5b896121fb1ed42d68ff8dbb3b3e8
4
+ data.tar.gz: d0954355d624b87b91efe120ee06c94556b3ca437990f00a842d1c4965f9aff5
5
5
  SHA512:
6
- metadata.gz: f8b800214d96624b909934dde77611d12e55aca2eeac34c499d4f905f3fd5e39ca4d56b8130e9b7ffe0240292b27a852842bce3aef47b22607ef68c00d2df675
7
- data.tar.gz: 42a866cc6f7d50169d464b6a016c4852e37634c63003552f732d149725289580c8b031b3d3ce29c6c0f1eb93bd18b73d2cf46f1ff1588cef9a0e39ebe7892a9b
6
+ metadata.gz: c5108530ce8e03b05d4574af5185c6a8cdff6cf0473b126bb16748a5d62a2e2c1b4a7a1183e7b186409def11d8dce75d377f5b757ece431845084ec26dc20351
7
+ data.tar.gz: 6a2b70254dd788a7ad3b547e9379de1555964f697e4dbf3a417a5e935a0e327dd80c9eb9eb97cfc9e38c5bdc0c0669f441fc16b46bbd9b1bdabd5e4bd4842bf2
data/lib/protos/theme.rb CHANGED
@@ -40,6 +40,8 @@ module Protos
40
40
  end
41
41
 
42
42
  def add(key, value)
43
+ return if value.nil?
44
+
43
45
  @theme[key].add(value)
44
46
  end
45
47
 
@@ -49,6 +51,8 @@ module Protos
49
51
  end
50
52
 
51
53
  def set(key, value)
54
+ return if value.nil?
55
+
52
56
  @theme[key].clear.add(value)
53
57
  end
54
58
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Protos
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protos
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
  - Nolan J Tait