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 +4 -4
- data/lib/protos/theme.rb +4 -0
- data/lib/protos/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0233ed8699bbfd2a557d575c4d42418599a5b896121fb1ed42d68ff8dbb3b3e8
|
4
|
+
data.tar.gz: d0954355d624b87b91efe120ee06c94556b3ca437990f00a842d1c4965f9aff5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/protos/version.rb
CHANGED