linkedin 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,8 +5,11 @@ module LinkedIn
5
5
  xml_reader :id
6
6
  xml_reader :title
7
7
  xml_reader :summary
8
- xml_reader :start_year, :from => "start-date/year"
9
- xml_reader :start_month, :from => "start-date/month"
8
+ xml_reader :start_year, :from => "start-date/year", :as => Integer
9
+ xml_reader :start_month, :from => "start-date/month", :as => Integer
10
+ xml_reader :end_year, :from => "end-date/year", :as => Integer
11
+ xml_reader :end_month, :from => "end-date/month", :as => Integer
12
+ xml_reader :is_current
10
13
  xml_reader :company, :as => Company
11
14
  end
12
15
  end
@@ -17,6 +17,12 @@ class ClientTest < Test::Unit::TestCase
17
17
  p.last_name.should == 'Netherland'
18
18
  p.positions.size.should == 4
19
19
  p.positions.first.company.name.should == 'Orrka'
20
+
21
+ hp = p.positions[2]
22
+ hp.start_month.should == 10
23
+ hp.start_year.should == 2004
24
+ hp.end_month.should == 6
25
+ hp.end_year.should == 2007
20
26
  end
21
27
 
22
28
  should "retrieve a profile for a member by id" do
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.3
4
+ version: 0.1.4
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: 2009-12-24 00:00:00 -06:00
12
+ date: 2010-01-13 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency