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 +4 -4
- data/lib/PearsonLongman-Dictionary/pearson.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b947b6f16eb32d7b908939d71eebc17564231a2
|
4
|
+
data.tar.gz: 42f61477519df7f616d7f6e3afb78c5cbf073c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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: []
|