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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 991f81b4aebe4815f92e3ae00394eee96698e9bd
4
- data.tar.gz: c2bfcad93014407599421d8991695bebed13df31
3
+ metadata.gz: e22c820f49bbd3696e26dba76668ab76fd502bc8
4
+ data.tar.gz: 3242b90cb6dccc860b8a6610d2cb3da2b9593380
5
5
  SHA512:
6
- metadata.gz: 9bf0dc38246aa174f571486abbf9e82eaa5609e790e01e89a6ea980231842053a46cd37b2a7b8c622598c09115a43109b4e2d929b058dc5e2d247b7fd3119495
7
- data.tar.gz: f78e69754212adce2ae9976d264dd9438c340ab6ae48678329c725c0f0316238d15e8f822c4c87ebaf545ab9df8704e7065879dd7601a618c90a18a67a3e8e64
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Gem version
3
3
  module ContactData
4
- VERSION = '0.5.6'
4
+ VERSION = '0.6.0'
5
5
  end
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.5.6
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-06 00:00:00.000000000 Z
11
+ date: 2016-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client