campaign_cash 2.7 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +12 -14
- data/lib/campaign_cash/committee.rb +1 -0
- data/lib/campaign_cash/version.rb +1 -1
- data/test/campaign_cash/test_candidate.rb +1 -1
- data/test/campaign_cash/test_committee.rb +2 -4
- data/test/campaign_cash/test_electioneering_communication.rb +1 -1
- data/test/campaign_cash/test_filing.rb +1 -1
- data/test/campaign_cash/test_filing_summary.rb +1 -1
- data/test/campaign_cash/test_form.rb +1 -1
- data/test/campaign_cash/test_independent_expenditure.rb +1 -1
- data/test/campaign_cash/test_individual_contribution.rb +1 -1
- data/test/campaign_cash/test_late_contribution.rb +1 -1
- data/test/campaign_cash/test_president.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c4d8ab1160b2cf5713edb1d378016451a2c66bf
|
4
|
+
data.tar.gz: dd0222455d3f6e2614992303d453ac1e7e7565e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de92742d1995c1adce8b163821da42e87418983f0fb80d533308867e7fc64579fdcf548d8f84cfb00ec12ebc5ae1b9e32f929c9db4f1cd29d6de20bcd7d7a571
|
7
|
+
data.tar.gz: 30d7752406ea5aa06e16eb4c0345be279e8fa94798fd995e72966742dc297e02e96aa1ec2dc650d97dcc13edcc5a4e674075f509d025655e22d9b71c29c1d460
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,33 +1,31 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
campaign_cash (2.7)
|
4
|
+
campaign_cash (2.7.1)
|
5
5
|
json
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (4.0
|
11
|
-
i18n (~> 0.6, >= 0.6.
|
12
|
-
|
13
|
-
|
10
|
+
activesupport (4.1.0)
|
11
|
+
i18n (~> 0.6, >= 0.6.9)
|
12
|
+
json (~> 1.7, >= 1.7.7)
|
13
|
+
minitest (~> 5.1)
|
14
14
|
thread_safe (~> 0.1)
|
15
|
-
tzinfo (~>
|
16
|
-
atomic (1.1.15)
|
15
|
+
tzinfo (~> 1.1)
|
17
16
|
i18n (0.6.9)
|
18
17
|
json (1.8.1)
|
19
|
-
minitest (
|
20
|
-
multi_json (1.8.4)
|
18
|
+
minitest (5.3.3)
|
21
19
|
rake (10.1.1)
|
22
20
|
shoulda (3.5.0)
|
23
21
|
shoulda-context (~> 1.0, >= 1.0.1)
|
24
22
|
shoulda-matchers (>= 1.4.1, < 3.0)
|
25
|
-
shoulda-context (1.1
|
26
|
-
shoulda-matchers (2.
|
23
|
+
shoulda-context (1.2.1)
|
24
|
+
shoulda-matchers (2.6.1)
|
27
25
|
activesupport (>= 3.0.0)
|
28
|
-
thread_safe (0.
|
29
|
-
|
30
|
-
|
26
|
+
thread_safe (0.3.3)
|
27
|
+
tzinfo (1.1.0)
|
28
|
+
thread_safe (~> 0.1)
|
31
29
|
|
32
30
|
PLATFORMS
|
33
31
|
ruby
|
@@ -137,6 +137,7 @@ module CampaignCash
|
|
137
137
|
end
|
138
138
|
|
139
139
|
def self.search(name, cycle=CURRENT_CYCLE, offset=nil)
|
140
|
+
name = name.gsub(/ /,"+")
|
140
141
|
reply = invoke("#{cycle}/committees/search", {query: name, offset: offset})
|
141
142
|
results = reply['results']
|
142
143
|
results.map{|c| create_from_search_results(c)}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
class TestCampaignCash::TestCommittee < Test
|
3
|
+
class TestCampaignCash::TestCommittee < Minitest::Test
|
4
4
|
include CampaignCash
|
5
5
|
|
6
6
|
context "Committee.create_from_api" do
|
@@ -23,9 +23,7 @@ class TestCampaignCash::TestCommittee < Test::Unit::TestCase
|
|
23
23
|
|
24
24
|
context "Committee search" do
|
25
25
|
setup do
|
26
|
-
|
27
|
-
results = reply['results']
|
28
|
-
@committees = results.map{|c| Committee.create_from_search_results(c)}
|
26
|
+
@committees = Committee.search("Obama for America", 2012)
|
29
27
|
end
|
30
28
|
|
31
29
|
should "return two committee objects" do
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: campaign_cash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.7.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: 2014-
|
11
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 1.0.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: shoulda
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: A client for The New York Times Campaign Finance API
|
@@ -73,7 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
77
77
|
- Gemfile
|
78
78
|
- Gemfile.lock
|
79
79
|
- LICENSE
|
@@ -114,17 +114,17 @@ require_paths:
|
|
114
114
|
- lib
|
115
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 1.3.6
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project: campaign_cash
|
127
|
-
rubygems_version: 2.2.
|
127
|
+
rubygems_version: 2.2.1
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Following the money.
|