PearsonLongman-Dictionary 0.1.0 → 0.2.0

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: 7592938025c5ab2d124294261dc788132361c74c
4
- data.tar.gz: 999f9964d00bc5b0d43eefef9547030464e65bdd
3
+ metadata.gz: 2b947b6f16eb32d7b908939d71eebc17564231a2
4
+ data.tar.gz: 42f61477519df7f616d7f6e3afb78c5cbf073c69
5
5
  SHA512:
6
- metadata.gz: 40865771a407c61fd3ba1675da99733ac1344a73fd0b3aa83b185de7adcfbc716625b91ee41609edb82a99fb53c48673f0f1a24924d8cfc05674a478663a2d05
7
- data.tar.gz: 8d54fcbb289649815275226cc0cd44c002bad586f95a4019e4fdc8bff0ba6ad9026d7356277f85937935b7f765deb9eaa8df95f436136901117d0e7073434a31
6
+ metadata.gz: dcfed083200cd58bbdf0c03c3d6745c501cb8843821f6b73ebf0f44265202a2378317d57949e953be53bcc1b91b24cf2a2de84cd62c7e91f41c5e2a314c5c055
7
+ data.tar.gz: afeb2d2f07584f3732bd1fc4a3c628bc3957aa60afab7f9901d7ade5a3417ad9bfaa435c94be96db3092137a92e3919b5a50568af3526ebc0d802978de36d6a8
@@ -34,8 +34,8 @@ module DictionaryLookup
34
34
 
35
35
  # Select definitions that match exactly with the term
36
36
  results = data["results"].select{ |d| dhead = d["headword"].downcase
37
-
38
- d["headword"].downcase == term.downcase or dhead[term.length] == ","
37
+ d["headword"].downcase == term.downcase or d["headword"].downcase[0,term.length+1] == term.downcase + ","
38
+ # d["headword"].downcase == term.downcase or dhead[term.length] == ","
39
39
  }
40
40
  definitions = []
41
41
 
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnold Tonderai Marunda
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '5.0'
41
- description:
41
+ description: Retrieves word definitions, country and famous person profiles
42
42
  email: arnold-fungai@live.com
43
43
  executables: []
44
44
  extensions: []