fech 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +17 -0
- data/Rakefile +1 -0
- data/lib/fech/filing.rb +2 -1
- data/lib/fech/rendered_maps.rb +4 -4
- data/lib/fech/version.rb +1 -1
- data/sources/F3P.csv +4 -4
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -10,6 +10,7 @@ Fech supports several FEC form types, including all F3P (presidential filings),
|
|
10
10
|
|
11
11
|
== News
|
12
12
|
|
13
|
+
* Nov. 22, 2011: Version 0.5.0 released. Layouts for form 3X added, for parsing filings from non-candidate committees.
|
13
14
|
* Nov. 13, 2011: Version 0.3.0 released. Layouts for forms 24, 5, 56 and 57 added, for parsing independent expenditure filings.
|
14
15
|
* Nov. 4, 2011: Version 0.2.1 released. Bug-fix release to address a problem with the :include option for selecting only certain columns. Thanks to Aaron Bycoffe for the report and patch.
|
15
16
|
|
@@ -151,6 +152,22 @@ You can allow any field (converted, combined, or untranslated) to have an arbitr
|
|
151
152
|
|
152
153
|
We found it useful to be able to access attributes using the name the fields in our database they correspond to.
|
153
154
|
|
155
|
+
=== Quote character
|
156
|
+
|
157
|
+
By default, Fech, like FasterCSV and CSV, assumes that double quotes are used around values that contain reserved characters.
|
158
|
+
|
159
|
+
However, the parsing of some filings might fail because of the existence of the default quote character in a field. To get around this, you may pass a :quote_char argument, and Fech will use it to parse the file.
|
160
|
+
|
161
|
+
For example, filing No. 756218 has the following value in the field for the contributor's last name:
|
162
|
+
|
163
|
+
O""Leary
|
164
|
+
|
165
|
+
Attempting to parse this filing with Fech fails because of illegal quoting.
|
166
|
+
|
167
|
+
Since the FEC doesn't use a quote character in its electronic filings, we don't need a quote character at all. One way to achieve this is to use "\0" (a null ASCII character) as :quote_char:
|
168
|
+
|
169
|
+
filing = Fech::Filing.new(756218, :quote_char => "\0")
|
170
|
+
|
154
171
|
== Warnings
|
155
172
|
|
156
173
|
Filings can contain data that is incomplete or wrong: contributions might be in excess of legal limits, or data may have just been entered incorrectly. While some of these mistakes are corrected in later filing amendments, you should be aware that the data is not perfect. Fech will only return data as accurate as the source.
|
data/Rakefile
CHANGED
data/lib/fech/filing.rb
CHANGED
@@ -19,6 +19,7 @@ module Fech
|
|
19
19
|
@filing_id = filing_id
|
20
20
|
@download_dir = opts[:download_dir] || Dir.tmpdir
|
21
21
|
@translator = Fech::Translator.new(:include => opts[:translate])
|
22
|
+
@quote_char = opts[:quote_char] || '"'
|
22
23
|
end
|
23
24
|
|
24
25
|
# Saves the filing data from the FEC website into the default download
|
@@ -227,7 +228,7 @@ module Fech
|
|
227
228
|
raise "File #{file_path} does not exist. Try invoking the .download method on this Filing object."
|
228
229
|
end
|
229
230
|
c = 0
|
230
|
-
Fech::Csv.foreach(file_path, :col_sep => delimiter, :skip_blanks => true) do |row|
|
231
|
+
Fech::Csv.foreach(file_path, :col_sep => delimiter, :quote_char => @quote_char, :skip_blanks => true) do |row|
|
231
232
|
if opts[:with_index]
|
232
233
|
yield [row, c]
|
233
234
|
c += 1
|
data/lib/fech/rendered_maps.rb
CHANGED
@@ -16,10 +16,10 @@ module Fech
|
|
16
16
|
'^3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, nil, :date_signed],
|
17
17
|
},
|
18
18
|
"(^f3p$)|(^f3p[^s|3])" => {
|
19
|
-
'^7.0|8.0' => [:form_type, :filer_committee_id_number, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individuals_itemized, :col_a_individuals_unitemized, :col_a_individual_contribution_total, :
|
20
|
-
'^6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individual_contribution_total, :
|
21
|
-
'^5.3|5.2' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :change_of_address, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individual_contribution_total, :
|
22
|
-
'^5.1|5.0|3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :change_of_address, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individual_contribution_total, :
|
19
|
+
'^7.0|8.0' => [:form_type, :filer_committee_id_number, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individuals_itemized, :col_a_individuals_unitemized, :col_a_individual_contribution_total, :col_a_political_party_committees_receipts, :col_a_other_political_committees_pacs, :col_a_the_candidate, :col_a_total_contributions, :col_a_transfers_from_aff_other_party_cmttees, :col_a_received_from_or_guaranteed_by_cand, :col_a_other_loans, :col_a_total_loans, :col_a_operating, :col_a_fundraising, :col_a_legal_and_accounting, :col_a_total_offsets_to_expenditures, :col_a_other_receipts, :col_a_total_receipts, :col_a_operating_expenditures, :col_a_transfers_to_other_authorized_committees, :col_a_fundraising_disbursements, :col_a_exempt_legal_accounting_disbursement, :col_a_made_or_guaranteed_by_candidate, :col_a_other_repayments, :col_a_total_loan_repayments_made, :col_a_individuals, :col_a_political_party_committees_refunds, :col_a_other_political_committees, :col_a_total_contributions_refunds, :col_a_other_disbursements, :col_a_total_disbursements, :col_a_items_on_hand_to_be_liquidated, :col_a_alabama, :col_a_alaska, :col_a_arizona, :col_a_arkansas, :col_a_california, :col_a_colorado, :col_a_connecticut, :col_a_delaware, :col_a_dist_of_columbia, :col_a_florida, :col_a_georgia, :col_a_hawaii, :col_a_idaho, :col_a_illinois, :col_a_indiana, :col_a_iowa, :col_a_kansas, :col_a_kentucky, :col_a_louisiana, :col_a_maine, :col_a_maryland, :col_a_massachusetts, :col_a_michigan, :col_a_minnesota, :col_a_mississippi, :col_a_missouri, :col_a_montana, :col_a_nebraska, :col_a_nevada, :col_a_new_hampshire, :col_a_new_jersey, :col_a_new_mexico, :col_a_new_york, :col_a_north_carolina, :col_a_north_dakota, :col_a_ohio, :col_a_oklahoma, :col_a_oregon, :col_a_pennsylvania, :col_a_rhode_island, :col_a_south_carolina, :col_a_south_dakota, :col_a_tennessee, :col_a_texas, :col_a_utah, :col_a_vermont, :col_a_virginia, :col_a_washington, :col_a_west_virginia, :col_a_wisconsin, :col_a_wyoming, :col_a_puerto_rico, :col_a_guam, :col_a_virgin_islands, :col_a_totals, :col_b_federal_funds, :col_b_individuals_itemized, :col_b_individuals_unitemized, :col_b_individual_contribution_total, :col_b_political_party_committees_receipts, :col_b_other_political_committees_pacs, :col_b_the_candidate, :col_b_total_contributions_other_than_loans, :col_b_transfers_from_aff_other_party_cmttees, :col_b_received_from_or_guaranteed_by_cand, :col_b_other_loans, :col_b_total_loans, :col_b_operating, :col_b_fundraising, :col_b_legal_and_accounting, :col_b_total_offsets_to_operating_expenditures, :col_b_other_receipts, :col_b_total_receipts, :col_b_operating_expenditures, :col_b_transfers_to_other_authorized_committees, :col_b_fundraising_disbursements, :col_b_exempt_legal_accounting_disbursement, :col_b_made_or_guaranteed_by_the_candidate, :col_b_other_repayments, :col_b_total_loan_repayments_made, :col_b_individuals, :col_b_political_party_committees_refunds, :col_b_other_political_committees, :col_b_total_contributions_refunds, :col_b_other_disbursements, :col_b_total_disbursements, :col_b_alabama, :col_b_alaska, :col_b_arizona, :col_b_arkansas, :col_b_california, :col_b_colorado, :col_b_connecticut, :col_b_delaware, :col_b_dist_of_columbia, :col_b_florida, :col_b_georgia, :col_b_hawaii, :col_b_idaho, :col_b_illinois, :col_b_indiana, :col_b_iowa, :col_b_kansas, :col_b_kentucky, :col_b_louisiana, :col_b_maine, :col_b_maryland, :col_b_massachusetts, :col_b_michigan, :col_b_minnesota, :col_b_mississippi, :col_b_missouri, :col_b_montana, :col_b_nebraska, :col_b_nevada, :col_b_new_hampshire, :col_b_new_jersey, :col_b_new_mexico, :col_b_new_york, :col_b_north_carolina, :col_b_north_dakota, :col_b_ohio, :col_b_oklahoma, :col_b_oregon, :col_b_pennsylvania, :col_b_rhode_island, :col_b_south_carolina, :col_b_south_dakota, :col_b_tennessee, :col_b_texas, :col_b_utah, :col_b_vermont, :col_b_virginia, :col_b_washington, :col_b_west_virginia, :col_b_wisconsin, :col_b_wyoming, :col_b_puerto_rico, :col_b_guam, :col_b_virgin_islands, :col_b_totals],
|
20
|
+
'^6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individual_contribution_total, :col_a_political_party_committees_receipts, :col_a_other_political_committees_pacs, :col_a_the_candidate, :col_a_total_contributions, :col_a_transfers_from_aff_other_party_cmttees, :col_a_received_from_or_guaranteed_by_cand, :col_a_other_loans, :col_a_total_loans, :col_a_operating, :col_a_fundraising, :col_a_legal_and_accounting, :col_a_total_offsets_to_expenditures, :col_a_other_receipts, :col_a_total_receipts, :col_a_operating_expenditures, :col_a_transfers_to_other_authorized_committees, :col_a_fundraising_disbursements, :col_a_exempt_legal_accounting_disbursement, :col_a_made_or_guaranteed_by_candidate, :col_a_other_repayments, :col_a_total_loan_repayments_made, :col_a_individuals, :col_a_political_party_committees_refunds, :col_a_other_political_committees, :col_a_total_contributions_refunds, :col_a_other_disbursements, :col_a_total_disbursements, :col_a_items_on_hand_to_be_liquidated, :col_a_alabama, :col_a_alaska, :col_a_arizona, :col_a_arkansas, :col_a_california, :col_a_colorado, :col_a_connecticut, :col_a_delaware, :col_a_dist_of_columbia, :col_a_florida, :col_a_georgia, :col_a_hawaii, :col_a_idaho, :col_a_illinois, :col_a_indiana, :col_a_iowa, :col_a_kansas, :col_a_kentucky, :col_a_louisiana, :col_a_maine, :col_a_maryland, :col_a_massachusetts, :col_a_michigan, :col_a_minnesota, :col_a_mississippi, :col_a_missouri, :col_a_montana, :col_a_nebraska, :col_a_nevada, :col_a_new_hampshire, :col_a_new_jersey, :col_a_new_mexico, :col_a_new_york, :col_a_north_carolina, :col_a_north_dakota, :col_a_ohio, :col_a_oklahoma, :col_a_oregon, :col_a_pennsylvania, :col_a_rhode_island, :col_a_south_carolina, :col_a_south_dakota, :col_a_tennessee, :col_a_texas, :col_a_utah, :col_a_vermont, :col_a_virginia, :col_a_washington, :col_a_west_virginia, :col_a_wisconsin, :col_a_wyoming, :col_a_puerto_rico, :col_a_guam, :col_a_virgin_islands, :col_a_totals, :col_b_federal_funds, :col_b_individual_contribution_total, :col_b_political_party_committees_receipts, :col_b_other_political_committees_pacs, :col_b_the_candidate, :col_b_total_contributions_other_than_loans, :col_b_transfers_from_aff_other_party_cmttees, :col_b_received_from_or_guaranteed_by_cand, :col_b_other_loans, :col_b_total_loans, :col_b_operating, :col_b_fundraising, :col_b_legal_and_accounting, :col_b_total_offsets_to_operating_expenditures, :col_b_other_receipts, :col_b_total_receipts, :col_b_operating_expenditures, :col_b_transfers_to_other_authorized_committees, :col_b_fundraising_disbursements, :col_b_exempt_legal_accounting_disbursement, :col_b_made_or_guaranteed_by_the_candidate, :col_b_other_repayments, :col_b_total_loan_repayments_made, :col_b_individuals, :col_b_political_party_committees_refunds, :col_b_other_political_committees, :col_b_total_contributions_refunds, :col_b_other_disbursements, :col_b_total_disbursements, :col_b_alabama, :col_b_alaska, :col_b_arizona, :col_b_arkansas, :col_b_california, :col_b_colorado, :col_b_connecticut, :col_b_delaware, :col_b_dist_of_columbia, :col_b_florida, :col_b_georgia, :col_b_hawaii, :col_b_idaho, :col_b_illinois, :col_b_indiana, :col_b_iowa, :col_b_kansas, :col_b_kentucky, :col_b_louisiana, :col_b_maine, :col_b_maryland, :col_b_massachusetts, :col_b_michigan, :col_b_minnesota, :col_b_mississippi, :col_b_missouri, :col_b_montana, :col_b_nebraska, :col_b_nevada, :col_b_new_hampshire, :col_b_new_jersey, :col_b_new_mexico, :col_b_new_york, :col_b_north_carolina, :col_b_north_dakota, :col_b_ohio, :col_b_oklahoma, :col_b_oregon, :col_b_pennsylvania, :col_b_rhode_island, :col_b_south_carolina, :col_b_south_dakota, :col_b_tennessee, :col_b_texas, :col_b_utah, :col_b_vermont, :col_b_virginia, :col_b_washington, :col_b_west_virginia, :col_b_wisconsin, :col_b_wyoming, :col_b_puerto_rico, :col_b_guam, :col_b_virgin_islands, :col_b_totals],
|
21
|
+
'^5.3|5.2' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :change_of_address, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individual_contribution_total, :col_a_political_party_committees_receipts, :col_a_other_political_committees_pacs, :col_a_the_candidate, :col_a_total_contributions, :col_a_transfers_from_aff_other_party_cmttees, :col_a_received_from_or_guaranteed_by_cand, :col_a_other_loans, :col_a_total_loans, :col_a_operating, :col_a_fundraising, :col_a_legal_and_accounting, :col_a_total_offsets_to_expenditures, :col_a_other_receipts, :col_a_total_receipts, :col_a_operating_expenditures, :col_a_transfers_to_other_authorized_committees, :col_a_fundraising_disbursements, :col_a_exempt_legal_accounting_disbursement, :col_a_made_or_guaranteed_by_candidate, :col_a_other_repayments, :col_a_total_loan_repayments_made, :col_a_individuals, :col_a_political_party_committees_refunds, :col_a_other_political_committees, :col_a_total_contributions_refunds, :col_a_other_disbursements, :col_a_total_disbursements, :col_a_items_on_hand_to_be_liquidated, :col_a_alabama, :col_a_alaska, :col_a_arizona, :col_a_arkansas, :col_a_california, :col_a_colorado, :col_a_connecticut, :col_a_delaware, :col_a_dist_of_columbia, :col_a_florida, :col_a_georgia, :col_a_hawaii, :col_a_idaho, :col_a_illinois, :col_a_indiana, :col_a_iowa, :col_a_kansas, :col_a_kentucky, :col_a_louisiana, :col_a_maine, :col_a_maryland, :col_a_massachusetts, :col_a_michigan, :col_a_minnesota, :col_a_mississippi, :col_a_missouri, :col_a_montana, :col_a_nebraska, :col_a_nevada, :col_a_new_hampshire, :col_a_new_jersey, :col_a_new_mexico, :col_a_new_york, :col_a_north_carolina, :col_a_north_dakota, :col_a_ohio, :col_a_oklahoma, :col_a_oregon, :col_a_pennsylvania, :col_a_rhode_island, :col_a_south_carolina, :col_a_south_dakota, :col_a_tennessee, :col_a_texas, :col_a_utah, :col_a_vermont, :col_a_virginia, :col_a_washington, :col_a_west_virginia, :col_a_wisconsin, :col_a_wyoming, :col_a_puerto_rico, :col_a_guam, :col_a_virgin_islands, :col_a_totals, :col_b_federal_funds, :col_b_individual_contribution_total, :col_b_political_party_committees_receipts, :col_b_other_political_committees_pacs, :col_b_the_candidate, :col_b_total_contributions_other_than_loans, :col_b_transfers_from_aff_other_party_cmttees, :col_b_received_from_or_guaranteed_by_cand, :col_b_other_loans, :col_b_total_loans, :col_b_operating, :col_b_fundraising, :col_b_legal_and_accounting, :col_b_total_offsets_to_operating_expenditures, :col_b_other_receipts, :col_b_total_receipts, :col_b_operating_expenditures, :col_b_transfers_to_other_authorized_committees, :col_b_fundraising_disbursements, :col_b_exempt_legal_accounting_disbursement, :col_b_made_or_guaranteed_by_the_candidate, :col_b_other_repayments, :col_b_total_loan_repayments_made, :col_b_individuals, :col_b_political_party_committees_refunds, :col_b_other_political_committees, :col_b_total_contributions_refunds, :col_b_other_disbursements, :col_b_total_disbursements, :col_b_alabama, :col_b_alaska, :col_b_arizona, :col_b_arkansas, :col_b_california, :col_b_colorado, :col_b_connecticut, :col_b_delaware, :col_b_dist_of_columbia, :col_b_florida, :col_b_georgia, :col_b_hawaii, :col_b_idaho, :col_b_illinois, :col_b_indiana, :col_b_iowa, :col_b_kansas, :col_b_kentucky, :col_b_louisiana, :col_b_maine, :col_b_maryland, :col_b_massachusetts, :col_b_michigan, :col_b_minnesota, :col_b_mississippi, :col_b_missouri, :col_b_montana, :col_b_nebraska, :col_b_nevada, :col_b_new_hampshire, :col_b_new_jersey, :col_b_new_mexico, :col_b_new_york, :col_b_north_carolina, :col_b_north_dakota, :col_b_ohio, :col_b_oklahoma, :col_b_oregon, :col_b_pennsylvania, :col_b_rhode_island, :col_b_south_carolina, :col_b_south_dakota, :col_b_tennessee, :col_b_texas, :col_b_utah, :col_b_vermont, :col_b_virginia, :col_b_washington, :col_b_west_virginia, :col_b_wisconsin, :col_b_wyoming, :col_b_puerto_rico, :col_b_guam, :col_b_virgin_islands, :col_b_totals, :treasurer_name, :date_signed],
|
22
|
+
'^5.1|5.0|3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :change_of_address, :activity_primary, :activity_general, :report_code, :election_code, :date_of_election, :state_of_election, :coverage_from_date, :coverage_through_date, :col_a_cash_on_hand_beginning_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_expenditures_subject_to_limits, :col_a_net_contributions, :col_a_net_operating_expenditures, :col_a_federal_funds, :col_a_individual_contribution_total, :col_a_political_party_committees_receipts, :col_a_other_political_committees_pacs, :col_a_the_candidate, :col_a_total_contributions, :col_a_transfers_from_aff_other_party_cmttees, :col_a_received_from_or_guaranteed_by_cand, :col_a_other_loans, :col_a_total_loans, :col_a_operating, :col_a_fundraising, :col_a_legal_and_accounting, :col_a_total_offsets_to_expenditures, :col_a_other_receipts, :col_a_total_receipts, :col_a_operating_expenditures, :col_a_transfers_to_other_authorized_committees, :col_a_fundraising_disbursements, :col_a_exempt_legal_accounting_disbursement, :col_a_made_or_guaranteed_by_candidate, :col_a_other_repayments, :col_a_total_loan_repayments_made, :col_a_individuals, :col_a_political_party_committees_refunds, :col_a_other_political_committees, :col_a_total_contributions_refunds, :col_a_other_disbursements, :col_a_total_disbursements, :col_a_items_on_hand_to_be_liquidated, :col_a_alabama, :col_a_alaska, :col_a_arizona, :col_a_arkansas, :col_a_california, :col_a_colorado, :col_a_connecticut, :col_a_delaware, :col_a_dist_of_columbia, :col_a_florida, :col_a_georgia, :col_a_hawaii, :col_a_idaho, :col_a_illinois, :col_a_indiana, :col_a_iowa, :col_a_kansas, :col_a_kentucky, :col_a_louisiana, :col_a_maine, :col_a_maryland, :col_a_massachusetts, :col_a_michigan, :col_a_minnesota, :col_a_mississippi, :col_a_missouri, :col_a_montana, :col_a_nebraska, :col_a_nevada, :col_a_new_hampshire, :col_a_new_jersey, :col_a_new_mexico, :col_a_new_york, :col_a_north_carolina, :col_a_north_dakota, :col_a_ohio, :col_a_oklahoma, :col_a_oregon, :col_a_pennsylvania, :col_a_rhode_island, :col_a_south_carolina, :col_a_south_dakota, :col_a_tennessee, :col_a_texas, :col_a_utah, :col_a_vermont, :col_a_virginia, :col_a_washington, :col_a_west_virginia, :col_a_wisconsin, :col_a_wyoming, :col_a_puerto_rico, :col_a_guam, :col_a_virgin_islands, :col_a_totals, :col_b_federal_funds, :col_b_individual_contribution_total, :col_b_political_party_committees_receipts, :col_b_other_political_committees_pacs, :col_b_the_candidate, :col_b_total_contributions_other_than_loans, :col_b_transfers_from_aff_other_party_cmttees, :col_b_received_from_or_guaranteed_by_cand, :col_b_other_loans, :col_b_total_loans, :col_b_operating, :col_b_fundraising, :col_b_legal_and_accounting, :col_b_total_offsets_to_operating_expenditures, :col_b_other_receipts, :col_b_total_receipts, :col_b_operating_expenditures, :col_b_transfers_to_other_authorized_committees, :col_b_fundraising_disbursements, :col_b_exempt_legal_accounting_disbursement, :col_b_made_or_guaranteed_by_the_candidate, :col_b_other_repayments, :col_b_total_loan_repayments_made, :col_b_individuals, :col_b_political_party_committees_refunds, :col_b_other_political_committees, :col_b_total_contributions_refunds, :col_b_other_disbursements, :col_b_total_disbursements, :col_b_alabama, :col_b_alaska, :col_b_arizona, :col_b_arkansas, :col_b_california, :col_b_colorado, :col_b_connecticut, :col_b_delaware, :col_b_dist_of_columbia, :col_b_florida, :col_b_georgia, :col_b_hawaii, :col_b_idaho, :col_b_illinois, :col_b_indiana, :col_b_iowa, :col_b_kansas, :col_b_kentucky, :col_b_louisiana, :col_b_maine, :col_b_maryland, :col_b_massachusetts, :col_b_michigan, :col_b_minnesota, :col_b_mississippi, :col_b_missouri, :col_b_montana, :col_b_nebraska, :col_b_nevada, :col_b_new_hampshire, :col_b_new_jersey, :col_b_new_mexico, :col_b_new_york, :col_b_north_carolina, :col_b_north_dakota, :col_b_ohio, :col_b_oklahoma, :col_b_oregon, :col_b_pennsylvania, :col_b_rhode_island, :col_b_south_carolina, :col_b_south_dakota, :col_b_tennessee, :col_b_texas, :col_b_utah, :col_b_vermont, :col_b_virginia, :col_b_washington, :col_b_west_virginia, :col_b_wisconsin, :col_b_wyoming, :col_b_puerto_rico, :col_b_guam, :col_b_virgin_islands, :col_b_totals, :treasurer_name, :date_signed],
|
23
23
|
},
|
24
24
|
"^f3p31" => {
|
25
25
|
'^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :transaction_id_number, :entity_type, :contributor_organization_name, :contributor_last_name, :contributor_first_name, :contributor_middle_name, :contributor_prefix, :contributor_suffix, :contributor_street_1, :contributor_street_2, :contributor_city, :contributor_state, :contributor_zip, :election_code, :item_description, :item_contribution_aquired_date, :item_fair_market_value, :contributor_employer, :contributor_occupation, :memo_code, :memo_text_description],
|
data/lib/fech/version.rb
CHANGED
data/sources/F3P.csv
CHANGED
@@ -37,7 +37,7 @@ col_a_federal_funds,34,16. Federal Funds,34,16. Federal Funds,28,16. Federal Fun
|
|
37
37
|
col_a_individuals_itemized,35,17(a.i) Individuals Itemized,,,,,,
|
38
38
|
col_a_individuals_unitemized,36,17(a.ii) Individuals Unitemized,,,,,,
|
39
39
|
col_a_individual_contribution_total,37,17(a.iii) Individual Contribution Total,35,17(a) Individuals,29,17(a) Individuals,29,17(a) Individuals
|
40
|
-
|
40
|
+
col_a_political_party_committees_receipts,38,17(b) Political Party Committees,36,17(b) Political Party Committees,30,17(b) Political Party Committees,30,17(b) Political Party Committees
|
41
41
|
col_a_other_political_committees_pacs,39,17(c) Other Political Committees (PACs),37,17(c) Other Political Committees (PACs),31,17(c) Other Political Committees (PACs),31,17(c) Other Political Committees (PACs)
|
42
42
|
col_a_the_candidate,40,17(d) The Candidate,38,17(d) The Candidate,32,17(d) The Candidate,32,17(d) The Candidate
|
43
43
|
col_a_total_contributions,41,17(e) Total Contributions,39,17(e) Total Contributions,33,17(e) Total Contributions,33,17(e) Total Contributions
|
@@ -59,7 +59,7 @@ col_a_made_or_guaranteed_by_candidate,56,27(a) Made or guaranteed by Candidate,5
|
|
59
59
|
col_a_other_repayments,57,27(b) Other Repayments,55,27(b) Other Repayments,49,27(b) Other Repayments,49,27(b) Other Repayments
|
60
60
|
col_a_total_loan_repayments_made,58,27(c) Total Loan Repayments Made,56,27(c) Total Loan Repayments Made,50,27(c) Total Loan Repayments Made,50,27(c) Total Loan Repayments Made
|
61
61
|
col_a_individuals,59,28(a) Individuals,57,28(a) Individuals,51,28(a) Individuals,51,28(a) Individuals
|
62
|
-
|
62
|
+
col_a_political_party_committees_refunds,60,28(b) Political Party Committees,58,28(b) Political Party Committees,52,28(b) Political Party Committees,52,28(b) Political Party Committees
|
63
63
|
col_a_other_political_committees,61,28(c) Other Political Committees,59,28(c) Other Political Committees,53,28(c) Other Political Committees,53,28(c) Other Political Committees
|
64
64
|
col_a_total_contributions_refunds,62,28(d) Total Contributions Refunds,60,28(d) Total Contributions Refunds,54,28(d) Total Contributions Refunds,54,28(d) Total Contributions Refunds
|
65
65
|
col_a_other_disbursements,63,29. Other Disbursements,61,29. Other Disbursements,55,29. Other Disbursements,55,29. Other Disbursements
|
@@ -124,7 +124,7 @@ col_b_federal_funds,121,16. Federal Funds,119,16. Federal Funds,113,16. Federal
|
|
124
124
|
col_b_individuals_itemized,122,17(a.i) Individuals Itemized,,,,,,
|
125
125
|
col_b_individuals_unitemized,123,17(a.ii) Individuals Unitemized,,,,,,
|
126
126
|
col_b_individual_contribution_total,124,17(a.iii) Individual Contribution Total,120,17(a) Individuals,114,17(a) Individuals,114,17(a) Individuals
|
127
|
-
|
127
|
+
col_b_political_party_committees_receipts,125,17(b) Political Party Committees,121,17(b) Political Party Committees,115,17(b) Political Party Committees,115,17(b) Political Party Committees
|
128
128
|
col_b_other_political_committees_pacs,126,17(c) Other Political Committees (PACs),122,17(c) Other Political Committees (PACs),116,17(c) Other Political Committees (PACs),116,17(c) Other Political Committees (PACs)
|
129
129
|
col_b_the_candidate,127,17(d) The Candidate,123,17(d) The Candidate,117,17(d) The Candidate,117,17(d) The Candidate
|
130
130
|
col_b_total_contributions_other_than_loans,128,17(e) Total contributions (Other than Loans),124,17(e) Total contributions (Other than Loans),118,17(e) Total contributions (Other than Loans),118,17(e) Total contributions (Other than Loans)
|
@@ -146,7 +146,7 @@ col_b_made_or_guaranteed_by_the_candidate,143,27(a) Made or Guaranteed by the Ca
|
|
146
146
|
col_b_other_repayments,144,27(b) Other Repayments,140,27(b) Other Repayments,134,27(b) Other Repayments,134,27(b) Other Repayments
|
147
147
|
col_b_total_loan_repayments_made,145,27(c) Total Loan Repayments Made,141,27(c) Total Loan Repayments Made,135,27(c) Total Loan Repayments Made,135,27(c) Total Loan Repayments Made
|
148
148
|
col_b_individuals,146,28(a) Individuals,142,28(a) Individuals,136,28(a) Individuals,136,28(a) Individuals
|
149
|
-
|
149
|
+
col_b_political_party_committees_refunds,147,28(b) Political Party Committees,143,28(b) Political Party Committees,137,28(b) Political Party Committees,137,28(b) Political Party Committees
|
150
150
|
col_b_other_political_committees,148,28(c) Other Political Committees,144,28(c) Other Political Committees,138,28(c) Other Political Committees,138,28(c) Other Political Committees
|
151
151
|
col_b_total_contributions_refunds,149,28(d) Total Contributions Refunds,145,28(d) Total Contributions Refunds,139,28(d) Total Contributions Refunds,139,28(d) Total Contributions Refunds
|
152
152
|
col_b_other_disbursements,150,29. Other Disbursements,146,29. Other Disbursements,140,29. Other Disbursements,140,29. Other Disbursements
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fech
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 6
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Strickland
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date:
|
20
|
+
date: 2012-01-28 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|