Commit graph

2847 commits

Author SHA1 Message Date
Matt Rogers
a89e26bc97 Update the version specifier for timecop 2013-07-28 13:28:42 +02:00
Tim Madden
9d51c01b21 Update db/schema with new syntax 2013-07-28 13:28:16 +02:00
Darren Cato
c9c1569de0 i18n changes 2013-07-28 13:28:15 +02:00
Matt Bridges
84795cdead Pull apart the LoginController#login action
Begin pulling apart the different paths through the login action to
better understand how the action responds given different state.
2013-07-28 13:28:15 +02:00
Darren Cato
eee9bd907c made changes to MAX_DESCRIPTION_LENGTH everywhere 2013-07-28 13:28:15 +02:00
Darren Cato
bf99e8046a typos and style tweaks 2013-07-28 13:28:15 +02:00
Darren Cato
7e076290b8 first pass at csv import functionality for tracks 2013-07-28 13:28:15 +02:00
Brett A. Rogers
9820143dee Move calendar test down to unit tests
Remove tests that are specific to the calendar model from controller
test and move them to unit tests.
2013-07-28 13:27:28 +02:00
Brett A. Rogers
d541fc24d7 Fix setup for calendar controller test
Ensure that the expected todos are actually due in the same month
2013-07-28 13:27:28 +02:00
Don Cruse
25f80bcf8b Moving label creation to helpers 2013-07-28 13:27:28 +02:00
Don Cruse
3babc05a2d Moving time labels to separate methods 2013-07-28 13:27:28 +02:00
Don Cruse
98a9acf741 Simplufying interpolation method 2013-07-28 13:27:28 +02:00
Don Cruse
1b7613f61b Tweak to running averages 2013-07-28 13:27:27 +02:00
Don Cruse
180a6cddf9 Removing a single-line method 2013-07-28 13:27:27 +02:00
Don Cruse
b595bd23ab Combining the running average methods 2013-07-28 13:27:27 +02:00
Don Cruse
bee43e21e9 Removing some more intermediate values
Also removing the python-esque combination methods to set multiple
disparate variables from a single method by refactoring that to a
simpler method.

Reducing the complexity of computing running averages.

Note: It is not clear to me why the actions_done_lastyears_data
action is entirely unscoped on date. That seems to be the expected
behavior, so I left it alone.
2013-07-28 13:27:27 +02:00
Don Cruse
d4bd8ed4db Removing some intermediate values
This removes some intermediate steps that were ultimately not necessary
to the math.  It also consolidates some of the methods for counting events
so that fewer intermediate values are necessary.

To that end, a new scope is added to the ToDo model for events that are
*either* created_at or completed_at after a certain date. This scope
allows the StatsController to pull out the largest possible responsive
set of values, and then filter just the particular slices that it needs
for various steps in the calculation.
2013-07-28 13:27:27 +02:00
Darren Cato
9de6d85342 modified gitignore 2013-07-28 13:27:27 +02:00
Matt Rogers
c9d7fd1124 Use the proper version of timecop 2013-07-22 22:27:04 -05:00
Reinier Balt
79fdd5d625 implement go to project with autocomplete 2013-07-20 23:21:24 +02:00
Reinier Balt
01005cc3d3 Merge branch 'master' into new-gui 2013-07-20 14:41:44 +02:00
Reinier Balt
28e3f377a8 fix failing validation on creating recurring todos 2013-07-20 14:40:50 +02:00
Reinier Balt
ff1fa62d4d Merge branch 'master' into new-gui 2013-07-19 18:29:50 +02:00
Matt Rogers
c28ffd6763 Merge pull request #193 from mattdbridges/extract-rich-message
Extract behavior from Todo.from_rich_message
2013-07-18 20:12:03 -07:00
Matt Rogers
bc61f15c6c Merge pull request #194 from stacyvlasits/master
fixed next month label for calendar view
2013-07-18 20:09:18 -07:00
Matt Rogers
efc09f9d3e Merge pull request #192 from crymer11/master
use a null object like a boss
2013-07-18 19:54:06 -07:00
Matt Rogers
08d872e3c1 Merge pull request #191 from doncruse/master
Refactor last year chart
2013-07-18 19:52:12 -07:00
Don Cruse
70f633c150 Shifting more instance variables to the controller
Also removing some instance variables that were never invoked in the
views. This sets up a future refactoring of the method of comptuting
rolling averages, which differs between the two types of "last year"
views being refactored.
2013-07-18 21:01:39 -05:00
Matt Bridges
ecdade33c3 Pull out RichMessageExtractor
No need to have it embedded
  when it should be unit tested!
2013-07-18 18:34:09 -05:00
Stacy Vlasits
9896705bf2 fixed next month label for calendar view 2013-07-18 16:43:05 -05:00
Matt Bridges
519e3df4d4 TodoFromRichMessage is really a service object 2013-07-18 16:41:28 -05:00
Colin Rymer
0a5936fecf use a null object like a boss 2013-07-18 16:37:34 -05:00
Matt Bridges
c2111b2f8e Extract behavior from Todo.from_rich_message
`Todo.from_rich_message` was partially tested from the MessageGateway,
but it is mostly untested and does not belong in Todo due to it's unique
nature. Extract it entirely from `Todo` into it's own dedicated object
for unit testing.
2013-07-18 16:35:51 -05:00
Matt Rogers
6d963f81c0 Merge pull request #190 from crymer11/master
remove `return`s and clean up some conditionals
2013-07-18 14:21:34 -07:00
Don Cruse
1493304fc1 Refactor last year chart
Pulled some instance variable assignment into the controller.

Also extracted a method regarding interpolated values for the present
month.
2013-07-18 16:17:30 -05:00
Colin Rymer
55e2f5b6a1 remove returns and clean up some conditionals 2013-07-18 16:03:18 -05:00
Matt Rogers
0877bf9ab8 Merge pull request #189 from crymer11/master
Stylistic changes and metaprogramming refactoring
2013-07-18 13:29:06 -07:00
Matt Rogers
a27f4f1dd4 Merge pull request #188 from maddentim/fixes-mobile
Fix #1438 by adding mobile stylesheets to asset pipeline
2013-07-18 13:27:38 -07:00
Colin Rymer
c71dc9afc9 remove boolean returning ternary expression 2013-07-18 15:22:46 -05:00
Colin Rymer
c5968b798c better leverage Hash#each for metaprogramming 2013-07-18 15:13:30 -05:00
Colin Rymer
332589163c metaprogramming and stylistic changes
- Use `define_method` to clean up definition of methods that only
   vary by the name of the day they reference and the corresponding
   numerical value.

 - Remove calls to self, explicit return statements, etc.
2013-07-18 15:01:02 -05:00
Colin Rymer
45df84b739 consolidate validates_presence_of validations 2013-07-18 14:10:14 -05:00
Tim Madden
3a290c0f6e Fix #1438 by adding mobile stylesheets to asset pipeline 2013-07-18 11:11:16 -05:00
Reinier Balt
d670839460 Merge branch 'master' into new-gui 2013-07-13 23:19:42 +02:00
Reinier Balt
a201ecf737 Merge pull request #187 from TracksApp/https-gemfile
Use HTTPS URIs for git repos
2013-07-09 08:07:53 -07:00
Matt Rogers
8e4154e24a Use HTTPS URIs for git repos 2013-07-09 09:56:52 -05:00
Reinier Balt
c7aa8ca597 add submenu to todos 2013-07-06 13:20:58 +02:00
Reinier Balt
c5884a3f3c Merge branch 'master' into new-gui 2013-07-05 17:03:36 +02:00
Reinier Balt
9f4cec3117 Fix #1433 by adding login and print stylesheets to asset pipeline 2013-07-05 17:03:01 +02:00
Reinier Balt
9522a611cd Merge pull request #186 from rnck/mylocalisation
updated german locale de.yml
2013-07-03 06:52:05 -07:00