fullcontact 0.17.0 → 0.18.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: 5f3be51597addb94a6f361e263c720d853afe69e
4
- data.tar.gz: c41cc0a42285b46cb495964c011e3a02f5ea7e38
3
+ metadata.gz: 0511ec5d123ee579be27b2d4cc9919608359bb4f
4
+ data.tar.gz: 4e20e39658a65558f47d1f4db79d14bdaa2ea3fa
5
5
  SHA512:
6
- metadata.gz: 54a0832408d10df237ec61dc861d14328d0dd955356425232612b76bea64c02e1f812f8eaa830abd977dbef4ce5097359bff46f1964b2e2d6d3e76372ed7ca77
7
- data.tar.gz: 68b5c3e5da7ecad27b5763a98cea334b72a4f9bd3776563abc0a10e8c32ac7d1dfc2e05ce1bd7ae1e15f26e740f62c9d4c1185167831cd18c66acd394e4f2465
6
+ metadata.gz: 9ad94ad6069f479035390cc1b762fc1a9c82d3b206560850917b84348c5d838a03e9ea09d7f6cf3af894a03e4aff3db0ed6f2d1fe3a204c1e23c953e75646758
7
+ data.tar.gz: ae2f7f6db4eaf8edd77d505fa1e0a09c45f16a70a8bf2f5447a68d430f49f115f36a0afa21565959a7f5c3184aa37c680511da13f591b94cafc7b030f2895fd3
data/README.md CHANGED
@@ -9,6 +9,9 @@ A Ruby wrapper for the [FullContact API](http://www.fullcontact.com/)
9
9
 
10
10
  Changes
11
11
  -------
12
+ - 0.18.0
13
+ - Add ability to query Company API by company name
14
+ - Fix XML bug in Company API module
12
15
  - 0.17.0 - Upgrade Faraday plugin to ~> 0.11.0
13
16
  - 0.16.0 - Upgrade Faraday plugin to ~> 0.10.0.
14
17
  - 0.15.0 - Add header-based auth via `config.auth_type = :header` control.
@@ -17,7 +20,7 @@ Changes
17
20
  - Raise `ArgumentError` if query by Facebook ID/username is used.
18
21
  - Remove deprecated messages.
19
22
  - 0.12.0 - `include_headers_in_response = true` includes response headers in returned payload
20
- - Accessible as `http_headers` in response. Also accessible on thrown errors (e.g. RateLimited)
23
+ - Accessible as `http_headers` in response. Also accessible on thrown errors (e.g. RateLimited)
21
24
  - 0.11.0 - Plisskin transformation can be disabled by specifying a `skip_rubyize = true` in config block.
22
25
  - 0.10.0 - Support for FullContact Company API
23
26
  - 0.9.0 - Removed Rash gem and replaced with Mashify + Plisskin
@@ -118,6 +121,16 @@ You can also query the Company API
118
121
  => "FullContact Inc."
119
122
  ```
120
123
 
124
+ The Company API also supports searching by company name.
125
+ Please see [our API documentation](https://www.fullcontact.com/developer/docs/company/#lookup-by-company-name) for more details.
126
+ ```ruby
127
+ # Get information about a company
128
+ company1 = FullContact.company(companyName: 'FullContact')
129
+
130
+ company1.organization.name
131
+ => "FullContact Inc."
132
+ ```
133
+
121
134
 
122
135
  Contributions
123
136
  -------------
@@ -1,11 +1,15 @@
1
1
  module FullContact
2
2
  class Client
3
3
  module Company
4
- # Returns extended information for a given person (email, phone, twitter or facebook)
4
+ # Returns extended information for a given company (email, phone, twitter or facebook)
5
5
  #
6
6
  def company(options={}, faraday_options={})
7
- response = get('company/lookup', options, false, faraday_options)
8
- format.to_s.downcase == 'xml' ? response['person'] : response
7
+ url = "company/lookup"
8
+ if options[:companyName]
9
+ url = "company/search"
10
+ end
11
+ response = get(url, options, false, faraday_options)
12
+ format.to_s.downcase == 'xml' ? response['response'] : response
9
13
  end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module FullContact
2
- VERSION = '0.17.0'
2
+ VERSION = '0.18.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullcontact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FullContact, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maruku
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: 1.3.6
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.4.6
233
+ rubygems_version: 2.5.1
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Ruby wrapper for the FullContact API