waps 0.0.2 → 0.0.3

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/waps.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f9ba3c19ce9230e6b3678b003b5e9e55429931d420658be4908b517029724df
4
- data.tar.gz: b04b1f52ee905033945f5823db863b4f43da4e15cf8a843fcc77b7c762bdf0ff
3
+ metadata.gz: cf66be1cdec70286e6a3c01a23297ed9d9b182d8cb6a72f21f4c1ef4df5eb769
4
+ data.tar.gz: a42c04453417d1a5214205b6919690086d20fb2966b9f185a494ebbaa875a06b
5
5
  SHA512:
6
- metadata.gz: 9de0fea723dec77fdfc8e41e779208bf254c7e81bc37a8ea2bbaefd338d923b63f114e014222ca8175d64ffa5a226e3f9c5d70ad71eefa799c9b1a46ac5fa790
7
- data.tar.gz: 03d6de5cb02709c1489fa66cf6182bc38198eee2c1aa16c0dd57fdcd651e2f79830d88a21c187adb3cf63553b06a6866a48202afb6d9dac2ad1079afbfa2d973
6
+ metadata.gz: 229ffd04ea442b1516c4fc1f512098bfe9eb11643a6501574a62696617b9e8f554993716ff82c99b5babd8f25f00a365ebb83328f47e21ffae60d400dfddcde7
7
+ data.tar.gz: e4180a8b334d0542ac9fa0293b1856033d86da954b46def90edac0245c25b9d58899004e2b81be7f7109d62783080ac62288a047164699d85aa4424872fa37d5
data/lib/waps.rb CHANGED
@@ -73,7 +73,7 @@ class Waps
73
73
 
74
74
  def get(find)
75
75
  result = []
76
- if @output[0].keys.include? find.to_sym
76
+ if @output[0].keys.include? find.to_sym && !@output.empty?
77
77
  result = @output.map { |cell| cell[find.to_sym] }
78
78
  end
79
79
  result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gurjant Singh
@@ -32,7 +32,7 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - lib/waps.rb
35
- homepage: https://rubygems.org/gems/waps
35
+ homepage: https://github.com/gurjant31/waps
36
36
  licenses:
37
37
  - MIT
38
38
  metadata: {}