Commit graph

2675 commits

Author SHA1 Message Date
Thomas Lauf
654a209cb2 Combine color definitions 2019-01-21 14:18:16 +01:00
Thomas Lauf
fdecf9b6b1 Rearrange constant values 2019-01-21 14:18:16 +01:00
Thomas Lauf
4c095c60c6 Extract rules from determineHourRange 2019-01-21 14:18:16 +01:00
Thomas Lauf
f7b342cd50 Refactor renderExclusionBlocks
- rename variable cell to minutes_per_char
- introduce local variable cell_width
2019-01-21 14:18:16 +01:00
Thomas Lauf
211eaf3f94 Extract rules from renderAxis 2019-01-21 14:18:16 +01:00
Thomas Lauf
1390be6936 Add local variable cell_size 2019-01-21 14:18:16 +01:00
Thomas Lauf
0d31045361 Rename variables 2019-01-21 14:18:16 +01:00
Thomas Lauf
a9505fec3c Move up everything concerning rules and conflate it 2019-01-21 14:18:16 +01:00
Thomas Lauf
3cc808bbb7 Simplify renderSubTotal 2019-01-21 14:18:16 +01:00
Thomas Lauf
25609c598d Extract rules from renderSubTotal 2019-01-21 14:18:16 +01:00
Thomas Lauf
c73359ad7e Extract rules from renderTotal 2019-01-21 14:18:16 +01:00
Thomas Lauf
879a870c43 Add function separator comment 2019-01-21 14:18:16 +01:00
Thomas Lauf
fd9f13fc9f Partially extract rules from renderWeekday 2019-01-21 14:18:16 +01:00
Thomas Lauf
8ee689702d Partially extract rules from renderDay 2019-01-21 14:18:16 +01:00
Thomas Lauf
12140859dc Split renderDayName into renderWeekday and renderDay 2019-01-21 14:18:16 +01:00
Thomas Lauf
227344063e Extract rules from renderWeek 2019-01-21 14:18:16 +01:00
Thomas Lauf
7f7f2cb84a Extract rules from renderMonth 2019-01-21 14:18:16 +01:00
Thomas Lauf
1d3a19fd3f Split renderMonthAndWeek into renderMonth and renderWeek 2019-01-21 14:18:16 +01:00
Thomas Lauf
2f8638ac8b Refactor renderMonth
- rename to renderMonthAndWeek
2019-01-21 14:18:16 +01:00
Thomas Lauf
c4a8542287 Add braces, reformat code 2019-01-21 14:18:16 +01:00
Thomas Lauf
9711c10639 Move everything concerning rules up 2019-01-21 14:18:16 +01:00
Thomas Lauf
9294fae712 Extract with_totals from renderSubTotals 2019-01-21 14:18:16 +01:00
Thomas Lauf
551605a8ba Use getIndentSize(...) in renderSubTotal 2019-01-21 14:18:16 +01:00
Thomas Lauf
4484d507e3 Extract holidays from renderHolidays 2019-01-21 14:18:16 +01:00
Thomas Lauf
63d56a84d0 Extract type from renderHolidays 2019-01-21 14:18:16 +01:00
Thomas Lauf
61aebb3b4e Extract rules from renderSummary function 2019-01-21 14:18:16 +01:00
Thomas Lauf
ed49eb7650 Introduce variable 'axis_type' 2019-01-21 14:18:16 +01:00
Thomas Lauf
2f3c7990e0 Use default value of Rules::getInteger 2019-01-21 14:18:16 +01:00
Thomas Lauf
dff02d3d86 Let determineHourRange return a pair of ints
- Defaults to (0, 23)
2019-01-21 14:18:16 +01:00
Thomas Lauf
ea324d056a Use boolean variable instead of public field Palette::enabled 2019-01-21 14:18:16 +01:00
Thomas Lauf
37c7cc705d Use local variable for indent string 2019-01-21 14:18:16 +01:00
Thomas Lauf
b00d097e3e Extract function to calculate indent 2019-01-21 14:18:16 +01:00
Thomas Lauf
f5bbe5e1bc Let command join merge tags of given intervals 2019-01-20 23:25:54 +01:00
Thomas Lauf
de2c08ab82 Add test for joining closed and open interval 2019-01-20 23:16:12 +01:00
Thomas Lauf
b7cc9f2443 Make test use dynamic test data
- Fix test description
2019-01-20 23:12:49 +01:00
Thomas Lauf
02f05eec55 Fix filemode, faketime call 2019-01-20 23:10:17 +01:00
Thomas Lauf
68549dc22d Add a timemachine tool script
- Wrapper around faketime
- Provides an interface to run tests at specific points in time
2019-01-19 10:32:00 +01:00
Thomas Lauf
42acf839d9 Add descriptions to interval assertions 2019-01-19 10:32:00 +01:00
Thomas Lauf
6958c3a7f8 Create test data depending on the point in time the test runs 2019-01-19 10:32:00 +01:00
Thomas Lauf
c2546bacd8 Fix package name in pip install command 2019-01-13 23:34:18 +01:00
Thomas Lauf
b3f838aa65 Install dateutil via pip 2019-01-13 23:20:49 +01:00
Thomas Lauf
bb0539468a Setting environment variable via ENV 2019-01-13 23:17:24 +01:00
Thomas Lauf
368be8397e Remove comment 2019-01-13 22:19:40 +01:00
Thomas Lauf
50b15463bb Set timezone to Europe/Berlin via TZ environment variable 2019-01-13 22:07:53 +01:00
Thomas Lauf
65453fcf98 Install python-dateutil and set timezone on fedora 29 2019-01-07 22:16:09 +01:00
Thomas Lauf
595ec2ea8a Set timezone on fedora 28 2019-01-07 22:08:11 +01:00
Thomas Lauf
fc42580bbd Set timezone on openSUSE 2019-01-07 22:07:28 +01:00
Thomas Lauf
bdbb766a53 Add check for timedatectl on fedora 28 2019-01-07 21:53:51 +01:00
Thomas Lauf
7d50ba925f Install python-dateutil on centOS 7 2019-01-07 21:50:42 +01:00
Thomas Lauf
f6ac47d222 Install python-dateutil on openSUSE 2019-01-07 21:48:13 +01:00