linkedin 0.1.5 → 0.1.6
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.
- data/VERSION +1 -1
- data/lib/linked_in/profile.rb +1 -1
- data/lib/linked_in/update.rb +1 -1
- data/test/client_test.rb +7 -0
- data/test/fixtures/network_statuses.xml +20 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/lib/linked_in/profile.rb
CHANGED
@@ -13,7 +13,7 @@ module LinkedIn
|
|
13
13
|
xml_reader :num_recommenders, :as => Integer
|
14
14
|
xml_reader :current_status
|
15
15
|
xml_reader :current_status_timestamp
|
16
|
-
xml_reader :connections, :as => [Profile]
|
16
|
+
xml_reader :connections, :as => [Profile], :from => "connections/person"
|
17
17
|
xml_reader :summary
|
18
18
|
xml_reader :specialties
|
19
19
|
xml_reader :proposal_comments
|
data/lib/linked_in/update.rb
CHANGED
data/test/client_test.rb
CHANGED
@@ -29,6 +29,9 @@ class ClientTest < Test::Unit::TestCase
|
|
29
29
|
education.start_year.should == 1994
|
30
30
|
education.end_month.should == 5
|
31
31
|
education.end_year.should == 1998
|
32
|
+
|
33
|
+
p.connections.size.should == 146
|
34
|
+
p.connections.first.first_name.should == "Ali"
|
32
35
|
end
|
33
36
|
|
34
37
|
should "retrieve a profile for a member by id" do
|
@@ -102,7 +105,11 @@ class ClientTest < Test::Unit::TestCase
|
|
102
105
|
should "retrieve status updates for the authenticated user's network" do
|
103
106
|
stub_get("/v1/people/~/network?type=STAT", "network_statuses.xml")
|
104
107
|
stats = @linkedin.network_statuses
|
108
|
+
stats.updates.first.profile.id.should == "19408512"
|
105
109
|
stats.updates.first.profile.first_name.should == 'Vahid'
|
110
|
+
stats.updates.first.profile.connections.first.id.should == "28072758"
|
111
|
+
stats.updates.first.profile.connections.first.last_name.should == 'Varone'
|
112
|
+
|
106
113
|
end
|
107
114
|
|
108
115
|
should "retrieve network updates" do
|
@@ -15,6 +15,26 @@
|
|
15
15
|
<first-name>Vahid</first-name>
|
16
16
|
<last-name>Behzadi (vahid@cybercoders.com)</last-name>
|
17
17
|
<headline>Executive Recruiter at CyberCoders - Recruiting Manager</headline>
|
18
|
+
<connections total="1">
|
19
|
+
<person>
|
20
|
+
<id>28072758</id>
|
21
|
+
<first-name>Linda</first-name>
|
22
|
+
<last-name>Varone</last-name>
|
23
|
+
<headline>Best of Boston 2007 Feng Shui, Interior Design, Professional Speaker, Owner of Nurturing Spaces</headline>
|
24
|
+
<api-standard-profile-request>
|
25
|
+
<url>http://api.linkedin.com/v1/people/28072758:full</url>
|
26
|
+
<headers total="1">
|
27
|
+
<http-header>
|
28
|
+
<name>x-li-auth-token</name>
|
29
|
+
<value>name:R5H-</value>
|
30
|
+
</http-header>
|
31
|
+
</headers>
|
32
|
+
</api-standard-profile-request>
|
33
|
+
<site-standard-profile-request>
|
34
|
+
<url>http://www.linkedin.com/profile?viewProfile=&key=28072758&authToken=R5H-&authType=name&trk=api_1025_LUCIAN</url>
|
35
|
+
</site-standard-profile-request>
|
36
|
+
</person>
|
37
|
+
</connections>
|
18
38
|
<current-status>said: Etsy Dallas Jingle Bash – Shop local for the Holidays http://ping.fm/0P80n(I+live+in+Dallas)</current-status>
|
19
39
|
<api-standard-profile-request>
|
20
40
|
<url>http://api.linkedin.com/v1/people/Hz_9mRaUxh:full</url>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkedin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wynn Netherland
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-20 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|