Reinier Balt
0839765e7b
smaal refactoring and improvement of date handling in test
2014-03-31 11:22:23 +02:00
Reinier Balt
ed039d4c4a
small refactorings and add some tests
2014-03-31 11:09:00 +02:00
Reinier Balt
3cb18cd875
move tests from recurring_todo_test to respective repeat_pattern_tests
2014-03-31 09:43:39 +02:00
Reinier Balt
0c153ef28c
improve test of daily repeat pattern
2014-03-31 09:43:39 +02:00
Reinier Balt
b84adfc172
move recurrence text helpers into patterns. move next_date calculation into
...
respective models
2014-03-31 09:43:39 +02:00
Reinier Balt
d8507bf8b7
move as_text helpers to respective pattern
2014-03-31 09:43:39 +02:00
Reinier Balt
cbdbb792a5
add basis tests for patterns and remove doubles from recurring_todo_test.rb
2014-03-31 09:43:39 +02:00
Reinier Balt
5de96d7eda
add some more tests
2014-03-31 09:43:39 +02:00
Reinier Balt
b23338eaa2
fix updating of recurring todo and create a form helper for filling the recurring todo edit
...
form
2014-03-31 09:43:39 +02:00
Reinier Balt
59a29c664a
move form specific accessors out of model
2014-03-31 09:43:39 +02:00
Reinier Balt
bad91e8d10
make validations a bit more dry
2014-03-31 09:43:39 +02:00
Reinier Balt
29b815e998
move model validation into pattern classes and link from recurring_todo model
2014-03-31 09:43:39 +02:00
Reinier Balt
776a046465
move mapping of form attributes to model attributes from pattern to builder to make
...
pattern independent of form
2014-03-31 09:43:39 +02:00
Reinier Balt
c2c67f1640
use new model to handle updating of recurring todos
2014-03-31 09:43:39 +02:00
Reinier Balt
00af159be7
remove unused code and refactor builder to remove duplication
2014-03-31 09:43:39 +02:00
Reinier Balt
78c07d52b7
Start major refactoring of recurring_todos. Started with creating new recurring todos.
...
All current and new tests pass
2014-03-31 09:43:39 +02:00
Dan Rice
8e13059df1
Further improve time comparison in Project model
2014-03-30 21:49:12 -04:00
Dan Rice
ece69b8540
Use Date class to assist with date math in Project model
...
Fixes an intermittent failure in ProjectTest#test_age_in_days
2014-03-30 17:26:31 -04:00
Reinier Balt
17dca39d3a
update gems and fix i18n and aasm deprecation warnings
2013-12-30 20:52:35 +01:00
Greg Sutcliffe
2f043911c6
Extend RichMessage format to include other data
...
Uses new Regex to detect:
@ context
~ project
> tickler-date
< due-date
# tag (repeatable)
* (starred)
2013-10-16 21:25:47 +01:00
Reinier Balt
9f55a45ec6
refactor search controller
2013-09-25 15:38:51 +02:00
Reinier Balt
067db90d58
various small refactorings
2013-09-22 17:34:58 +02:00
Greg Sutcliffe
8a2da01d51
Add Mailgun endpoint for receiving email tasks via Mailgun
2013-09-21 12:43:22 +01:00
Reinier Balt
62bc47b26b
fix regression in recurring todos
2013-09-17 15:40:20 +02:00
Reinier Balt
a31c0a7a5d
fix import for csv
2013-09-16 11:37:16 +02:00
Reinier Balt
94114746e7
Merge pull request #209 from iangreenleaf/monthly_recurring_bug
...
Fix endlessly repeating monthly recurring todos
2013-09-15 00:48:40 -07:00
Ian Young
a6c32889ce
Bug repeating monthly recurring todos
2013-09-14 18:12:56 -07:00
Ian Young
aff7069c0e
Fix bug assigning value from every_x_day input
2013-09-13 23:15:11 -07:00
Reinier Balt
e2eb31cfcc
Merge pull request #206 from mmozuras/refactor_unless_blanks_into_presents
...
Refactor unless blanks into presents
2013-09-13 06:08:16 -07:00
Mindaugas Mozūras
25e764b21a
Refactor "unless blank?" into "if present?"
2013-09-13 15:40:09 +03:00
Mindaugas Mozūras
a97848f0ba
Refactor negative blank? into present?
2013-09-13 15:19:25 +03:00
Reinier Balt
fee1e3b504
fix failing test on timezones and remove debug message
2013-09-05 12:23:26 +02:00
Reinier Balt
cb46a8461e
fix show_from not being clear when a todo comes from tickler
2013-09-05 12:21:43 +02:00
Matt Rogers
6681df9530
Merge pull request #202 from TracksApp/extract-extras-from-user
...
Extract time and date concerns from User
2013-08-01 14:59:17 -07:00
Matt Rogers
96777c2e3a
Replace User#time with UserTime#time
2013-07-30 16:21:04 -05:00
Matt Rogers
8512e8db3b
rename DateUtils to UserTime
2013-07-29 21:51:15 -05:00
Matt Rogers
6c695aa61a
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.
2013-07-29 21:43:05 -05:00
Matt Rogers
07a983ca1c
clean up whitespace
2013-07-29 16:36:52 -05:00
Matt Rogers
a1aaa283f1
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.
2013-07-29 16:34:23 -05:00
Reinier Balt
4c4ce911fc
Merge pull request #199 from shaded2/csv_import
...
Csv import
2013-07-26 03:04:07 -07:00
Darren Cato
2feb907204
made changes to MAX_DESCRIPTION_LENGTH everywhere
2013-07-23 01:52:47 -04:00
Darren Cato
2e13affdce
typos and style tweaks
2013-07-23 01:28:43 -04:00
Matt Rogers
bcbfe42899
Merge pull request #195 from doncruse/master
...
Removing some intermediate values and shifting HTML formatting to a helper
2013-07-22 19:44:18 -07:00
Darren Cato
3450c22e97
first pass at csv import functionality for tracks
2013-07-21 13:37:35 -04:00
Reinier Balt
28e3f377a8
fix failing validation on creating recurring todos
2013-07-20 14:40:50 +02:00
Don Cruse
9073fa1237
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-18 22:32:44 -05: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 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