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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f3b1de65d4075a661491c7b39845b149389069b
4
- data.tar.gz: 9400600b140cb97b32b3d47c2739605f490ff7fc
3
+ metadata.gz: 2c4d8ab1160b2cf5713edb1d378016451a2c66bf
4
+ data.tar.gz: dd0222455d3f6e2614992303d453ac1e7e7565e8
5
5
  SHA512:
6
- metadata.gz: 092c6bae7e00ac042a0e31fd5fcb3cce57c4d256210bfd0495850547c3fd1c91919ce4eba0138e58d7ec1f7ab89654c709df6642bb819c407b274f2b125101e1
7
- data.tar.gz: 047fae4dd3ea84fd7baaae4d34a2747cf7ec90f0c162d0c570a9657445433ffaf533fe30bd2c57ae7c8bb9c424c95a65824b2841eeba2c2b9f1795efed1cfcf5
6
+ metadata.gz: de92742d1995c1adce8b163821da42e87418983f0fb80d533308867e7fc64579fdcf548d8f84cfb00ec12ebc5ae1b9e32f929c9db4f1cd29d6de20bcd7d7a571
7
+ data.tar.gz: 30d7752406ea5aa06e16eb4c0345be279e8fa94798fd995e72966742dc297e02e96aa1ec2dc650d97dcc13edcc5a4e674075f509d025655e22d9b71c29c1d460
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
  # Specify your gem's dependencies in campaign_cash.gemspec
3
- gemspec
3
+ gemspec
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.3)
11
- i18n (~> 0.6, >= 0.6.4)
12
- minitest (~> 4.2)
13
- multi_json (~> 1.3)
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 (~> 0.3.37)
16
- atomic (1.1.15)
15
+ tzinfo (~> 1.1)
17
16
  i18n (0.6.9)
18
17
  json (1.8.1)
19
- minitest (4.3.2)
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.6)
26
- shoulda-matchers (2.5.0)
23
+ shoulda-context (1.2.1)
24
+ shoulda-matchers (2.6.1)
27
25
  activesupport (>= 3.0.0)
28
- thread_safe (0.2.0)
29
- atomic (>= 1.1.7, < 2)
30
- tzinfo (0.3.38)
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,3 +1,3 @@
1
1
  module CampaignCash
2
- VERSION = "2.7"
2
+ VERSION = "2.7.1"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestCandidate < Test::Unit::TestCase
3
+ class TestCampaignCash::TestCandidate < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "Candidate.create" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestCommittee < Test::Unit::TestCase
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
- reply = Base.invoke('2010/committees/search', {:query => "Boeing"})
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
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestElectioneeringCommunication < Test::Unit::TestCase
3
+ class TestCampaignCash::TestElectioneeringCommunication < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "get electioneering communications" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestFiling < Test::Unit::TestCase
3
+ class TestCampaignCash::TestFiling < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "a day" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestFilingSummary < Test::Unit::TestCase
3
+ class TestCampaignCash::TestFilingSummary < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "filing summaries" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestForm < Test::Unit::TestCase
3
+ class TestCampaignCash::TestForm < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "form types" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestIndependentExpenditure < Test::Unit::TestCase
3
+ class TestCampaignCash::TestIndependentExpenditure < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "latest independent expenditures" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestIndividualContribution < Test::Unit::TestCase
3
+ class TestCampaignCash::TestIndividualContribution < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "get contributions" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestLateContribution < Test::Unit::TestCase
3
+ class TestCampaignCash::TestLateContribution < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "get late contributions" do
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestCampaignCash::TestPresident < Test::Unit::TestCase
3
+ class TestCampaignCash::TestPresident < Minitest::Test
4
4
  include CampaignCash
5
5
 
6
6
  context "President.summary" do
data/test/test_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'test/unit'
1
+ require 'minitest/autorun'
2
2
  require 'rubygems'
3
3
  require 'shoulda'
4
4
  require 'json'
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: '2.7'
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-03-03 00:00:00.000000000 Z
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.0
127
+ rubygems_version: 2.2.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Following the money.