fech 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,10 +6,11 @@
6
6
 
7
7
  Fech makes it easy to parse electronic campaign filings[http://query.nictusa.com/pres/], House candidate filings, PAC filings and independent expenditure filings[http://www.fec.gov/finance/disclosure/ie_reports.shtml] 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.
8
8
 
9
- Fech supports several FEC form types, including all F1 (Statements of organization), F3 (House candidate filings), F3P (presidential filings), F5 (independent expenditures), F24 (24/48 hour notices of independent expenditures), F56 (contributions to independent expenditure committees) F57 (expenditures by independent expenditure committees), F3X (filings by unauthorized committees) and F9 (electioneering communications).
9
+ Fech supports several FEC form types, including all F1 (statements of organization), F2 (statements of candidacy), F3 (House candidate filings), F3L (contributions bundled by lobbyists) F3P (presidential filings), F5 (independent expenditures), F24 (24/48 hour notices of independent expenditures), F56 (contributions to independent expenditure committees) F57 (expenditures by independent expenditure committees), F3X (filings by unauthorized committees) and F9 (electioneering communications).
10
10
 
11
11
  == News
12
12
 
13
+ * Feb. 19, 2012: Version 0.8.2 released. Added layouts for F1M and F2 filings.
13
14
  * Feb. 15, 2012: Version 0.8.1 released. Bug-fix to support F3 termination filings.
14
15
  * Feb. 13, 2012: Version 0.8.0 released. Layouts for form 3 and form 1 added, for parsing House candidate committee filings.
15
16
  * Feb. 11, 2012: Version 0.7.0 released. Layouts for form 9 added, for parsing electioneering communications filings.
@@ -182,13 +183,15 @@ When filings get very large, be careful not to perform operations that attempt t
182
183
 
183
184
  The following row types are currently supported from filing version 3 through 8.0:
184
185
  * F1 (Statement of Organization)
186
+ * F2 (Statement of Candidacy)
187
+ * F24 (24/48 Hour Notice of Independent Expenditure)
185
188
  * F3 (including termination reports)
189
+ * F3L (Report of Contributions Bundled by Lobbyists/Registrants)
186
190
  * F3P (Summaries)
187
191
  * F3PS
188
192
  * F3P31 (Items to be Liquidated)
189
193
  * F3S
190
194
  * F3X (Report of Receipts and Disbursements for Other Than an Authorized Committee)
191
- * F24 (24/48 Hour Notice of Independent Expenditure)
192
195
  * F5 (Report of Independent Expenditures Made and Contributions Received)
193
196
  * F56 (Contributions for Independent Expenditures)
194
197
  * F57 (Independent Expenditures)
@@ -7,8 +7,11 @@ module FechUtils
7
7
  ROW_TYPES = {
8
8
  :hdr => /^hdr$/i,
9
9
  :f1 => /^f1/i,
10
+ :f1m => /(^f1m[^a|n])/i,
11
+ :f2 => /(^f2[^a|n])/i,
10
12
  :f24 => /^f24/i,
11
- :f3 => /(^f3[a|n|t])/i,
13
+ :f3 => /(^f3[^a|n|t])/i,
14
+ :f3l => /(^f3l[^a|n])/i,
12
15
  :f3p => /(^f3p$)|(^f3p[^s|3])/i,
13
16
  :f3s => /^f3s/i,
14
17
  :f3p31 => /^f3p31/i,
@@ -9,15 +9,18 @@ module Fech
9
9
  attr_accessor :map
10
10
  FILING_VERSIONS = ["8.0", "7.0", "6.4", "6.3", "6.2", "6.1",
11
11
  "5.3", "5.2", "5.1", "5.0", "3"]
12
- BASE_ROW_TYPES = ["HDR", "F1", "F24", "F3", "F3P", "F3P31", "F3PS", "F3S", "F3X", "F5", "F56", "F57",
13
- "F9", "F91", "F92", "F93", "F94",
12
+ BASE_ROW_TYPES = ["HDR", "F1", "F1M", "F2", "F24", "F3", "F3L", "F3P", "F3P31", "F3PS", "F3S", "F3X",
13
+ "F5", "F56", "F57", "F9", "F91", "F92", "F93", "F94",
14
14
  "SchA", "SchB", "SchC", "SchC1", "SchC2", "SchD", "SchE",
15
15
  "SchF", "TEXT"]
16
16
  ROW_TYPE_MATCHERS = {
17
17
  "HDR" => FechUtils::ROW_TYPES[:hdr],
18
18
  "F1" => FechUtils::ROW_TYPES[:f1],
19
+ "F1M" => FechUtils::ROW_TYPES[:f1m],
20
+ "F2" => FechUtils::ROW_TYPES[:f2],
19
21
  "F24" => FechUtils::ROW_TYPES[:f24],
20
22
  "F3" => FechUtils::ROW_TYPES[:f3],
23
+ "F3L" => FechUtils::ROW_TYPES[:f3l],
21
24
  "F3P" => FechUtils::ROW_TYPES[:f3p],
22
25
  "F3S" => FechUtils::ROW_TYPES[:f3s],
23
26
  "F3P31" => FechUtils::ROW_TYPES[:f3p31],
@@ -15,6 +15,16 @@ module Fech
15
15
  '^6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :change_of_committee_name, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :change_of_committee_email, :committee_email, :change_of_committee_url, :committee_url, :effective_date, :signature_last_name, :signature_first_name, :signature_middle_name, :signature_prefix, :signature_suffix, :date_signed, :committee_type, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :candidate_office, :candidate_state, :candidate_district, :party_code, :party_type, :organization_type, :lobbyist_registrant_pac, :lobbyist_registrant_pac_2, :leadership_pac, :affiliated_committee_id_number, :affiliated_committee_name, :affiliated_candidate_id_number, :affiliated_last_name, :affiliated_first_name, :affiliated_middle_name, :affiliated_prefix, :affiliated_suffix, :affiliated_street_1, :affiliated_street_2, :affiliated_city, :affiliated_state, :affiliated_zip, :affiliated_relationship_code, :custodian_last_name, :custodian_first_name, :custodian_middle_name, :custodian_prefix, :custodian_suffix, :custodian_street_1, :custodian_street_2, :custodian_city, :custodian_state, :custodian_zip, :custodian_title, :custodian_telephone, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :treasurer_street_1, :treasurer_street_2, :treasurer_city, :treasurer_state, :treasurer_zip, :treasurer_title, :treasurer_telephone, :agent_last_name, :agent_first_name, :agent_middle_name, :agent_prefix, :agent_suffix, :agent_street_1, :agent_street_2, :agent_city, :agent_state, :agent_zip, :agent_title, :agent_telephone, :bank_name, :bank_street_1, :bank_street_2, :bank_city, :bank_state, :bank_zip, :bank2_name, :bank2_street_1, :bank2_street_2, :bank2_city, :bank2_state, :bank2_zip],
16
16
  '^5.3|5.2|5.1|5.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :effective_date, :change_of_committee_name, :change_of_address, :committee_type, :candidate_id_number, :candidate_name, :candidate_office, :candidate_state, :candidate_district, :party_code, :party_type, :affiliated_committee_id_number, :affiliated_committee_name, :affiliated_street_1, :affiliated_street_2, :affiliated_city, :affiliated_state, :affiliated_zip, :affiliated_relationship_code, :organization_type, :custodian_name, :custodian_street_1, :custodian_street_2, :custodian_city, :custodian_state, :custodian_zip, :custodian_title, :custodian_telephone, :treasurer_name, :treasurer_street_1, :treasurer_street_2, :treasurer_city, :treasurer_state, :treasurer_zip, :treasurer_title, :treasurer_telephone, :agent_name, :agent_street_1, :agent_street_2, :agent_city, :agent_state, :agent_zip, :agent_title, :agent_telephone, :bank_name, :bank_street_1, :bank_street_2, :bank_city, :bank_state, :bank_zip, :signature_name, :date_signed, :committee_email, :committee_url, :committee_fax_number],
17
17
  },
18
+ "(^f1m[a|n])" => {
19
+ '^5.3|5.2|5.1|5.0|3.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :committee_type, :affiliated_date_f1_filed, :affiliated_committee_id_number, :affiliated_committee_name, :first_candidate_id_number, :first_candidate_name, :first_candidate_office, :first_candidate_state, :first_candidate_district, :first_candidate_contribution_date, :second_candidate_id_number, :second_candidate_name, :second_candidate_office, :second_candidate_state, :second_candidate_district, :second_candidate_contribution_date, :third_candidate_id_number, :third_candidate_name, :third_candidate_office, :third_candidate_state, :third_candidate_district, :third_candidate_contribution_date, :fourth_candidate_id_number, :fourth_candidate_name, :fourth_candidate_office, :fourth_candidate_state, :fourth_candidate_district, :fourth_candidate_contribution_date, :fifth_candidate_id_number, :fifth_candidate_name, :fifth_candidate_office, :fifth_candidate_state, :fifth_candidate_district, :fifth_candidate_contribution_date, :fifty_first_contributor_date, :original_registration_date, :requirements_met_date, :treasurer_name, :date_signed],
20
+ '^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :committee_type, :affiliated_date_f1_filed, :affiliated_committee_id_number, :affiliated_committee_name, :first_candidate_id_number, :first_candidate_last_name, :first_candidate_first_name, :first_candidate_middle_name, :first_candidate_prefix, :first_candidate_suffix, :first_candidate_office, :first_candidate_state, :first_candidate_district, :first_candidate_contribution_date, :second_candidate_id_number, :second_candidate_last_name, :second_candidate_second_name, :second_candidate_middle_name, :second_candidate_prefix, :second_candidate_suffix, :second_candidate_office, :second_candidate_state, :second_candidate_district, :second_candidate_contribution_date, :third_candidate_id_number, :third_candidate_last_name, :third_candidate_third_name, :third_candidate_middle_name, :third_candidate_prefix, :third_candidate_suffix, :third_candidate_office, :third_candidate_state, :third_candidate_district, :third_candidate_contribution_date, :fourth_candidate_id_number, :fourth_candidate_last_name, :fourth_candidate_fourth_name, :fourth_candidate_middle_name, :fourth_candidate_prefix, :fourth_candidate_suffix, :fourth_candidate_office, :fourth_candidate_state, :fourth_candidate_district, :fourth_candidate_contribution_date, :fifth_candidate_id_number, :fifth_candidate_last_name, :fifth_candidate_fifth_name, :fifth_candidate_middle_name, :fifth_candidate_prefix, :fifth_candidate_suffix, :fifth_candidate_office, :fifth_candidate_state, :fifth_candidate_district, :fifth_candidate_contribution_date, :fifty_first_contributor_date, :original_registration_date, :requirements_met_date, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed],
21
+ },
22
+ "(^f2[a|n])" => {
23
+ '^3.0' => [:form_type, :candidate_id_number, :candidate_name, :candidate_street_1, :candidate_street_2, :candidate_city, :candidate_state, :candidate_zip, :candidate_party_code, :candidate_office, :candidate_state, :candidate_district, :election_year, :committee_id_number, :committee_name, :committee_street_1, :committee_street_2, :committee_city, :committee_state, :committee_zip, :authorized_committee_id_number, :authorized_committee_name, :authorized_committee_street_1, :authorized_committee_street_2, :authorized_committee_city, :authorized_committee_state, :authorized_committee_zip, :candidate_signature_name, :date_signed],
24
+ '^8.0|7.0|6.4' => [:form_type, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :change_of_address, :candidate_street_1, :candidate_street_2, :candidate_city, :candidate_state, :candidate_zip, :candidate_party_code, :candidate_office, :candidate_state, :candidate_district, :election_year, :committee_id_number, :committee_name, :committee_street_1, :committee_street_2, :committee_city, :committee_state, :committee_zip, :authorized_committee_id_number, :authorized_committee_name, :authorized_committee_street_1, :authorized_committee_street_2, :authorized_committee_city, :authorized_committee_state, :authorized_committee_zip, :candidate_signature_last_name, :candidate_signature_first_name, :candidate_signature_middle_name, :candidate_signature_prefix, :candidate_signature_suffix, :date_signed],
25
+ '^6.3|6.2|6.1' => [:form_type, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :change_of_address, :candidate_street_1, :candidate_street_2, :candidate_city, :candidate_state, :candidate_zip, :candidate_party_code, :candidate_office, :candidate_state, :candidate_district, :election_year, :committee_id_number, :committee_name, :committee_street_1, :committee_street_2, :committee_city, :committee_state, :committee_zip, :authorized_committee_id_number, :authorized_committee_name, :authorized_committee_street_1, :authorized_committee_street_2, :authorized_committee_city, :authorized_committee_state, :authorized_committee_zip, :primary_personal_funds_declared, :general_personal_funds_declared, :candidate_signature_last_name, :candidate_signature_first_name, :candidate_signature_middle_name, :candidate_signature_prefix, :candidate_signature_suffix, :date_signed],
26
+ '^5.3|5.2|5.1|5.0' => [:form_type, :candidate_id_number, :candidate_name, :candidate_street_1, :candidate_street_2, :candidate_city, :candidate_state, :candidate_zip, :candidate_party_code, :candidate_office, :candidate_state, :candidate_district, :election_year, :committee_id_number, :committee_name, :committee_street_1, :committee_street_2, :committee_city, :committee_state, :committee_zip, :authorized_committee_id_number, :authorized_committee_name, :authorized_committee_street_1, :authorized_committee_street_2, :authorized_committee_city, :authorized_committee_state, :authorized_committee_zip, :candidate_signature_name, :date_signed, :primary_personal_funds_declared, :general_personal_funds_declared, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix],
27
+ },
18
28
  "^f24" => {
19
29
  '^7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :report_type, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed],
20
30
  '^8.0' => [:form_type, :filer_committee_id_number, :report_type, :original_amendment_date, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed],
@@ -27,6 +37,9 @@ module Fech
27
37
  '^6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :election_state, :election_district, :election_date, :election_code, nil, nil, :coverage_from_date, :coverage_through_date, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :report_type, :col_a_total_contributions_no_loans, :col_a_total_contributions_refunds, :col_a_net_contributions, :col_a_total_operating_expenditures, :col_a_total_offset_to_operating_expenditures, :col_a_net_operating_expenditures, :col_a_cash_on_hand_close_of_period, :col_a_debts_to, :col_a_debts_by, :col_a_individual_contributions_itemized, :col_a_individual_contributions_unitemized, :col_a_total_individual_contributions, :col_a_political_party_contributions, :col_a_pac_contributions, :col_a_candidate_contributions, :col_a_total_contributions, :col_a_transfers_from_authorized, :col_a_candidate_loans, :col_a_other_loans, :col_a_total_loans, :col_a_offset_to_operating_expenditures, :col_a_other_receipts, :col_a_total_receipts, :col_a_operating_expenditures, :col_a_transfers_to_authorized, :col_a_candidate_loan_repayments, nil, :col_a_total_loan_repayments, :col_a_refunds_to_individuals, :col_a_refunds_to_party_committees, :col_a_refunds_to_other_committees, :col_a_total_refunds, :col_a_other_disbursements, :col_a_total_disbursements, :col_a_cash_beginning_reporting_period, :col_a_refunds_to_party_committees, :col_a_refunds_to_other_committees, :col_a_total_receipts_period, :col_a_cash_on_hand_close, :col_b_total_contributions_no_loans, :col_b_total_contributions_refunds, :col_b_net_contributions, :col_b_total_operating_expenditures, :col_b_total_offset_to_operating_expenditures, :col_b_net_operating_expenditures, :col_b_individual_contributions_itemized, :col_b_individual_contributions_unitemized, :col_b_total_individual_contributions, :col_b_political_party_contributions, :col_b_pac_contributions, :col_b_candidate_contributions, :col_b_total_contributions, :col_b_transfers_from_authorized, :col_b_candidate_loans, :col_b_other_loans, :col_b_total_loans, :col_b_offset_to_operating_expenditures, :col_b_other_receipts, :col_b_total_receipts, :col_b_operating_expenditures, :col_b_transfers_to_authorized, :col_b_candidate_loan_repayments, nil, :col_b_total_loan_repayments, :col_b_refunds_to_individuals, nil, nil, :col_b_total_refunds, :col_b_other_disbursements, :col_b_total_disbursements, :col_b_gross_receipts_authorized_primary, :col_b_aggregate_personal_funds_primary, :col_b_gross_receipts_minus_personal_funds_primary, :col_b_gross_receipts_authorized_general, :col_b_aggregate_personal_funds_general, :col_b_gross_receipts_minus_personal_funds_general],
28
38
  '^5.3|5.2|5.1|5.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :change_of_address, :election_state, :election_district, :report_code, :election_code, :election_date, nil, :primary_election, :general_election, :special_election, :runoff_election, :coverage_from_date, :coverage_through_date, :col_a_total_contributions_no_loans, :col_a_total_contributions_refunds, :col_a_net_contributions, :col_a_total_operating_expenditures, :col_a_total_offset_to_operating_expenditures, :col_a_net_operating_expenditures, :col_a_cash_on_hand_close_of_period, :col_a_debts_to, :col_a_debts_by, :col_a_individual_contributions_itemized, :col_a_individual_contributions_unitemized, :col_a_total_individual_contributions, :col_a_political_party_contributions, :col_a_pac_contributions, :col_a_candidate_contributions, :col_a_total_contributions, :col_a_transfers_from_authorized, :col_a_candidate_loans, :col_a_other_loans, :col_a_total_loans, :col_a_offset_to_operating_expenditures, :col_a_other_receipts, :col_a_total_receipts, :col_a_operating_expenditures, :col_a_transfers_to_authorized, :col_a_candidate_loan_repayments, nil, :col_a_total_loan_repayments, :col_a_refunds_to_individuals, :col_a_refunds_to_party_committees, :col_a_refunds_to_other_committees, :col_a_total_refunds, :col_a_other_disbursements, :col_a_total_disbursements, :col_a_cash_beginning_reporting_period, :col_a_refunds_to_party_committees, :col_a_refunds_to_other_committees, :col_a_total_receipts_period, :col_a_cash_on_hand_close, :col_b_total_contributions_no_loans, :col_b_total_contributions_refunds, :col_b_net_contributions, :col_b_total_operating_expenditures, :col_b_total_offset_to_operating_expenditures, :col_b_net_operating_expenditures, :col_b_individual_contributions_itemized, :col_b_individual_contributions_unitemized, :col_b_total_individual_contributions, :col_b_political_party_contributions, :col_b_pac_contributions, :col_b_candidate_contributions, :col_b_total_contributions, :col_b_transfers_from_authorized, :col_b_candidate_loans, :col_b_other_loans, :col_b_total_loans, :col_b_offset_to_operating_expenditures, :col_b_other_receipts, :col_b_total_receipts, :col_b_operating_expenditures, :col_b_transfers_to_authorized, :col_b_candidate_loan_repayments, nil, :col_b_total_loan_repayments, :col_b_refunds_to_individuals, nil, nil, :col_b_total_refunds, :col_b_other_disbursements, :col_b_total_disbursements, :treasurer_name, :date_signed, :candidate_id_number, :candidate_name, :report_type, :col_b_gross_receipts_authorized_primary, :col_b_aggregate_personal_funds_primary, :col_b_gross_receipts_minus_personal_funds_primary, :col_b_gross_receipts_authorized_general, :col_b_aggregate_personal_funds_general, :col_b_gross_receipts_minus_personal_funds_general],
29
39
  },
40
+ "(^f3l[a|n])" => {
41
+ '^8.0|7.0|6.4' => [:form_type, :filer_committee_id_number, :committee_name, :change_of_address, :street_1, :street_2, :city, :state, :zip, :election_state, :election_district, :report_code, :election_date, nil, :semi_annual_period, :coverage_from_date, :coverage_through_date, :semi_annual_period_jan_june, :semi_annual_period_jul_dec, :quarterly_monthly_bundled_contributions, :semi_annual_bundled_contributions, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed],
42
+ },
30
43
  "(^f3p$)|(^f3p[^s|3])" => {
31
44
  '^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],
32
45
  '^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],
data/lib/fech/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fech
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
data/sources/F1M.csv ADDED
@@ -0,0 +1,78 @@
1
+ canonical,^8.0|7.0|6.4|6.3|6.2|6.1,,^5.3|5.2|5.1|5.0|3.0,
2
+ form_type,1,FORM TYPE,1,FORM TYPE
3
+ filer_committee_id_number,2,FILER COMMITTEE ID NUMBER,2,FILER COMMITTEE ID NUMBER
4
+ committee_name,3,COMMITTEE NAME,3,COMMITTEE NAME
5
+ street_1,4,STREET 1,4,STREET 1
6
+ street_2,5,STREET 2,5,STREET 2
7
+ city,6,CITY,6,CITY
8
+ state,7,STATE,7,STATE
9
+ zip,8,ZIP,8,ZIP
10
+ committee_type,9,COMMITTEE TYPE,9,COMMITTEE TYPE
11
+ affiliated_date_f1_filed,10,DATE (Of Affiliation),10,AFFILIATED - DATE FORM F1 FILED
12
+ affiliated_committee_id_number,11,FEC COMMITTEE ID NUMBER,11,AFFILIATED COMMITTEE FEC ID
13
+ affiliated_committee_name,12,COMMITTEE NAME,12,AFFILIATED COMMITTEE NAME
14
+ first_candidate_id_number,13,I CANDIDATE ID NUMBER,13,FEC CANDIDATE ID NUMBER
15
+ first_candidate_name,,,14,CANDIDATE NAME
16
+ first_candidate_last_name,14,I CANDIDATE LAST NAME,,
17
+ first_candidate_first_name,15,I CANDIDATE FIRST NAME,,
18
+ first_candidate_middle_name,16,I CANDIDATE MIDDLE NAME,,
19
+ first_candidate_prefix,17,I CANDIDATE PREFIX,,
20
+ first_candidate_suffix,18,I CANDIDATE SUFFIX,,
21
+ first_candidate_office,19,I CANDIDATE OFFICE,15,CAN/OFFICE
22
+ first_candidate_state,20,I CANDIDATE STATE ,16,CAN/STATE
23
+ first_candidate_district,21,I CANDIDATE DIST,17,CAN/DIST
24
+ first_candidate_contribution_date,22,I DATE OF CONTRIBUTION,18, DATE (Of Contribution)
25
+ second_candidate_id_number,23,II CANDIDATE ID NUMBER,19,FEC CANDIDATE ID NUMBER
26
+ second_candidate_name,,,20,CANDIDATE NAME
27
+ second_candidate_last_name,24,II CANDIDATE LAST NAME,,
28
+ second_candidate_second_name,25,II CANDIDATE FIRST NAME,,
29
+ second_candidate_middle_name,26,II CANDIDATE MIDDLE NAME,,
30
+ second_candidate_prefix,27,II CANDIDATE PREFIX,,
31
+ second_candidate_suffix,28,II CANDIDATE SUFFIX,,
32
+ second_candidate_office,29,II CANDIDATE OFFICE,21,CAN/OFFICE
33
+ second_candidate_state,30,II CANDIDATE STATE ,22,CAN/STATE
34
+ second_candidate_district,31,II CANDIDATE DIST,23,CAN/DIST
35
+ second_candidate_contribution_date,32,II DATE OF CONTRIBUTION,24, DATE (Of Contribution)
36
+ third_candidate_id_number,33,III CANDIDATE ID NUMBER,25,FEC CANDIDATE ID NUMBER
37
+ third_candidate_name,,,26,CANDIDATE NAME
38
+ third_candidate_last_name,34,III CANDIDATE LAST NAME,,
39
+ third_candidate_third_name,35,III CANDIDATE FIRST NAME,,
40
+ third_candidate_middle_name,36,III CANDIDATE MIDDLE NAME,,
41
+ third_candidate_prefix,37,III CANDIDATE PREFIX,,
42
+ third_candidate_suffix,38,III CANDIDATE SUFFIX,,
43
+ third_candidate_office,39,III CANDIDATE OFFICE,27,CAN/OFFICE
44
+ third_candidate_state,40,III CANDIDATE STATE ,28,CAN/STATE
45
+ third_candidate_district,41,III CANDIDATE DIST,29,CAN/DIST
46
+ third_candidate_contribution_date,42,III DATE OF CONTRIBUTION,30, DATE (Of Contribution)
47
+ fourth_candidate_id_number,43,IV CANDIDATE ID NUMBER,31,FEC CANDIDATE ID NUMBER
48
+ fourth_candidate_name,,,32,CANDIDATE NAME
49
+ fourth_candidate_last_name,44,IV CANDIDATE LAST NAME,,
50
+ fourth_candidate_fourth_name,45,IV CANDIDATE FIRST NAME,,
51
+ fourth_candidate_middle_name,46,IV CANDIDATE MIDDLE NAME,,
52
+ fourth_candidate_prefix,47,IV CANDIDATE PREFIX,,
53
+ fourth_candidate_suffix,48,IV CANDIDATE SUFFIX,,
54
+ fourth_candidate_office,49,IV CANDIDATE OFFICE,33,CAN/OFFICE
55
+ fourth_candidate_state,50,IV CANDIDATE STATE ,34,CAN/STATE
56
+ fourth_candidate_district,51,IV CANDIDATE DIST,35,CAN/DIST
57
+ fourth_candidate_contribution_date,52,IV DATE OF CONTRIBUTION,36, DATE (Of Contribution)
58
+ fifth_candidate_id_number,53,V CANDIDATE ID NUMBER,37,FEC CANDIDATE ID NUMBER
59
+ fifth_candidate_name,,,38,CANDIDATE NAME
60
+ fifth_candidate_last_name,54,V CANDIDATE LAST NAME,,
61
+ fifth_candidate_fifth_name,55,V CANDIDATE FIRST NAME,,
62
+ fifth_candidate_middle_name,56,V CANDIDATE MIDDLE NAME,,
63
+ fifth_candidate_prefix,57,V CANDIDATE PREFIX,,
64
+ fifth_candidate_suffix,58,V CANDIDATE SUFFIX,,
65
+ fifth_candidate_office,59,V CANDIDATE OFFICE,39,CAN/OFFICE
66
+ fifth_candidate_state,60,V CANDIDATE STATE ,40,CAN/STATE
67
+ fifth_candidate_district,61,V CANDIDATE DIST,41,CAN/DIST
68
+ fifth_candidate_contribution_date,62,V DATE OF CONTRIBUTION,42, DATE (Of Contribution)
69
+ fifty_first_contributor_date,63,DATE (Of 51st Contributor),43,DATE (Of 51st Contributor)
70
+ original_registration_date,64,DATE (Of Orig Registration),44,DATE (Of Orig Registration)
71
+ requirements_met_date,65,DATE (Cmte Met Requirements),45,DATE (Cmte Met Requirements)
72
+ treasurer_name,,,46,NAME/TREASURER (as signed)
73
+ treasurer_last_name,66,TREASURER LAST NAME,,
74
+ treasurer_first_name,67,TREASURER FIRST NAME,,
75
+ treasurer_middle_name,68,TREASURER MIDDLE NAME,,
76
+ treasurer_prefix,69,TREASURER PREFIX,,
77
+ treasurer_suffix,70,TREASURER SUFFIX,,
78
+ date_signed,71,DATE SIGNED,47,DATE SIGNED
data/sources/F2.csv ADDED
@@ -0,0 +1,43 @@
1
+ canonical,^8.0|7.0|6.4,,^6.3|6.2|6.1,,^5.3|5.2|5.1|5.0,,^3.0,
2
+ form_type,1,FORM TYPE,1,FORM TYPE,1,FORM TYPE,1,FORM TYPE
3
+ candidate_id_number,2,FILER CANDIDATE ID NUMBER,2,FILER CANDIDATE ID NUMBER,2,FILER FEC CAND ID ,2,FILER FEC CAND ID
4
+ candidate_name,,,,,3,CANDIDATE NAME,3,CANDIDATE NAME
5
+ candidate_last_name,3,CANDIDATE LAST NAME,3,CANDIDATE LAST NAME,32,CANDIDATE LAST NAME,,
6
+ candidate_first_name,4,CANDIDATE FIRST NAME,4,CANDIDATE FIRST NAME,33,CANDIDATE FIRST NAME,,
7
+ candidate_middle_name,5,CANDIDATE MIDDLE NAME,5,CANDIDATE MIDDLE NAME,34,CANDIDATE MIDDLE NAME,,
8
+ candidate_prefix,6,CANDIDATE PREFIX,6,CANDIDATE PREFIX,35,CANDIDATE PREFIX,,
9
+ candidate_suffix,7,CANDIDATE SUFFIX,7,CANDIDATE SUFFIX,36,CANDIDATE SUFFIX,,
10
+ change_of_address,8,CHANGE OF ADDRESS,8,CHANGE OF ADDRESS,,,,
11
+ candidate_street_1,9,CANDIDATE STREET 1,9,CANDIDATE STREET 1,4,STREET 1,4,STREET 1
12
+ candidate_street_2,10,CANDIDATE STREET 2,10,CANDIDATE STREET 2,5,STREET 2,5,STREET 2
13
+ candidate_city,11,CANDIDATE CITY,11,CANDIDATE CITY,6,CITY,6,CITY
14
+ candidate_state,12,CANDIDATE STATE,12,CANDIDATE STATE,7,STATE,7,STATE
15
+ candidate_zip,13,CANDIDATE ZIP,13,CANDIDATE ZIP,8,ZIP,8,ZIP
16
+ candidate_party_code,14,CANDIDATE PARTY CODE,14,CANDIDATE PARTY CODE,9,PTY/CODE,9,PTY/CODE
17
+ candidate_office,15,CANDIDATE OFFICE,15,CANDIDATE OFFICE,10,CAN/OFFICE,10,CAN/OFFICE
18
+ candidate_state,16,CANDIDATE STATE ,16,CANDIDATE STATE ,11,CAN/STATE ,11,CAN/STATE
19
+ candidate_district,17,CANDIDATE DISTRICT,17,CANDIDATE DISTRICT,12,CAN/DIST,12,CAN/DIST
20
+ election_year,18,YEAR OF ELECTION 1900-2999,18,YEAR OF ELECTION 1900-2999,13,YEAR OF ELECTION 1900-2999,13,YEAR OF ELECTION 1900-2999
21
+ committee_id_number,19,PCC COMMITTEE ID NUMBER,19,PCC COMMITTEE ID NUMBER,14,FEC COMMITTEE ID NUMBER (PCC),14,FEC COMMITTEE ID NUMBER (PCC)
22
+ committee_name,20,PCC COMMITTEE NAME,20,PCC COMMITTEE NAME,15,COMMITTEE NAME (PCC),15,COMMITTEE NAME (PCC)
23
+ committee_street_1,21,PCC STREET 1,21,PCC STREET 1,16,STREET 1,16,STREET 1
24
+ committee_street_2,22,PCC STREET 2,22,PCC STREET 2,17,STREET 2,17,STREET 2
25
+ committee_city,23,PCC CITY,23,PCC CITY,18,CITY,18,CITY
26
+ committee_state,24,PCC STATE,24,PCC STATE,19,STATE,19,STATE
27
+ committee_zip,25,PCC ZIP,25,PCC ZIP,20,ZIP,20,ZIP
28
+ authorized_committee_id_number,26,AUTH COMMITTEE ID NUMBER,26,AUTH COMMITTEE ID NUMBER,21,FEC COMMITTEE ID NUMBER (Auth),21,FEC COMMITTEE ID NUMBER (Auth)
29
+ authorized_committee_name,27,AUTH COMMITTEE NAME,27,AUTH COMMITTEE NAME,22,COMMITTEE NAME (Auth),22,COMMITTEE NAME (Auth)
30
+ authorized_committee_street_1,28,AUTH STREET 1,28,AUTH STREET 1,23,STREET 1,23,STREET 1
31
+ authorized_committee_street_2,29,AUTH STREET 2,29,AUTH STREET 2,24,STREET 2,24,STREET 2
32
+ authorized_committee_city,30,AUTH CITY,30,AUTH CITY,25,CITY,25,CITY
33
+ authorized_committee_state,31,AUTH STATE,31,AUTH STATE,26,STATE,26,STATE
34
+ authorized_committee_zip,32,AUTH ZIP,32,AUTH ZIP,27,ZIP,27,ZIP
35
+ candidate_signature_name,,,,,28,NAME/CAN (as signed),28,NAME/CAN (as signed)
36
+ candidate_signature_last_name,33,CANDIDATE SIGNATURE LAST NAME,35,CANDIDATE SIGNATURE LAST NAME,,,,
37
+ candidate_signature_first_name,34,CANDIDATE SIGNATURE FIRST NAME,36,CANDIDATE SIGNATURE FIRST NAME,,,,
38
+ candidate_signature_middle_name,35,CANDIDATE SIGNATURE MIDDLE NAME,37,CANDIDATE SIGNATURE MIDDLE NAME,,,,
39
+ candidate_signature_prefix,36,CANDIDATE SIGNATURE PREFIX,38,CANDIDATE SIGNATURE PREFIX,,,,
40
+ candidate_signature_suffix,37,CANDIDATE SIGNATURE SUFFIX,39,CANDIDATE SIGNATURE SUFFIX,,,,
41
+ date_signed,38,DATE SIGNED,40,DATE SIGNED,29,DATE (Signed),29,DATE (Signed)
42
+ primary_personal_funds_declared,,,33,PRI PERSONAL FUNDS DECLARED,30,PRI PERSONAL FUNDS DECLARED,,
43
+ general_personal_funds_declared,,,34,GEN PERSONAL FUNDS DECLARED,31,GEN PERSONAL FUNDS DECLARED,,
data/sources/F3L.csv ADDED
@@ -0,0 +1,27 @@
1
+ canonical,^8.0|7.0|6.4
2
+ form_type,1,FORM TYPE
3
+ filer_committee_id_number,2,FILER COMMITTEE ID NUMBER
4
+ committee_name,3,COMMITTEE NAME
5
+ change_of_address,4,CHANGE OF ADDRESS
6
+ street_1,5,STREET 1
7
+ street_2,6,STREET 2
8
+ city,7,CITY
9
+ state,8,STATE
10
+ zip,9,ZIP
11
+ report_code,12,REPORT CODE
12
+ election_date,13,DATE OF ELECTION
13
+ election_state,10,ELECTION STATE
14
+ election_district,11,ELECTION DISTRICT
15
+ coverage_from_date,16,COVERAGE FROM DATE
16
+ coverage_through_date,17,COVERAGE THROUGH DATE
17
+ semi_annual_period,15,SEMI-ANNUAL PERIOD - Sect 5(c) or (d)
18
+ semi_annual_period_jan_june,18,SEMI-ANNUAL JAN-JUN - Sect 6(b)
19
+ semi_annual_period_jul_dec,19,SEMI-ANNUAL JUL-DEC - Sect 6(b)
20
+ quarterly_monthly_bundled_contributions,20,QTR/MON/POST BUNDLED CONTRIBUTIONS
21
+ semi_annual_bundled_contributions,21,SEMI-ANNUAL BUNDLED CONTRIBS
22
+ treasurer_last_name,22,TREASURER LAST NAME
23
+ treasurer_first_name,23,TREASURER FIRST NAME
24
+ treasurer_middle_name,24,TREASURER MIDDLE NAME
25
+ treasurer_prefix,25,TREASURER PREFIX
26
+ treasurer_suffix,26,TREASURER SUFFIX
27
+ date_signed,27,DATE SIGNED
@@ -0,0 +1,2 @@
1
+ HDRFEC7.0FECfile7.0.1.0(f26)FEC-7273582
2
+ F1MAC00454660Oklahoma Assoication of Career and Technology Education PAC (OkACTE PAC)4545 N Lincoln BlvdSuite 159Oklahoma CityOK73105NH4OK02089BORENDAVID DHOK0220080825COLETOMHOK0420081020H6OK05160FALLINMARY C.HOK0520080812S8OK00233RICEANDREW MONROESOK0020080924H0OK05114LANKFORDJAMESHOK0520100910200809032008090320100910McGregorPatrick20110607
data/spec/filing_spec.rb CHANGED
@@ -15,6 +15,8 @@ describe Fech::Filing do
15
15
  @filing_ec.stubs(:file_path).returns(File.join(File.dirname(__FILE__), 'data', '764901.fec'))
16
16
  @filing_f1 = Fech::Filing.new(765310)
17
17
  @filing_f1.stubs(:file_path).returns(File.join(File.dirname(__FILE__), 'data', '765310.fec'))
18
+ @filing_f1m = Fech::Filing.new(730635)
19
+ @filing_f1m.stubs(:file_path).returns(File.join(File.dirname(__FILE__), 'data', '730635.fec'))
18
20
  @filing_f3 = Fech::Filing.new(82094)
19
21
  @filing_f3.stubs(:file_path).returns(File.join(File.dirname(__FILE__), 'data', '82094.fec'))
20
22
  end
@@ -63,7 +65,9 @@ describe Fech::Filing do
63
65
  sum_f1 = @filing_f1.summary
64
66
  sum_f1[:form_type].should == "F1N"
65
67
  sum_f3 = @filing_f3.summary
66
- sum_f3[:form_type].should == "F3N"
68
+ sum_f3[:form_type].should == "F3N"
69
+ sum_f1m = @filing_f1m.summary
70
+ sum_f1m[:form_type].should == "F1MA"
67
71
  end
68
72
  end
69
73
 
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: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
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: 2012-02-15 00:00:00 -05:00
20
+ date: 2012-02-19 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -178,8 +178,11 @@ files:
178
178
  - lib/fech/translator.rb
179
179
  - lib/fech/version.rb
180
180
  - sources/F1.csv
181
+ - sources/F1M.csv
182
+ - sources/F2.csv
181
183
  - sources/F24.csv
182
184
  - sources/F3.csv
185
+ - sources/F3L.csv
183
186
  - sources/F3P.csv
184
187
  - sources/F3P31.csv
185
188
  - sources/F3PS.csv
@@ -216,6 +219,7 @@ files:
216
219
  - sources/headers/8.0.csv
217
220
  - sources/headers/ignore.csv
218
221
  - spec/data/723604.fec
222
+ - spec/data/730635.fec
219
223
  - spec/data/748730.fec
220
224
  - spec/data/752356.fec
221
225
  - spec/data/753533.fec