contact-data 0.5.6 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contact-data/text/results.rb +8 -0
- data/lib/contact-data/version.rb +1 -1
- 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: e22c820f49bbd3696e26dba76668ab76fd502bc8
|
4
|
+
data.tar.gz: 3242b90cb6dccc860b8a6610d2cb3da2b9593380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49b44c92b6422df301ffcba40eccff7d324a79d5be3c05d6207f26ed6775e16779dde07c923c6a093fb61aec32e9b6171f18398d9b5cb4b62f20b4657bfd9e66
|
7
|
+
data.tar.gz: 9b6620fbb3ecf53bae5c16de1393e99f11dedde1002e8586b7299c61bd396fedf8fdd9be90fa18a93c7462da2003a6f54ee23048f005a4c610685ebc3cdedb68
|
@@ -25,6 +25,10 @@ module ContactData
|
|
25
25
|
@slugs ||= contacts.map { |c| c[:slug] }
|
26
26
|
end
|
27
27
|
|
28
|
+
def uncommon_slugs
|
29
|
+
@slugs ||= contacts.select { |c| c[:common_phrase] == true }.map { |c| c[:slug] }
|
30
|
+
end
|
31
|
+
|
28
32
|
def mentions
|
29
33
|
@mentions ||= raw[:mentions]
|
30
34
|
end
|
@@ -33,6 +37,10 @@ module ContactData
|
|
33
37
|
@slugs_and_mentions ||= (slugs | mentions)
|
34
38
|
end
|
35
39
|
|
40
|
+
def uncommon_slugs_and_mentions
|
41
|
+
@slugs_and_mentions ||= (uncommon_slugs | mentions)
|
42
|
+
end
|
43
|
+
|
36
44
|
def title_contacts
|
37
45
|
@title_contacts ||= contacts.select { |c| c[:in_title] }
|
38
46
|
end
|
data/lib/contact-data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xenapto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|