CiscoWebex 0.0.5 → 0.0.6

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Toolbox/Toolbox.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b76d149646047529e4ab741593b209a522a5ec93a8e97caf624287430181bfd
4
- data.tar.gz: e6dada7ef663b6046f757be100df58dc822dddad40a1da45a02fd62d8e2752e6
3
+ metadata.gz: 8f9a7f8ed9d923adecf7aca9396165d544fe6ba8478121253240c4e1ecd78c66
4
+ data.tar.gz: 9498a00fbc6a0009254b6b70f0075134f5d12fe1a83ff24c53bf96aa7f7a0828
5
5
  SHA512:
6
- metadata.gz: e061f81d6e5f6b842e92dea401cdd3a047d9bcf052922e58b6d56bd9b68bec69fdf4feab9263585696f241f91ec58bee8c27a194b3f998f08f638e8d283d2d5a
7
- data.tar.gz: a1cfe2bc426fdd553d40da3bbe08ed05361b46e1f2a7cf751190fa006e705a996b69b2c4760c5698ef4475b9955cab91607b2e1f0ef021f4d4306b9c16de1c86
6
+ metadata.gz: dfc749cb908ca3246b54afbd3687dd4b3cb12f3275ed1d483b9785f3a71d5d61f62983b669eff36bd8382da6cb03dadd3325be84c117a050c7fc001f9d842524
7
+ data.tar.gz: 184267a28d72bd94ddf8d177253f333cf2b3fe4ed51f2af746c34576b15c76b900c6d126d69f6fb9c29fdf0d5d7711f7c6d9d069e739d7f0a2ca58487b2ca87b
@@ -4,7 +4,8 @@ require 'time'
4
4
  module CiscoWebex
5
5
  class Toolbox
6
6
  def self.search(list, params={})
7
- if !list || list.class != Array || list.class != Hash || params == {}
7
+ list = [ list ] if list.class == Hash
8
+ if !list || list.class != Array || params.length == 0
8
9
  STDERR.puts "CicoWebex::Toolbox.search(list, params={}): Data provided for search much be am Array of Hashes, `params` must have parameters to search on"
9
10
  return false
10
11
  end
@@ -16,6 +17,7 @@ module CiscoWebex
16
17
  matches += 1
17
18
  end
18
19
  end
20
+ # if match count is the same as the length of params speficied then concider it a full match and add to results
19
21
  if matches == params.length()
20
22
  results.append(app)
21
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CiscoWebex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Snipes