GitXplorerGitXplorer
s

nifty-report

public
0 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
076a8443de3882f163d04ffbea2a0edc95480d66

Update README.md

ssalbertson committed 10 years ago
Unverified
3e9cf9de25185647f47a192dcfa2d3c9fd5f6d53

Bump version to 0.0.6

ssalbertson committed 11 years ago
Unverified
be89e5af206c507e2462260b11799dfd021404d6

Increase expiration to 30 minutes

ssalbertson committed 11 years ago
Unverified
0a57650d33f983f39c29116ec1df7e6ff49593e4

Revert "Include hours and minutes in filename"

ssalbertson committed 11 years ago
Unverified
111281e83502a4b372256eca8525bfca2963053f

Bump version to 0.0.5

ssalbertson committed 11 years ago
Unverified
5c988f3ab01eaedeec962d7092b9f48ed289472d

Include hours and minutes in filename

ssalbertson committed 11 years ago

README

The README file for this repository.

Nifty::Report

Create reports the easy way.

Installation

Add this line to your application's Gemfile:

gem 'nifty-report'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nifty-report

Usage

report = Nifty::Report.new('SELECT * FROM users', 'User Report')
report.csv

or

report = Nifty::Report.new('SELECT * FROM users', 'User Report')
report.email_to('jimtom@example.com')

A CSV of all users in the database will be emailed to Jim Tom. You could use a job queue to delay this as well, which I would recommend.

Contributing

  1. Fork it ( http://github.com//nifty-report/fork )
  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