campaign_cash 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -2
- data/README.rdoc +2 -3
- data/campaign_cash.gemspec +2 -1
- data/lib/campaign_cash/independent_expenditure.rb +3 -2
- data/lib/campaign_cash/version.rb +1 -1
- metadata +24 -8
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
campaign_cash (
|
4
|
+
campaign_cash (2.0.7)
|
5
5
|
json
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
json (1.6.
|
10
|
+
json (1.6.5)
|
11
|
+
rake (0.8.7)
|
11
12
|
shoulda (2.11.3)
|
12
13
|
|
13
14
|
PLATFORMS
|
@@ -16,4 +17,5 @@ PLATFORMS
|
|
16
17
|
DEPENDENCIES
|
17
18
|
bundler (>= 1.0.0)
|
18
19
|
campaign_cash!
|
20
|
+
rake (= 0.8.7)
|
19
21
|
shoulda
|
data/README.rdoc
CHANGED
@@ -12,12 +12,11 @@ Simple ruby wrapper for The New York Times Campaign Finance API[http://developer
|
|
12
12
|
|
13
13
|
== News
|
14
14
|
|
15
|
+
* Jan. 24, 2012: Version 2.0.7 released. Added candidate_name attribute accessor to IndependentExpenditure objects.
|
15
16
|
* Jan. 19, 2012: Version 2.0.6 released. Added transaction_id param to IndependentExpenditure objects.
|
16
17
|
* Jan. 19, 2012: Version 2.0.5 released. Bugfix to add amendment param to IndependentExpenditure objects.
|
17
18
|
* Jan. 18, 2012: Version 2.0.4 released. Bugfix to handle offsets better.
|
18
19
|
* Jan. 14, 2012: Version 2.0.3 released. Bugfix so that President.detail returns 1 object, not an array.
|
19
|
-
* Jan. 13, 2012: Version 2.0.2 released. Bugfix to set offset=nil as default.
|
20
|
-
* Jan. 11, 2012: Version 2.0.1 released. Bugfix for some attributes on Filing class.
|
21
20
|
|
22
21
|
== INSTALL:
|
23
22
|
|
@@ -200,8 +199,8 @@ The IE responses also accept an optional offset argument, using multiples of 20.
|
|
200
199
|
== Authors
|
201
200
|
|
202
201
|
* Derek Willis, dwillis@nytimes.com
|
203
|
-
* Jason Holt, jjh@offensivepolitics.net
|
204
202
|
* Al Shaw, almshaw@gmail.com
|
203
|
+
* Jason Holt, jjh@offensivepolitics.net
|
205
204
|
|
206
205
|
== Copyright
|
207
206
|
|
data/campaign_cash.gemspec
CHANGED
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.required_rubygems_version = ">= 1.3.6"
|
16
16
|
s.rubyforge_project = "campaign_cash"
|
17
17
|
s.add_runtime_dependency "json"
|
18
|
-
|
18
|
+
|
19
|
+
s.add_development_dependency "rake", "0.8.7"
|
19
20
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
20
21
|
s.add_development_dependency "shoulda"
|
21
22
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CampaignCash
|
2
2
|
class IndependentExpenditure < Base
|
3
3
|
|
4
|
-
attr_reader :committee, :district, :state, :committee_name, :purpose, :candidate, :support_or_oppose, :date, :amount, :office, :amendment, :date_received, :payee, :fec_uri, :transaction_id
|
4
|
+
attr_reader :committee, :district, :state, :committee_name, :purpose, :candidate, :candidate_name, :support_or_oppose, :date, :amount, :office, :amendment, :date_received, :payee, :fec_uri, :transaction_id
|
5
5
|
|
6
6
|
def initialize(params={})
|
7
7
|
params.each_pair do |k,v|
|
@@ -24,7 +24,8 @@ module CampaignCash
|
|
24
24
|
:fec_uri => params['fec_uri'],
|
25
25
|
:date_received => date_parser(params['date_received']),
|
26
26
|
:amendment => params['amendment'],
|
27
|
-
:transaction_id => params['transaction_id']
|
27
|
+
:transaction_id => params['transaction_id'],
|
28
|
+
:candidate_name => params['candidate_name']
|
28
29
|
end
|
29
30
|
|
30
31
|
def self.latest(offset=nil)
|
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: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 7
|
10
|
+
version: 2.0.7
|
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-24 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -33,9 +33,25 @@ dependencies:
|
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: rake
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - "="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 49
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 8
|
47
|
+
- 7
|
48
|
+
version: 0.8.7
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: bundler
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
56
|
requirements:
|
41
57
|
- - ">="
|
@@ -47,11 +63,11 @@ dependencies:
|
|
47
63
|
- 0
|
48
64
|
version: 1.0.0
|
49
65
|
type: :development
|
50
|
-
version_requirements: *
|
66
|
+
version_requirements: *id003
|
51
67
|
- !ruby/object:Gem::Dependency
|
52
68
|
name: shoulda
|
53
69
|
prerelease: false
|
54
|
-
requirement: &
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
55
71
|
none: false
|
56
72
|
requirements:
|
57
73
|
- - ">="
|
@@ -61,7 +77,7 @@ dependencies:
|
|
61
77
|
- 0
|
62
78
|
version: "0"
|
63
79
|
type: :development
|
64
|
-
version_requirements: *
|
80
|
+
version_requirements: *id004
|
65
81
|
description: A client for The New York Times Campaign Finance API
|
66
82
|
email:
|
67
83
|
- dwillis@nytimes.com
|