ruby-zoom 4.6.1 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (9) hide show
  1. checksums.yaml +4 -4
  2. data/bin/z +1 -1
  3. data/bin/zc +1 -1
  4. data/bin/zf +1 -1
  5. data/bin/zg +1 -1
  6. data/bin/zl +1 -1
  7. data/bin/zr +1 -1
  8. data/lib/zoom/profile_manager.rb +16 -4
  9. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fd4d6b5b0341f88d88fd5b431f057eb25810bea
4
- data.tar.gz: e9f77f2c335bd1f2b32af8516bf479de9864d6ab
3
+ metadata.gz: 4bc56ae7f9395681ad184189dbafcf5ee94028dc
4
+ data.tar.gz: 70f6a62d6dd5ab73d5f1d658e43773e00efbaaa1
5
5
  SHA512:
6
- metadata.gz: 4a1aa7198c296b2a90e8152a82de931bb241db5ee89c4a3a61c92c667e429d3946d8c356739e7b8163b44a4571474027381f25380c8ed88d0b85884450aae4b6
7
- data.tar.gz: 795b7d05d0ed37f01f322ea2f9908e1df565002a9259b3340168e2a1977f7314a0e9b5669ee94b4854f54aac62e374799ba640111cd85d1b5cb04427afd025ef
6
+ metadata.gz: b7cb55ecf06412c49851fe8c85e6f99a4944d9adb99631aadaa4381c5441ac50be1f9acf10f5672810d8f874f30d974d99b572752f2cd678627ecd06289b8b7e
7
+ data.tar.gz: 1e90f5833ae96b4e56191ab1b505af6a11b0073d23d2916410488db3d94f70842847b8f89728c4a379887ec1ca6895a74aa70994ae275c8bc8c4bcba2aa76245
data/bin/z CHANGED
@@ -298,7 +298,7 @@ begin
298
298
  when "repeat"
299
299
  zoom.repeat
300
300
  when "rc"
301
- zoom.config.default_config
301
+ # zoom.config.default_config # Redundant
302
302
  zoom.cache.clear
303
303
  when "secprofs"
304
304
  zoom.config.add_security_profiles
data/bin/zc CHANGED
@@ -298,7 +298,7 @@ begin
298
298
  when "repeat"
299
299
  zoom.repeat
300
300
  when "rc"
301
- zoom.config.default_config
301
+ # zoom.config.default_config # Redundant
302
302
  zoom.cache.clear
303
303
  when "secprofs"
304
304
  zoom.config.add_security_profiles
data/bin/zf CHANGED
@@ -298,7 +298,7 @@ begin
298
298
  when "repeat"
299
299
  zoom.repeat
300
300
  when "rc"
301
- zoom.config.default_config
301
+ # zoom.config.default_config # Redundant
302
302
  zoom.cache.clear
303
303
  when "secprofs"
304
304
  zoom.config.add_security_profiles
data/bin/zg CHANGED
@@ -298,7 +298,7 @@ begin
298
298
  when "repeat"
299
299
  zoom.repeat
300
300
  when "rc"
301
- zoom.config.default_config
301
+ # zoom.config.default_config # Redundant
302
302
  zoom.cache.clear
303
303
  when "secprofs"
304
304
  zoom.config.add_security_profiles
data/bin/zl CHANGED
@@ -298,7 +298,7 @@ begin
298
298
  when "repeat"
299
299
  zoom.repeat
300
300
  when "rc"
301
- zoom.config.default_config
301
+ # zoom.config.default_config # Redundant
302
302
  zoom.cache.clear
303
303
  when "secprofs"
304
304
  zoom.config.add_security_profiles
data/bin/zr CHANGED
@@ -298,7 +298,7 @@ begin
298
298
  when "repeat"
299
299
  zoom.repeat
300
300
  when "rc"
301
- zoom.config.default_config
301
+ # zoom.config.default_config # Redundant
302
302
  zoom.cache.clear
303
303
  when "secprofs"
304
304
  zoom.config.add_security_profiles
@@ -1,4 +1,3 @@
1
- require "fagin"
2
1
  require "pathname"
3
2
  require "scoobydoo"
4
3
 
@@ -33,14 +32,27 @@ class Zoom::ProfileManager
33
32
  end
34
33
  end
35
34
 
35
+ Zoom::Profile.subclasses.each do |clas|
36
+ case clas.to_s
37
+ when /^Zoom::SecurityProfile.*/
38
+ # Ignore these
39
+ when /^Zoom::Profile::(Ag|Ack|Find|Grep|Pt)/
40
+ # Ignore these
41
+ else
42
+ # Custom classes
43
+ c = clas.new
44
+ profiles[c.name] = c
45
+ end
46
+ end
47
+
36
48
  return profiles
37
49
  end
38
50
 
39
51
  def self.security_profiles
40
- profs = Array.new
52
+ profiles = Array.new
41
53
  Zoom::SecurityProfile.subclasses.each do |clas|
42
- profs.push(clas.new)
54
+ profiles.push(clas.new)
43
55
  end
44
- return profs
56
+ return profiles
45
57
  end
46
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-zoom
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.1
4
+ version: 4.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest