lewt 0.5.13 → 0.5.15
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 +4 -4
- data/README.md +1 -1
- data/lib/config/settings.yml +0 -3
- data/lib/extensions/calendar-timekeeping/ical_extractor.rb +2 -1
- data/lib/extensions/simple-expenses.rb +1 -1
- data/lib/extensions/simple-milestones.rb +1 -1
- data/lib/lewt.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3581e85c9fcba3077715f92dad254831a1b839d7
|
4
|
+
data.tar.gz: 95ba81644977904d492f521b06e235e55f27160a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241631afbae50ffae78e601e92aac0de90311866294243affc1b5df01866302aa182e8ca8586bc52ab8bbd2c2d9e2e8524ab61146d036891df51142d2cdf7368
|
7
|
+
data.tar.gz: 92ab65321d70334c51265ce6498da6040055a3c31713603497e52a71a558363d0351d36f2e21003080f7a1f7665263799129f8637ee64d6d2775faedaa9affc2
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# LEWT v0.5.
|
1
|
+
# LEWT v0.5.15
|
2
2
|
|
3
3
|
LEWT is a command line program & library written in Ruby that can help you invoice customers, manage expenses, generate reports and much more. It is designed to encourage lazy accounting, to get more out of it, and to be extended with minimal friction.
|
4
4
|
|
data/lib/config/settings.yml
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
---
|
2
|
-
ical_filepath: tests/LEWT Schedule.ics
|
3
2
|
osxcal_path: /path/to/osxcalender/dir/
|
4
3
|
gmail_username: you@google.com
|
5
4
|
gmail_password: your_secret
|
6
5
|
gmail_app_name: some-goggle-hash-code
|
7
|
-
expenses_filepath: tests/expenses.csv
|
8
|
-
milestones_filepath: tests/milestones.csv
|
9
6
|
store_path: /path/to/store/dir/
|
10
7
|
invoice_id_counter: 12
|
@@ -16,7 +16,8 @@ module CalendarExtractors
|
|
16
16
|
|
17
17
|
# Initialises the object and calls the parent class' super() method.
|
18
18
|
def initialize( dateStart, dateEnd, targets, lewt_settings, suppressTargets )
|
19
|
-
@calendarPath = lewt_settings["ical_filepath"]
|
19
|
+
@calendarPath = lewt_settings["ical_filepath"] || File.expand_path(File.join(File.dirname(__FILE__), "../../../tests/LEWT Schedule.ics"))
|
20
|
+
|
20
21
|
super( dateStart, dateEnd, targets )
|
21
22
|
end
|
22
23
|
|
@@ -40,7 +40,7 @@ module LEWT
|
|
40
40
|
@dEnd = options[:end]
|
41
41
|
@category = 'Expenses'
|
42
42
|
@include_own_expenses = options[:include_own]
|
43
|
-
exFile = lewt_settings["expenses_filepath"]
|
43
|
+
exFile = lewt_settings["expenses_filepath"] || File.expand_path(File.join(File.dirname(__FILE__), "../../../tests/expenses.csv"))
|
44
44
|
return get_expenses ( exFile )
|
45
45
|
end
|
46
46
|
|
@@ -33,7 +33,7 @@ module LEWT
|
|
33
33
|
@dStart = options[:start].to_date
|
34
34
|
@dEnd = options[:end].to_date
|
35
35
|
@targets = self.get_matched_customers(options[:target])
|
36
|
-
exFile = lewt_settings["milestones_filepath"]
|
36
|
+
exFile = lewt_settings["milestones_filepath"] || File.expand_path(File.join(File.dirname(__FILE__), "../../../tests/milestones.csv"))
|
37
37
|
return get_milestones ( exFile )
|
38
38
|
end
|
39
39
|
|
data/lib/lewt.rb
CHANGED
@@ -16,7 +16,7 @@ require_relative 'lewt_ledger.rb'
|
|
16
16
|
# This module acts as a container for the LEWT namespace
|
17
17
|
module LEWT
|
18
18
|
|
19
|
-
VERSION = "0.5.
|
19
|
+
VERSION = "0.5.15"
|
20
20
|
|
21
21
|
# The Lewt class contains the major functionality of this program.
|
22
22
|
# It handles loading all extensions, gathering the results and passing options ariound the place.
|