Skip to content

Commit

Permalink
Add contributor name and updated date to procurement thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Oct 7, 2015
1 parent 406b171 commit 3515f18
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 2 deletions.
100 changes: 100 additions & 0 deletions data/procurement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,265 +5,365 @@
threshold: $100,000
population: 1,418,788
url: 'http:https://www.dgs.saccounty.net/capsd/Pages/County-Purchasing-Code.aspx#2.56.250'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: Salt Lake City
state: UT
type: City
threshold: $20,000
population: 191,180
url: 'http:https://www.slcinfobase.com/ppareo/#!WordDocuments/procurementchapter11smallpurchases.htm'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Alameda
state: CA
type: City
threshold: $5,000
population: 76,419
url: 'https://www.municode.com/library/ca/alameda/codes/code_of_ordinances?nodeId=CHIIAD_ARTIVCO_2-59AUCO_2-59.1FOPP'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Palo Alto
state: CA
type: City
threshold: $25,000
population: 66,642
url: 'http:https://www.amlegal.com/nxt/gateway.dll/California/paloalto_ca/title2administrativecode*/chapter230contractsandpurchasingprocedur?f=templates$fn=altmain-nf.htm$q=[field%20folio-destination-name:%272.30.200%27]$x=Advanced#JD_2.30.200'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Baltimore
state: MD
type: City
threshold: $25,000
population: 622,104
url: 'http:https://archive.baltimorecity.gov/Portals/0/Charter%20and%20Codes/ChrtrPLL/01%20-%20Charter.pdf#page=138'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Atlanta
state: GA
type: City
threshold: $20,000
population: 440000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Austin
state: TX
type: City
threshold: $53,000
population: 840000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Boston
state: MA
type: City
threshold: $5,000
population: 645,966
url: 'http:https://www.cityofboston.gov/procurement/information/'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Charlotte
state: NC
type: City
threshold: $100,000
population: 780000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Chattanooga
state: TN
type: City
threshold: $24,999
population: 173,366
url: 'http:https://www.chattanooga.gov/general-services-files/purchasing/PurchasingManual.pdf#page=16'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Chicago
state: IL
type: CIty
threshold: $10,000
population: 2,722,389
url: 'http:https://www.cityofchicago.org/dam/city/depts/dps/Outreach/ProcurementFundamentalsGuideMay262010.pdf#page=10'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Denver
state: CO
type: City
threshold: $25,000
population: 649,495
url: 'https://www.denvergov.org/Portals/573/documents/HowToDoBusinessWithCCD_BidNet_ORD_Rev01_04182014.pdf#page=8'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Detroit
state: MI
type: City
threshold: $25,000
population: 700000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Honolulu
state: HI
type: City
threshold: $100,000
population: 375000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Kansas City
state: KS
type: City
threshold: $20,000
population: 150000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Las Vegas
state: NV
type: City
threshold: $50,000
population: 600000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Lexington
state: KY
type: City
threshold: $25,000
population: 300000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Long Beach
state: CA
type: City
threshold: $100,000
population: 469,428
url: 'https://www.municode.com/library/ca/long_beach/codes/municipal_code?nodeId=TIT2ADPE_CH2.84CO_DIVIGESUMA_2.84.010AUPUAGOTCO'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Louisville
state: KY
type: City
threshold: $10,000
population: 253,128
url: 'http:https://louisvilleky.gov/sites/default/files/internal_audit/audit_reports/2013-08_lmg_supplier_payment_threshold.pdf#page=9'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Macon
state: GA
type: City
threshold: $10,000
population: 90000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Mesa
state: AZ
type: City
threshold: $25,000
population: 450000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of New Orleans
state: LA
type: City
threshold: $15,000
population: 370000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of New York
state: NY
type: City
threshold: $100,000
population: 8340000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Oakland
state: CA
type: City
threshold: $25,000
population: 400000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Philadelphia
state: PA
type: City
threshold: $10,000
population: 1,560,297
url: 'http:https://www.phila.gov/phils/docs/otherinfo/089/vendor.htm#III'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of San Antonio
state: TX
type: City
threshold: $50,000
population: 1380000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of San Francisco
state: CA
type: City
threshold: $10,000
population: 830000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: County of San Mateo
state: CA
type: County
threshold: $100,000
population: 740000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Santa Cruz
state: CA
type: City
threshold: $100,000
population: 60000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Seattle
state: WA
type: City
threshold: $47,000
population: 630000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of South Bend
state: IN
type: City
threshold: $75,000
population: 100000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: State of Rhode Island
state: RI
type: State
threshold: $500,000
population: 1050000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Alexandria
state: VA
type: City
threshold: $50,000
population: 4031000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Colorado Springs
state: CO
type: City
threshold: $100,000
population: 432000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Danbury
state: CT
type: City
threshold: $5,000
population: 83000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Des Moines
state: IA
type: City
threshold: $25,000
population: 207000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Fort Worth
state: TX
type: City
threshold: $50,000
population: 778000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Houston
state: TX
type: City
threshold: $50,000
population: 2161000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of New Haven
state: CT
type: City
threshold: $10,000
population: 131000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Oklahoma City
state: OK
type: City
threshold: $25,000
population: 600000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Pittsburgh
state: PA
type: City
threshold: $30,000
population: 306000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of San Diego
state: CA
type: City
threshold: $25,000
population: 1,381,069
url: 'http:https://docs.sandiego.gov/municode/MuniCodeChapter02/Ch02Art02Division32.pdf#page=5'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Stamford
state: CT
type: City
threshold: $25,000
population: 125000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Temecula
state: CA
type: City
threshold: $30,000
population: 106,780
url: 'http:https://www.cityoftemecula.org/NR/rdonlyres/33A01115-430F-40DF-9B55-E90D068B0DDF/0/PurchasingLimits.p'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Tulsa
state: OK
type: City
threshold: $25,000
population: 394000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of Virginia Beach
state: VA
type: City
threshold: $50,000
population: 448000
contributed_by: Kenny Cunanan
updated_at: 2015-01-15
- agency: City of El Paso
state: TX
type: City
threshold: $49,999
population: 672,538
url: 'http:https://legacy.elpasotexas.gov/purchasing/ep-bid_policies.asp'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: Cleveland Metroparks
state: OH
type: Park District
threshold: $50,000
population: 390,113
url: 'http:https://www.clevelandmetroparks.com/Main/BiddingProcedures.aspx'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: SACOG
state: CA
type: Council of Governments
threshold: $50,000
population: 2,363,791
url: 'https://drive.google.com/file/d/0B7xNKjdrpz2mZ25BNWo5bWdyV044Tl9aamVHeVp5TlBfMDhr/view?usp=sharing'
contributed_by: Alan Mond
updated_at: 2015-10-07
- agency: City of Plano
state: TX
type: City
threshold: $50,000
population: 274,409
url: 'https://www.municode.com/library/tx/plano/codes/code_of_ordinances?nodeId=PTIICOOR_CH2AD_ARTIINGE_S2-12PRCO'
contributed_by: Alan Mond
updated_at: 2015-10-07
9 changes: 9 additions & 0 deletions helpers/data_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module DataHelper
def unique_keys(array_of_hash)
array_of_hash.map(&:keys).flatten.uniq
end

def extract_values(hash, keys)
keys.each_with_object([]) { |key, result| result.push(hash[key]) }
end
end
4 changes: 2 additions & 2 deletions source/procurement.csv.rcsv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
headers = data.procurement.first.keys
headers = unique_keys(data.procurement)
csv << headers
data.procurement.each do |agency|
csv << agency.values
csv << extract_values(agency, headers)
end

1 comment on commit 3515f18

@monkbroc
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closes #4

Please sign in to comment.