thefox-wallet 0.19.4 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1084057873d1e08c69b96d17aa580113571490863f7850381b2c3ac066e654ca
4
- data.tar.gz: 6d6f58e8985bd3a715c038c648e85f4f3feb33d91d3e9b038ca8ef55301f8b92
3
+ metadata.gz: '078db9032bda2206a976622f6ba05437fc9a530c15f762b2eeb87876e658268e'
4
+ data.tar.gz: a07dff735e5295c4c812ded9a34c863b33af22821c7fe7040bef6e0f7712148a
5
5
  SHA512:
6
- metadata.gz: 36424ca5e789a81dd032721057f9fc3a5db143e1e164893c79ba6a89ce4c52800b81c936d2522e4071dcf278c4306f5bad97b6974fc2ed19ad3b81085e5d7f61
7
- data.tar.gz: 06fb6b3d164ecd518be8bcd32f3dadb5e710411ee08894f9be96441acd0a754e490664355dee58f3f76d85da2df2dadbb330c351c0f7572760d3a803bba69e5d
6
+ metadata.gz: '0956651df207eb1a24a9efa266cf9e4511847c50befd725b26bbdc21864bb760c145d1ef03ddfa45851cd31329a98ea01b93571e899815d07bc2df0aa00d2f44'
7
+ data.tar.gz: eaa1fd035de2d5fd6bd5c38d8bae349634026ed71fa6b6fc7092657981923455bf46b954f93d21194c75849ea0c0313bde9adf9892323653c8da5c04a56cc6d5
@@ -1,6 +1,5 @@
1
1
  before_script:
2
- - gem update --system
3
- - gem install bundler
2
+ - ruby --version
4
3
  - bundler --version
5
4
  - bundler install
6
5
  - ./bin/dev_data.sh
@@ -2,8 +2,8 @@
2
2
  module TheFox
3
3
  module Wallet
4
4
  NAME = 'Wallet'
5
- VERSION = '0.19.4'
6
- DATE = '2018-09-01'
5
+ VERSION = '0.20.1'
6
+ DATE = '2018-12-25'
7
7
  HOMEPAGE = 'https://github.com/TheFox/wallet'
8
8
 
9
9
  NUMBER_FORMAT = '%.2f'
@@ -2,21 +2,30 @@
2
2
  /* Style */
3
3
 
4
4
  html {
5
- -webkit-text-size-adjust: none;
5
+ -webkit-text-size-adjust: none;
6
6
  }
7
+
7
8
  table.list, table.list th, table.list td {
8
- border: 1px solid black;
9
+ border: 1px solid black;
9
10
  }
10
- th.left, td.left {
11
- text-align: left;
11
+
12
+ tfoot {
13
+ font-weight: bold;
12
14
  }
13
- th.right, td.right {
14
- text-align: right;
15
+
16
+ .left {
17
+ text-align: left;
15
18
  }
16
- th.first_column {
17
- min-width: 180px;
18
- width: 300px;
19
+
20
+ .right {
21
+ text-align: right;
19
22
  }
20
- th.red, td.red {
21
- color: #ff0000;
23
+
24
+ .first_column {
25
+ min-width: 180px;
26
+ width: 300px;
27
+ }
28
+
29
+ .red {
30
+ color: #ff0000;
22
31
  }
@@ -12,31 +12,37 @@
12
12
  <p>Generated @ {{ now }} by <a href="{{ app_homepage }}">{{ app_name }}</a> v{{ app_version }}</p>
13
13
 
14
14
  <table class="list">
15
- <tr>
16
- <th class="left">Year</th>
17
- <th class="right">Revenue</th>
18
- <th class="right">Expense</th>
19
- <th class="right">Balance</th>
20
- <th class="right">Balance &#8721;</th>
21
- </tr>
22
-
23
- {% for year in years_total_formatted %}
15
+ <thead>
24
16
  <tr>
25
- <td class="left"><a href="year_{{ year['name'] }}.html">{{ year['name'] }}</a></td>
26
- <td class="right">{{ year['revenue'] }}</td>
27
- <td class="right red">{{ year['expense'] }}</td>
28
- <td class="right {{ year['balance_class'] }}">{{ year['balance'] }}</td>
29
- <td class="right {{ year['balance_total_class'] }}">{{ year['balance_total'] }}</td>
17
+ <th class="left">Year</th>
18
+ <th class="right">Revenue</th>
19
+ <th class="right">Expense</th>
20
+ <th class="right">Balance</th>
21
+ <th class="right">Balance &#8721;</th>
30
22
  </tr>
31
- {% endfor %}
23
+ </thead>
24
+
25
+ <tbody>
26
+ {% for year in years_total_formatted %}
27
+ <tr>
28
+ <td class="left"><a href="year_{{ year['name'] }}.html">{{ year['name'] }}</a></td>
29
+ <td class="right">{{ year['revenue'] }}</td>
30
+ <td class="right red">{{ year['expense'] }}</td>
31
+ <td class="right {{ year['balance_class'] }}">{{ year['balance'] }}</td>
32
+ <td class="right {{ year['balance_total_class'] }}">{{ year['balance_total'] }}</td>
33
+ </tr>
34
+ {% endfor %}
35
+ </tbody>
32
36
 
33
- <tr>
34
- <th class="left"><b>TOTAL</b></th>
35
- <th class="right">{{ revenue_total }}</th>
36
- <th class="right red">{{ expense_total }}</th>
37
- <th class="right {{ balance_total_class }}">{{ balance_total }}</th>
38
- <th>&nbsp;</th>
39
- </tr>
37
+ <tfoot>
38
+ <tr>
39
+ <td class="left">TOTAL</td>
40
+ <td class="right">{{ revenue_total }}</td>
41
+ <td class="right red">{{ expense_total }}</td>
42
+ <td class="right {{ balance_total_class }}">{{ balance_total }}</td>
43
+ <td>&nbsp;</td>
44
+ </tr>
45
+ </tfoot>
40
46
  </table>
41
47
 
42
48
  <p><img src="total.png"></p>
@@ -2,52 +2,60 @@
2
2
  <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
3
3
  <head>
4
4
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
5
- <title>{{ month_s }} {{ year_s }} - {{ dir_path }}</title>
5
+ <title>{{ month_s }} {{ year_s }} -- {{ dir_path }}</title>
6
6
  <link rel="stylesheet" href="style.css" type="text/css" />
7
7
  </head>
8
8
 
9
9
  <body>
10
10
  <h1><a href="./index.html">{{ dir_path }}</a></h1>
11
11
 
12
- <p>Generated @ {{ now }} by <a href="{{ app_homepage }}">{{ app_name }}</a> v{{ app_version }} from <code>{{ file_name_s }}</code></p>
12
+ <p>
13
+ Generated @ {{ now }} by <a href="{{ app_homepage }}">{{ app_name }}</a> v{{ app_version }} from <code>{{ file_name_s }}</code>
14
+ </p>
13
15
 
14
16
  <h2>Month: {{ month_s }} <a href="{{ year_file_name_s }}">{{ year_s }}</a></h2>
15
17
 
16
18
  <table class="list">
17
- <tr>
18
- <th class="left">#</th>
19
- <th class="left">Date</th>
20
- <th class="left first_column">Title</th>
21
- <th class="right">Revenue</th>
22
- <th class="right">Expense</th>
23
- <th class="right">Balance</th>
24
- <th class="right">Category</th>
25
- <th class="left">Comment</th>
26
- </tr>
27
-
28
- {% for day in days %}
19
+ <thead>
29
20
  <tr>
30
- <td valign="top" class="left">{{ day['entry_n'] }}</td>
31
- <td valign="top" class="left">{{ day['entry_date_s'] }}</td>
32
- <td valign="top" class="left">{{ day['title'] }}</td>
33
- <td valign="top" class="right">{{ day['revenue_out'] }}</td>
34
- <td valign="top" class="right red">{{ day['expense_out'] }}</td>
35
- <td valign="top" class="right {{ day['balance_class'] }}">{{ day['balance'] }}</td>
36
- <td valign="top" class="right">{{ day['category_out'] }}</td>
37
- <td valign="top" class="left">{{ day['comment_out'] }}</td>
21
+ <th class="left">#</th>
22
+ <th class="left">Date</th>
23
+ <th class="left first_column">Title</th>
24
+ <th class="right">Revenue</th>
25
+ <th class="right">Expense</th>
26
+ <th class="right">Balance</th>
27
+ <th class="right">Category</th>
28
+ <th class="left">Comment</th>
38
29
  </tr>
39
- {% endfor %}
30
+ </thead>
31
+
32
+ <tbody>
33
+ {% for day in days %}
34
+ <tr>
35
+ <td valign="top" class="left">{{ day['entry_n'] }}</td>
36
+ <td valign="top" class="left">{{ day['entry_date_s'] }}</td>
37
+ <td valign="top" class="left">{{ day['title'] }}</td>
38
+ <td valign="top" class="right">{{ day['revenue_out'] }}</td>
39
+ <td valign="top" class="right red">{{ day['expense_out'] }}</td>
40
+ <td valign="top" class="right {{ day['balance_class'] }}">{{ day['balance'] }}</td>
41
+ <td valign="top" class="right">{{ day['category_out'] }}</td>
42
+ <td valign="top" class="left">{{ day['comment_out'] }}</td>
43
+ </tr>
44
+ {% endfor %}
45
+ </tbody>
40
46
 
41
- <tr>
42
- <th>&nbsp;</th>
43
- <th>&nbsp;</th>
44
- <th class="left"><b>TOTAL</b></th>
45
- <th class="right">{{ revenue_month }}</th>
46
- <th class="right red">{{ expense_month }}</th>
47
- <th class="right {{ balance_class }}">{{ balance_month }}</th>
48
- <th>&nbsp;</th>
49
- <th>&nbsp;</th>
50
- </tr>
47
+ <tfoot>
48
+ <tr>
49
+ <td>&nbsp;</td>
50
+ <td>&nbsp;</td>
51
+ <td class="left">TOTAL</td>
52
+ <td class="right">{{ revenue_month }}</td>
53
+ <td class="right red">{{ expense_month }}</td>
54
+ <td class="right {{ balance_class }}">{{ balance_month }}</td>
55
+ <td>&nbsp;</td>
56
+ <td>&nbsp;</td>
57
+ </tr>
58
+ </tfoot>
51
59
  </table>
52
60
 
53
61
  </body>
@@ -2,7 +2,7 @@
2
2
  <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
3
3
  <head>
4
4
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
5
- <title>{{ year_s }} - {{ dir_path }}</title>
5
+ <title>{{ year_s }} -- {{ dir_path }}</title>
6
6
  <link rel="stylesheet" href="style.css" type="text/css" />
7
7
  </head>
8
8
 
@@ -13,44 +13,50 @@
13
13
 
14
14
  <h2>Year: {{ year_s }}</h2>
15
15
  <table class="list">
16
- <tr>
17
- <th class="left">Month</th>
18
- <th class="right">Revenue</th>
19
- <th class="right">Expense</th>
20
- <th class="right">Balance</th>
21
- <th colspan="{{ categories_available_count }}">{{ categories_available_count }} Categories</th>
22
- </tr>
23
- <tr>
24
- <th colspan="4">&nbsp;</th>
25
-
26
- {% for category in categories_available %}
27
- <th class="right">{{ category }}</th>
28
- {% endfor %}
29
- </tr>
30
-
31
- {% for month in months %}
16
+ <thead>
32
17
  <tr>
33
- <td class="left"><a href="{{ month['month_file_name_s'] }}">{{ month['month_s'] }}</a></td>
34
- <td class="right">{{ month['revenue_month'] }}</td>
35
- <td class="right red">{{ month['expense_month'] }}</td>
36
- <td class="right {{ month['balance_class'] }}">{{ month['balance_month'] }}</td>
18
+ <th class="left">Month</th>
19
+ <th class="right">Revenue</th>
20
+ <th class="right">Expense</th>
21
+ <th class="right">Balance</th>
22
+ <th colspan="{{ categories_available_count }}">{{ categories_available_count }} Categories</th>
23
+ </tr>
24
+ <tr>
25
+ <th colspan="4">&nbsp;</th>
37
26
 
38
- {% for category in month['categories'] %}
39
- <td class="right {{ category['class'] }}">{{ category['balance'] }}</td>
27
+ {% for category in categories_available %}
28
+ <th class="right">{{ category }}</th>
40
29
  {% endfor %}
41
30
  </tr>
42
- {% endfor %}
31
+ </thead>
43
32
 
44
- <tr>
45
- <th class="left"><b>TOTAL</b></th>
46
- <th class="right">{{ revenue_year }}</th>
47
- <th class="right red">{{ expense_year }}</th>
48
- <th class="right {{ balance_year_class }}">{{ balance_year }}</th>
49
-
50
- {% for category in categories_available %}
51
- <th class="right {{ categories_year_balance_formatted[category]['class'] }}">{{ categories_year_balance_formatted[category]['balance'] }}</th>
33
+ <tbody>
34
+ {% for month in months %}
35
+ <tr>
36
+ <td class="left"><a href="{{ month['month_file_name_s'] }}">{{ month['month_s'] }}</a></td>
37
+ <td class="right">{{ month['revenue_month'] }}</td>
38
+ <td class="right red">{{ month['expense_month'] }}</td>
39
+ <td class="right {{ month['balance_class'] }}">{{ month['balance_month'] }}</td>
40
+
41
+ {% for category in month['categories'] %}
42
+ <td class="right {{ category['class'] }}">{{ category['balance'] }}</td>
43
+ {% endfor %}
44
+ </tr>
52
45
  {% endfor %}
53
- </tr>
46
+ </tbody>
47
+
48
+ <tfoot>
49
+ <tr>
50
+ <td class="left">TOTAL</td>
51
+ <td class="right">{{ revenue_year }}</td>
52
+ <td class="right red">{{ expense_year }}</td>
53
+ <td class="right {{ balance_year_class }}">{{ balance_year }}</td>
54
+
55
+ {% for category in categories_available %}
56
+ <td class="right {{ categories_year_balance_formatted[category]['class'] }}">{{ categories_year_balance_formatted[category]['balance'] }}</td>
57
+ {% endfor %}
58
+ </tr>
59
+ </tfoot>
54
60
  </table>
55
61
 
56
62
  <p><img src="year_{{ year_s }}.png"></p>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thefox-wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.4
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Mayer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-01 00:00:00.000000000 Z
11
+ date: 2018-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.7.7
161
+ rubygems_version: 2.7.8
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Finances Tracking