PearsonLongman-Dictionary 0.4.0 → 0.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e94215192f6626d3a21eeebbb2bbc8fec66a4997
4
- data.tar.gz: c5f3ee23608fe9f41ce216ef0809604240519e7f
3
+ metadata.gz: f849e40cb12345214befbe7b4dd0b0efbe61c38b
4
+ data.tar.gz: 3559acc5691b294ada7f6ada0364ab6f0550ebbd
5
5
  SHA512:
6
- metadata.gz: f5cf9c6c1e7fd38b9ac0a0b157db18f3d45888f41ff48a38e607aa771f8cd2dade00b8a2178e6a1cda0f488cc3a1bc4554377cb9279c870f492631cce7cb2093
7
- data.tar.gz: 1bfcaca51013a0727df4d23e23d8ad2804394f49458a9403a1692067e6befbce1ac6b83d33c47fac869a16196f5be4f09d82a665ad40155b4de21982497fdd57
6
+ metadata.gz: d8d6a7e3d4849376ca31a45fb793feb1577e3d61be16077bf345a09ee91b0efdad6b07fc6adc7f6c7f58304ff2d0badd974dec1173d2d510dc272d54320fbb02
7
+ data.tar.gz: 95cf06b8a1ee10fbba9387c06bfa46210a5b51d99b0264d16c880729e5c0ba3f6fddc5d27d1d6e5f6358870716cb96fdc384ad331983b559b9e9b5db0ed4f377
@@ -33,11 +33,10 @@ module DictionaryLookup
33
33
  data = JSON.parse(response)
34
34
 
35
35
  # Select definitions that match exactly with the term
36
- results = data["results"].select{ |d|
36
+ results = data["results"].select{ |d|
37
37
  d["headword"].downcase == term.downcase or d["headword"].downcase[0,term.length+1] == term.downcase + ","
38
38
  }
39
39
  definitions = []
40
- puts results
41
40
  results.each do |result|
42
41
  headword = result["headword"]
43
42
  part_of_speech = result["part_of_speech"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PearsonLongman-Dictionary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnold Tonderai Marunda