fech 1.4 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -8,11 +8,12 @@ PATH
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
+ archive-tar-minitar (0.5.2)
11
12
  columnize (0.3.6)
12
13
  diff-lcs (1.1.2)
13
14
  fastercsv (1.5.5)
14
- iconv (0.1)
15
- linecache (0.43)
15
+ linecache19 (0.5.12)
16
+ ruby_core_source (>= 0.1.4)
16
17
  mocha (0.9.12)
17
18
  people (0.2.1)
18
19
  rake (0.8.7)
@@ -26,11 +27,16 @@ GEM
26
27
  rspec-expectations (2.6.0)
27
28
  diff-lcs (~> 1.1.2)
28
29
  rspec-mocks (2.6.0)
29
- ruby-debug (0.10.4)
30
- columnize (>= 0.1)
31
- ruby-debug-base (~> 0.10.4.0)
32
- ruby-debug-base (0.10.4)
33
- linecache (>= 0.3)
30
+ ruby-debug-base19 (0.11.25)
31
+ columnize (>= 0.3.1)
32
+ linecache19 (>= 0.5.11)
33
+ ruby_core_source (>= 0.1.4)
34
+ ruby-debug19 (0.11.6)
35
+ columnize (>= 0.3.1)
36
+ linecache19 (>= 0.5.11)
37
+ ruby-debug-base19 (>= 0.11.19)
38
+ ruby_core_source (0.1.5)
39
+ archive-tar-minitar (>= 0.5.2)
34
40
  yard (0.7.2)
35
41
 
36
42
  PLATFORMS
@@ -39,12 +45,11 @@ PLATFORMS
39
45
  DEPENDENCIES
40
46
  bundler
41
47
  fech!
42
- iconv
43
- linecache (= 0.43)
48
+ linecache19
44
49
  mocha
45
50
  rake (= 0.8.7)
46
51
  rcov
47
52
  rdoc
48
53
  rspec (~> 2.6)
49
- ruby-debug
54
+ ruby-debug19
50
55
  yard
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Fech makes it easy to parse electronic campaign finance filings[http://www.fec.gov/finance/disclosure/efile_search.shtml] by candidates, parties and political action committees from the Federal Election Commission. It lets you access filing attributes the same way regardless of filing version, and works as a framework for cleaning and filing data. Fech is an open source project of The New York Times, but contributions from anyone interested in working with F.E.C. filings are greatly appreciated.
8
8
 
9
- Latest version: 1.3.2
9
+ Latest version: 1.4.1
10
10
 
11
11
  Fech is tested under Ruby versions 1.8.7, 1.9.2 and 1.9.3.
12
12
 
@@ -16,6 +16,7 @@ Can be found at Fech's Github page[http://nytimes.github.com/Fech/].
16
16
 
17
17
  == News
18
18
 
19
+ * May 22, 2013: Version 1.4.1 released. Bugfix to add version 6.2 to F5 filing mappings.
19
20
  * April 18, 2013: Version 1.4 released. Adds support for unofficial Senate electronic filings.
20
21
  * March 26, 2013: Version 1.3.2 released. Bugfix for F99 filing encoding issues. Thanks for the patch, @jgillum.
21
22
  * Dec. 11, 2012: Versions 1.3, 1.3.1 released. Adds support for F13 filings from inaugural committees and fixes an encoding bug.
@@ -82,7 +82,7 @@ module Fech
82
82
  '^5.3|5.2|5.1|5.0|3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip_code, :committee_type, :committee_type_description, :report_code, :coverage_from_date, :coverage_through_date, :col_a_cash_on_hand_beginning_reporting_period, :col_a_total_receipts, :col_a_subtotal, :col_a_total_disbursements, :col_a_cash_on_hand_close_of_period, :col_a_debts_to, :col_a_debts_by, :col_a_convention_expenditures, :col_a_convention_refunds, :col_a_expenditures_subject_to_limits, :col_a_prior_expenditures_subject_to_limits, :col_a_total_expenditures_subject_to_limits, :col_a_federal_funds, :col_a_contributions_itemized, :col_a_contributions_unitemized, :col_a_contributions_subtotal, :col_b_transfers_from_affiliated, :col_a_loans_received, :col_a_loan_repayments_received, :col_a_loan_receipts_subtotal, :col_a_convention_refunds_itemized, :col_a_convention_refunds_unitemized, :col_a_convention_refunds_subtotal, :col_a_other_refunds_itemized, :col_a_other_refunds_unitemized, :col_a_other_refunds_subtotal, :col_a_other_income_itemized, :col_a_other_income_unitemized, :col_a_other_income_subtotal, :col_a_total_receipts, :col_a_convention_expenses_itemized, :col_a_convention_expenses_unitemized, :col_a_convention_expenses_subtotal, :col_a_transfers_to_affiliated, :col_a_loans_made, :col_a_loan_repayments_made, :col_a_loan_disbursements_subtotal, :col_a_other_disbursements_itemized, :col_a_other_disbursements_unitemized, :col_a_other_disbursements_subtotal, :col_a_total_disbursements, :col_b_cash_on_hand_beginning_year, :col_b_beginning_year, :col_b_total_receipts, :col_b_subtotal, :col_b_total_disbursements, :col_b_cash_on_hand_close_of_period, :col_b_convention_expenditures, :col_b_convention_refunds, :col_b_expenditures_subject_to_limits, :col_b_prior_expendiutres_subject_to_limits, :col_b_total_expenditures_subject_to_limits, :col_b_federal_funds, :col_b_contributions_subtotal, :col_b_transfers_from_affiliated, :col_b_loan_receipts_subtotal, :col_b_convention_refunds_subtotal, :col_b_other_refunds_subtotal, :col_b_other_income_subtotal, :col_b_total_receipts, :col_b_convention_expenses_subtotal, :col_b_transfers_to_affiliated, :col_b_loan_disbursements_subtotal, :col_b_other_disbursements_subtotal, :col_b_total_disbursements, :treasurer_name, :date_signed],
83
83
  },
84
84
  "^f5[na]" => {
85
- '^8.0|7.0|6.4|6.3' => [:form_type, :filer_committee_id_number, :entity_type, :organization_name, :individual_last_name, :individual_first_name, :individual_middle_name, :individual_prefix, :individual_suffix, :change_of_address, :street_1, :street_2, :city, :state, :zip_code, :qualified_nonprofit, :individual_employer, :individual_occupation, :report_code, :report_type, :coverage_from_date, :coverage_through_date, :total_contribution, :total_independent_expenditure, :person_completing_last_name, :person_completing_first_name, :person_completing_middle_name, :person_completing_prefix, :person_completing_suffix, :date_signed],
85
+ '^8.0|7.0|6.4|6.3|6.2' => [:form_type, :filer_committee_id_number, :entity_type, :organization_name, :individual_last_name, :individual_first_name, :individual_middle_name, :individual_prefix, :individual_suffix, :change_of_address, :street_1, :street_2, :city, :state, :zip_code, :qualified_nonprofit, :individual_employer, :individual_occupation, :report_code, :report_type, :coverage_from_date, :coverage_through_date, :total_contribution, :total_independent_expenditure, :person_completing_last_name, :person_completing_first_name, :person_completing_middle_name, :person_completing_prefix, :person_completing_suffix, :date_signed],
86
86
  '^5.3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip_code, :change_of_address, :qualified_nonprofit, :individual_employer, nil, :report_code, nil, nil, nil, :coverage_from_date, :coverage_through_date, :total_contribution, :total_independent_expenditure, :person_completing_name, :date_signed, nil, nil, nil, :report_type],
87
87
  '^5.2|5.1|5.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip_code, :change_of_address, :qualified_nonprofit, :individual_employer, :individual_occupation, :report_code, :report_pgi, :election_date, :election_state, :coverage_from_date, :coverage_through_date, :total_contribution, :total_independent_expenditure, :person_completing_name, :date_signed, :date_notarized, :date_notary_commission_expires, :notary_name, :report_type],
88
88
  '^3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip_code, :change_of_address, :qualified_nonprofit, :individual_employer, :individual_occupation, :report_code, :report_pgi, :election_date, :election_state, :coverage_from_date, :coverage_through_date, :total_contribution, :total_independent_expenditure, :person_completing_name, :date_signed, :date_notarized, :date_notary_commission_expires, :notary_name],
data/lib/fech/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fech
2
- VERSION = "1.4"
2
+ VERSION = "1.4.1"
3
3
  end
data/sources/F5.csv CHANGED
@@ -1,4 +1,4 @@
1
- canonical,^8.0|7.0|6.4|6.3,,^5.3,,^5.2|5.1|5.0,,^3,
1
+ canonical,^8.0|7.0|6.4|6.3|6.2,,^5.3,,^5.2|5.1|5.0,,^3,
2
2
  form_type,1,FORM TYPE,1,FORM TYPE,1,FORM TYPE,1,FORM TYPE
3
3
  filer_committee_id_number,2,FILER COMMITTEE ID NUMBER,2,FILER FEC CMTE ID,2,FILER FEC CMTE ID,2,FILER FEC CMTE ID
4
4
  entity_type,3,ENTITY TYPE,,,,,,
metadata CHANGED
@@ -1,14 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fech
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 4
9
- version: "1.4"
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Michael Strickland
13
9
  - Evan Carmi
14
10
  - Aaron Bycoffe
@@ -16,191 +12,137 @@ authors:
16
12
  autorequire:
17
13
  bindir: bin
18
14
  cert_chain: []
19
-
20
- date: 2013-04-18 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
15
+ date: 2013-05-22 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
23
18
  name: fastercsv
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirement: &2152255280 !ruby/object:Gem::Requirement
26
20
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '0'
34
25
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: people
38
26
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: *2152255280
28
+ - !ruby/object:Gem::Dependency
29
+ name: people
30
+ requirement: &2152254740 !ruby/object:Gem::Requirement
40
31
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
48
36
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: linecache
52
37
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ version_requirements: *2152254740
39
+ - !ruby/object:Gem::Dependency
40
+ name: ruby-debug19
41
+ requirement: &2152254180 !ruby/object:Gem::Requirement
54
42
  none: false
55
- requirements:
56
- - - "="
57
- - !ruby/object:Gem::Version
58
- hash: 93
59
- segments:
60
- - 0
61
- - 43
62
- version: "0.43"
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
63
47
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: ruby-debug
67
48
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *2152254180
50
+ - !ruby/object:Gem::Dependency
51
+ name: linecache19
52
+ requirement: &2152253660 !ruby/object:Gem::Requirement
69
53
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
77
58
  type: :development
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: iconv
81
59
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
91
- type: :development
92
- version_requirements: *id005
93
- - !ruby/object:Gem::Dependency
60
+ version_requirements: *2152253660
61
+ - !ruby/object:Gem::Dependency
94
62
  name: rake
95
- prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
63
+ requirement: &2152253020 !ruby/object:Gem::Requirement
97
64
  none: false
98
- requirements:
99
- - - "="
100
- - !ruby/object:Gem::Version
101
- hash: 49
102
- segments:
103
- - 0
104
- - 8
105
- - 7
65
+ requirements:
66
+ - - =
67
+ - !ruby/object:Gem::Version
106
68
  version: 0.8.7
107
69
  type: :development
108
- version_requirements: *id006
109
- - !ruby/object:Gem::Dependency
110
- name: rspec
111
70
  prerelease: false
112
- requirement: &id007 !ruby/object:Gem::Requirement
71
+ version_requirements: *2152253020
72
+ - !ruby/object:Gem::Dependency
73
+ name: rspec
74
+ requirement: &2152252400 !ruby/object:Gem::Requirement
113
75
  none: false
114
- requirements:
76
+ requirements:
115
77
  - - ~>
116
- - !ruby/object:Gem::Version
117
- hash: 15
118
- segments:
119
- - 2
120
- - 6
121
- version: "2.6"
78
+ - !ruby/object:Gem::Version
79
+ version: '2.6'
122
80
  type: :development
123
- version_requirements: *id007
124
- - !ruby/object:Gem::Dependency
125
- name: mocha
126
81
  prerelease: false
127
- requirement: &id008 !ruby/object:Gem::Requirement
82
+ version_requirements: *2152252400
83
+ - !ruby/object:Gem::Dependency
84
+ name: mocha
85
+ requirement: &2152251880 !ruby/object:Gem::Requirement
128
86
  none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 3
133
- segments:
134
- - 0
135
- version: "0"
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
136
91
  type: :development
137
- version_requirements: *id008
138
- - !ruby/object:Gem::Dependency
139
- name: bundler
140
92
  prerelease: false
141
- requirement: &id009 !ruby/object:Gem::Requirement
93
+ version_requirements: *2152251880
94
+ - !ruby/object:Gem::Dependency
95
+ name: bundler
96
+ requirement: &2152251200 !ruby/object:Gem::Requirement
142
97
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
150
102
  type: :development
151
- version_requirements: *id009
152
- - !ruby/object:Gem::Dependency
153
- name: rcov
154
103
  prerelease: false
155
- requirement: &id010 !ruby/object:Gem::Requirement
104
+ version_requirements: *2152251200
105
+ - !ruby/object:Gem::Dependency
106
+ name: rcov
107
+ requirement: &2152250400 !ruby/object:Gem::Requirement
156
108
  none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 3
161
- segments:
162
- - 0
163
- version: "0"
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
164
113
  type: :development
165
- version_requirements: *id010
166
- - !ruby/object:Gem::Dependency
167
- name: rdoc
168
114
  prerelease: false
169
- requirement: &id011 !ruby/object:Gem::Requirement
115
+ version_requirements: *2152250400
116
+ - !ruby/object:Gem::Dependency
117
+ name: rdoc
118
+ requirement: &2152265900 !ruby/object:Gem::Requirement
170
119
  none: false
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- hash: 3
175
- segments:
176
- - 0
177
- version: "0"
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
178
124
  type: :development
179
- version_requirements: *id011
180
- - !ruby/object:Gem::Dependency
181
- name: yard
182
125
  prerelease: false
183
- requirement: &id012 !ruby/object:Gem::Requirement
126
+ version_requirements: *2152265900
127
+ - !ruby/object:Gem::Dependency
128
+ name: yard
129
+ requirement: &2152265380 !ruby/object:Gem::Requirement
184
130
  none: false
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- hash: 3
189
- segments:
190
- - 0
191
- version: "0"
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
192
135
  type: :development
193
- version_requirements: *id012
194
- description: A Ruby library for interacting with electronic filings from the Federal Election Commission.
195
- email:
136
+ prerelease: false
137
+ version_requirements: *2152265380
138
+ description: A Ruby library for interacting with electronic filings from the Federal
139
+ Election Commission.
140
+ email:
196
141
  - dwillis@gmail.com
197
142
  executables: []
198
-
199
143
  extensions: []
200
-
201
144
  extra_rdoc_files: []
202
-
203
- files:
145
+ files:
204
146
  - .gitignore
205
147
  - .rspec
206
148
  - Gemfile
@@ -327,36 +269,26 @@ files:
327
269
  - tasks/fech.rake
328
270
  homepage: http://github.com/nytimes/fech
329
271
  licenses: []
330
-
331
272
  post_install_message:
332
273
  rdoc_options: []
333
-
334
- require_paths:
274
+ require_paths:
335
275
  - lib
336
- required_ruby_version: !ruby/object:Gem::Requirement
276
+ required_ruby_version: !ruby/object:Gem::Requirement
337
277
  none: false
338
- requirements:
339
- - - ">="
340
- - !ruby/object:Gem::Version
341
- hash: 3
342
- segments:
343
- - 0
344
- version: "0"
345
- required_rubygems_version: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ! '>='
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
346
283
  none: false
347
- requirements:
348
- - - ">="
349
- - !ruby/object:Gem::Version
350
- hash: 3
351
- segments:
352
- - 0
353
- version: "0"
284
+ requirements:
285
+ - - ! '>='
286
+ - !ruby/object:Gem::Version
287
+ version: '0'
354
288
  requirements: []
355
-
356
289
  rubyforge_project: fech
357
290
  rubygems_version: 1.8.17
358
291
  signing_key:
359
292
  specification_version: 3
360
293
  summary: Ruby library for parsing FEC filings.
361
294
  test_files: []
362
-