fullcontact 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +22 -14
- data/fullcontact.gemspec +1 -1
- data/lib/fullcontact/version.rb +1 -1
- data/spec/ruby_fullcontact/client_spec.rb +1 -1
- metadata +28 -28
data/README.md
CHANGED
@@ -4,7 +4,7 @@ A Ruby wrapper for the [FullContact API](http://www.fullcontact.com/)
|
|
4
4
|
|
5
5
|
Changes
|
6
6
|
-------
|
7
|
-
|
7
|
+
0.7.0 - Faraday 0.9.0
|
8
8
|
0.6.0 - Removal of timeoutSeconds parameter. This parameter is automatically stripped from your request if included.
|
9
9
|
|
10
10
|
Installation
|
@@ -17,32 +17,39 @@ Documentation
|
|
17
17
|
|
18
18
|
Usage Examples
|
19
19
|
--------------
|
20
|
-
|
20
|
+
```ruby
|
21
21
|
require "fullcontact"
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
# This could go in an initializer
|
24
|
+
FullContact.configure do |config|
|
25
|
+
config.api_key = "fullcontact_api_key_goes_here"
|
26
|
+
end
|
27
27
|
|
28
|
-
# Get information about
|
28
|
+
# Get information about an email address
|
29
29
|
person = FullContact.person(email: "brawest@gmail.com")
|
30
30
|
|
31
|
+
# Get information about an email address, organized by hashes vs. lists
|
32
|
+
person2 = FullContact.person(email: "bart@fullcontact.com", style: "dictionary")
|
33
|
+
|
34
|
+
# You can pass in any arbitrary parameters the Person API supports
|
35
|
+
person3 = FullContact.person(email: "bart@fullcontact.com", style: "dictionary", webhookUrl: "https://...")
|
36
|
+
|
31
37
|
# Get information about a twitter handle
|
32
|
-
|
38
|
+
person4 = FullContact.person(twitter: "brawest")
|
33
39
|
|
34
40
|
# Get information about a facebook username
|
35
|
-
|
41
|
+
person5 = FullContact.person(facebookUsername: "bart.lorang")
|
36
42
|
|
37
43
|
# Get information from a phone number
|
38
|
-
|
44
|
+
person6 = FullContact.person(phone:13037170414)
|
39
45
|
|
40
46
|
# Get information about a twitter and ensure a 30s socket open timeout and a 15s socket read timeout
|
41
47
|
# Can throw a Faraday::Error::TimeoutError if timeouts are exceeded
|
42
|
-
|
48
|
+
person7 = FullContact.person({:twitter => "brawest"}, {:request => {:timeout => 15, :open_timeout => 30}})
|
43
49
|
|
44
|
-
|
45
|
-
|
50
|
+
# Get person's family_name
|
51
|
+
puts person.contact_info.family_name
|
52
|
+
```
|
46
53
|
|
47
54
|
Contributions
|
48
55
|
-------------
|
@@ -50,9 +57,10 @@ Contributions
|
|
50
57
|
- Ian Fisher (i-taptera)
|
51
58
|
- Scott Watermasysk (scottwater)
|
52
59
|
- Stefano Fontanelli (stefanofontanelli)
|
60
|
+
- John Bachir (jjb)
|
53
61
|
|
54
62
|
Copyright
|
55
63
|
---------
|
56
|
-
Copyright (c)
|
64
|
+
Copyright (c) 2014 FullContact, Brandon West
|
57
65
|
|
58
66
|
See [LICENSE](https://github.com/brandonmwest/rainmaker/blob/master/LICENSE.md) for details.
|
data/fullcontact.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.add_development_dependency 'webmock', '~> 1.6'
|
12
12
|
s.add_development_dependency 'yard', '~> 0.7'
|
13
13
|
s.add_runtime_dependency 'hashie', '>= 2.0'
|
14
|
-
s.add_runtime_dependency 'faraday', '~> 0.
|
14
|
+
s.add_runtime_dependency 'faraday', '~> 0.9.0'
|
15
15
|
s.add_runtime_dependency 'faraday_middleware', '>= 0.9'
|
16
16
|
s.add_runtime_dependency 'multi_xml', '>= 0.5'
|
17
17
|
s.add_runtime_dependency 'rash', '>= 0.4'
|
data/lib/fullcontact/version.rb
CHANGED
@@ -4,7 +4,7 @@ describe FullContact::Client do
|
|
4
4
|
it "should connect using the endpoint configuration" do
|
5
5
|
client = FullContact::Client.new
|
6
6
|
endpoint = URI.parse(client.api_endpoint)
|
7
|
-
connection = "#{client.send(:connection).build_url(nil).to_s}
|
7
|
+
connection = "#{client.send(:connection).build_url(nil).to_s}"
|
8
8
|
connection.should == endpoint.to_s
|
9
9
|
end
|
10
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullcontact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: maruku
|
16
|
-
requirement: &
|
16
|
+
requirement: &70341113073320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.6'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70341113073320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: nokogiri
|
27
|
-
requirement: &
|
27
|
+
requirement: &70341113072760 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.4'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70341113072760
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70341113072180 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0.9'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70341113072180
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70341113071400 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '2.6'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70341113071400
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: simplecov
|
60
|
-
requirement: &
|
60
|
+
requirement: &70341113068420 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0.4'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70341113068420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: webmock
|
71
|
-
requirement: &
|
71
|
+
requirement: &70341113067920 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '1.6'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70341113067920
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: yard
|
82
|
-
requirement: &
|
82
|
+
requirement: &70341113067300 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0.7'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70341113067300
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: hashie
|
93
|
-
requirement: &
|
93
|
+
requirement: &70341113066220 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,21 +98,21 @@ dependencies:
|
|
98
98
|
version: '2.0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70341113066220
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: faraday
|
104
|
-
requirement: &
|
104
|
+
requirement: &70341113065220 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
109
|
+
version: 0.9.0
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70341113065220
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: faraday_middleware
|
115
|
-
requirement: &
|
115
|
+
requirement: &70341113064500 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0.9'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70341113064500
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: multi_xml
|
126
|
-
requirement: &
|
126
|
+
requirement: &70341113063500 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0.5'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70341113063500
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: rash
|
137
|
-
requirement: &
|
137
|
+
requirement: &70341113062780 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,7 +142,7 @@ dependencies:
|
|
142
142
|
version: '0.4'
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *70341113062780
|
146
146
|
description: A Ruby wrapper for the FullContact API
|
147
147
|
email:
|
148
148
|
- support@fullcontact.com
|
@@ -195,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
segments:
|
197
197
|
- 0
|
198
|
-
hash:
|
198
|
+
hash: -3782038561833846035
|
199
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
200
|
none: false
|
201
201
|
requirements:
|