ruby-zoom 4.6.5 → 4.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zoom/config.rb +2 -7
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d691ebaf18139378b36effcf8e5463a405633f5
|
4
|
+
data.tar.gz: ea4deafd8300f0fd2a0846f20dd930f181b2a69d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 506a9ffa0ac62ba7f8a639a7b1fea7c19067c8b0916418673fd2ed786e7e55758a3fa1368cf768e0d194eb8a18b1846223b1b2dea16d95d59964dc4e0418d2cb
|
7
|
+
data.tar.gz: 1b2be1457eff0daf5696fa1a6b121e824804918d54a565a7c3e1bb9ed3e4d35cf374dea7ca5b8834c8571b7dc8605f8390d3116f06188ce74e5db7d9bac3486b
|
data/lib/zoom/config.rb
CHANGED
@@ -141,14 +141,9 @@ class Zoom::Config < JSONConfig
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def validate_color(clr)
|
144
|
+
@valid ||= String.colors.keys.concat(String.modes.keys)
|
144
145
|
clr.split(".").each do |c|
|
145
|
-
if (
|
146
|
-
String.colors.keys.include?(c.gsub(/^on_/, "")) ||
|
147
|
-
String.modes.keys.include?(c)
|
148
|
-
)
|
149
|
-
next
|
150
|
-
end
|
151
|
-
|
146
|
+
next if (@valid.include?(c.gsub(/^on_/, "")))
|
152
147
|
raise Zoom::Error::InvalidColor.new(clr)
|
153
148
|
end
|
154
149
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-zoom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
@@ -96,20 +96,20 @@ dependencies:
|
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '1.
|
99
|
+
version: '1.1'
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 1.
|
102
|
+
version: 1.1.0
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '1.
|
109
|
+
version: '1.1'
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 1.
|
112
|
+
version: 1.1.0
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: json_config
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|