campaign_cash 2.0.2 → 2.0.3

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.
@@ -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
- results.map{|c| self.create_detail(c)}
68
+ results = reply['results'].first
69
+ create_detail(results)
70
70
  end
71
71
  end
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module CampaignCash
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 2
10
- version: 2.0.2
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-13 00:00:00 -05:00
18
+ date: 2012-01-14 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency