campaign_cash 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/campaign_cash/president.rb +2 -2
- data/lib/campaign_cash/version.rb +1 -1
- metadata +4 -4
@@ -65,8 +65,8 @@ module CampaignCash
|
|
65
65
|
# Only returns candidates tracked by The New York Times.
|
66
66
|
def self.detail(id, cycle=CURRENT_CYCLE)
|
67
67
|
reply = invoke("#{cycle}/president/candidates/#{id}", {})
|
68
|
-
results = reply['results']
|
69
|
-
|
68
|
+
results = reply['results'].first
|
69
|
+
create_detail(results)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: campaign_cash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 3
|
10
|
+
version: 2.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Derek Willis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-14 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|