https://github.com/code-lever/douglas-ne-checks
Ruby gem for reading Douglas County, NE check dumps in a decentish way.
https://github.com/code-lever/douglas-ne-checks
Last synced: 3 months ago
JSON representation
Ruby gem for reading Douglas County, NE check dumps in a decentish way.
- Host: GitHub
- URL: https://github.com/code-lever/douglas-ne-checks
- Owner: code-lever
- License: mit
- Created: 2013-09-16T00:14:23.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T14:37:16.000Z (over 7 years ago)
- Last Synced: 2025-03-03T15:17:05.460Z (about 1 year ago)
- Language: HTML
- Size: 233 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Douglas::NE::Checks
[](https://travis-ci.org/code-lever/douglas-ne-checks) [](https://codeclimate.com/github/code-lever/douglas-ne-checks)
Inspired by [@OpenNebraska](https://twitter.com/OpenNebraska)'s presentation @ [HOW Conf 2013](http://www.howconf.org), 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](http://www.douglascountyclerk.org/supplierchecks) that the Douglas County Clerk's office provides weekly.
So instead of this: [example check dump](http://www.douglascountyclerk.org/images/stories/4-1-2014%20Supplier%20Checks%20by%20Dept.htm).
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 => #,
: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 }
]
} ]
},
# ...
]
}
## Installation
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
## Usage
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request