update gems
add json as dependency
Fixing bug #1442

This bug was caused when the chart encountered data outside of its
visible range (i.e., the upper bound of the array size). A test was
added that inserts some data from 2 years and 16 months in the past.
The test failed on the old version, throwing exactly the error in bug
report #1442.

The fix is to check whether or not the value is within the array range
before sending the "+=" operator. With this change, the test passes.
Merge pull request #201 from doncruse/bug1442

Fixing bug #1442
Remove User#at_midnight

Replace it with a class called DateUtils with a method called
`#midnight_for` that takes a preference instance and date to convert to
midnight.
clean up whitespace
Fix a date-based issue in the project tests

Due to time zone issues, this test was failing for me because it was
attempting to compare a date in my local time zone with a UTC date.
rename DateUtils to UserTime
Replace User#time with UserTime#time
Merge pull request #202 from TracksApp/extract-extras-from-user

Extract time and date concerns from User