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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zoom/config.rb +2 -7
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d21327ad6b14635f5fc2c96864268e296c8ad5d
4
- data.tar.gz: bcf56ef67f7d99c23de03cab959ec29598d090fb
3
+ metadata.gz: 8d691ebaf18139378b36effcf8e5463a405633f5
4
+ data.tar.gz: ea4deafd8300f0fd2a0846f20dd930f181b2a69d
5
5
  SHA512:
6
- metadata.gz: db1a4a7a875778e3677ad2ed65bb8319854a3f2df8a45341814ecaefe4c92813062d719d233e7d5fc3d4313ed014dbf995fc7337de236210470671a4894ac2f7
7
- data.tar.gz: 4056710ebd23f3d3b2244d7ed5c096b2161b073be77503161c9b3ab3c0088a03353a0f299d59a605a0c87856ae7f241d58b466de757b654fe2de85c17d930f89
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.5
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.0'
99
+ version: '1.1'
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 1.0.0
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.0'
109
+ version: '1.1'
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 1.0.0
112
+ version: 1.1.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: json_config
115
115
  requirement: !ruby/object:Gem::Requirement