campaign_cash 2.9 → 2.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faa649e8fd07301e1383637f0e13c3e97d6a2e0b
4
- data.tar.gz: 0d0b5dac0b7c23c4f0097e87997bc0d1fc502475
3
+ metadata.gz: 670b760bf811a08f183288259ac62d3b9e1875c0
4
+ data.tar.gz: ebd83be0bb7823016e50a1a88bbcc3a96d66fd7c
5
5
  SHA512:
6
- metadata.gz: 517d64d5a76bbbffb43a2d4c7565a895dc9f9d430a688a967b3cf6ec74e25f514303ebe6c99b85d8268e1c962549c3f0f5f290693ce7bd44eb61d9d4c3ef1a1f
7
- data.tar.gz: a9494e4f77113eec1ffb4f110e7efcf232bc2511b2b6dd16272e216498176f1e33826848ad38db801c0fe309ace9abe196f53dd7b66fd2379359e4beeec564ed
6
+ metadata.gz: f91b11094a5b16ea8aea8a678f1b76820633c106a937388c3411a3d695564bbdad09edfc1e0ac09b648d100694d32030a05400d50b62fdb03c2bc413b4ef5f5b
7
+ data.tar.gz: c17311ef3bb620aa8c668dd62ed936a70278e8ec809d7b48adba68dd5417b9aac687dddabf3315eab0876ad2be7c0c8546b6a2b0ab6ba3b1306a96be5cb56b0f
data/README.rdoc CHANGED
@@ -12,6 +12,7 @@ Simple ruby wrapper for portions of The New York Times Campaign Finance API[http
12
12
 
13
13
  == News
14
14
 
15
+ * July 28, 2015: Version 2.9.1 released. Patch for Committee#filings
15
16
  * July 24, 2015: Version 2.9 released. Made Filing#search cycle-specific.
16
17
  * June 15, 2015: Version 2.8.1 released. Bumped cycle to 2016 and fixed tests.
17
18
  * Dec. 16, 2014: Version 2.8 released. Added Filing#search method to support name or id searches.
@@ -43,9 +43,9 @@ module CampaignCash
43
43
  D: 'Leadership PAC'
44
44
  }
45
45
 
46
- attr_reader :name, :id, :state, :district, :party, :fec_uri, :candidate,
46
+ attr_reader :name, :id, :state, :district, :party, :fec_uri, :candidate,
47
47
  :city, :address, :state, :zip, :relative_uri, :sponsor_name,
48
- :total_receipts, :total_contributions, :total_from_individuals,
48
+ :total_receipts, :total_contributions, :total_from_individuals,
49
49
  :total_from_pacs, :candidate_loans, :total_disbursements,
50
50
  :total_refunds, :debts_owed, :begin_cash, :end_cash,
51
51
  :date_coverage_to, :date_coverage_from, :other_cycles, :super_pac, :filings,
@@ -139,25 +139,26 @@ module CampaignCash
139
139
  def self.search(name, cycle=CURRENT_CYCLE, offset=nil)
140
140
  name = name.gsub(/ /,"+")
141
141
  reply = invoke("#{cycle}/committees/search", {query: name, offset: offset})
142
- results = reply['results']
142
+ results = reply['results']
143
143
  results.map{|c| create_from_search_results(c)}
144
144
  end
145
145
 
146
146
  def self.latest(cycle=CURRENT_CYCLE)
147
147
  reply = invoke("#{cycle}/committees/new",{})
148
- results = reply['results']
149
- results.map{|c| create_from_search_results(c)}
148
+ results = reply['results']
149
+ results.map{|c| create_from_search_results(c)}
150
150
  end
151
151
 
152
152
  def self.superpacs(cycle=CURRENT_CYCLE, offset=nil)
153
153
  reply = invoke("#{cycle}/committees/superpacs",{offset: offset})
154
- results = reply['results']
154
+ results = reply['results']
155
155
  results.map{|c| create_from_search_results(c)}
156
156
  end
157
157
 
158
158
  def filings(cycle=CURRENT_CYCLE, offset=nil)
159
159
  reply = Base.invoke("#{cycle}/committees/#{id}/filings",{offset: offset})
160
- results = reply['results']
160
+ results = reply['results']
161
+ results.map{|r| r["filing_id"] = r["id"]}
161
162
  results.map{|c| Filing.create(c)}
162
163
  end
163
164
 
@@ -1,3 +1,3 @@
1
1
  module CampaignCash
2
- VERSION = "2.9"
2
+ VERSION = "2.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: campaign_cash
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.9'
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Willis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-24 00:00:00.000000000 Z
11
+ date: 2015-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json