Inspired by @OpenNebraska's presentation @ HOW Conf 2013, I figured I'd do a little civic hacking.
This gem will convert (as of the time of writing, of course) the HTML dumps of supplier's checks that the Douglas County Clerk's office provides weekly.
So instead of this: example check dump.
We can have a decent API, and if you want the fire hose you can have this (Ruby Hash):
{
:funds => [
[0] {
:name => "11111 - GENERAL",
:organizations => [
[0] {
:name => "501012 - GENERAL OFFICE ASSESSOR",
:entries => [
[0] {
:supplier => "DOT COMM",
:account => "42541 - VOICE COMMUNICATIONS SERVICES(LOCAL&LONG DISTANCE)",
:description => "DOT.Comm - RSI - Chargeback/Quotation 2339",
:invoice => "90868",
:check_number => 355797,
:check_date => #<Date: 2013-06-04 ((2456448j,0s,0n),+0s,2299161j)>,
:check_status => "NEGOTIABLE",
:amount => 375.0
}
]
},
]
# ...
}
]
}
Where the basic structure is:
{
:funds => [ {
:name => 'Fund Name 1',
:organizations => [ {
:name => 'Organization 1',
:entries => [
{ entry 0 },
{ entry 1 }
]
} ]
},
# ...
]
}
Add this line to your application's Gemfile:
gem 'douglas-ne-checks'
And then execute:
$ bundle
Or install it yourself as:
$ gem install douglas-ne-checks
TODO: Write usage instructions here
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request