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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e527276e57b6a1ab8e34889b1460b10e9d63ea30
4
- data.tar.gz: d326e5a0e2dd274862c59a79670afe069aba3948
3
+ metadata.gz: 3581e85c9fcba3077715f92dad254831a1b839d7
4
+ data.tar.gz: 95ba81644977904d492f521b06e235e55f27160a
5
5
  SHA512:
6
- metadata.gz: 231bd7598a138c8e546ef9325b13fd06409c345359e814cb04dd04d17b469f2c0ed0742f85a5f5c10902ccf0380d112ddc0f5693c4dea5871aaf8848d3cc4e3b
7
- data.tar.gz: aa85cb4f5acc6c21f8c8d7bf1b5847c8e91a95bab117806c254a73924e061f2237289e28a788a1ab43c670c0a843cd4f23bf14cce9c9713fa83b0c717038fcfb
6
+ metadata.gz: 241631afbae50ffae78e601e92aac0de90311866294243affc1b5df01866302aa182e8ca8586bc52ab8bbd2c2d9e2e8524ab61146d036891df51142d2cdf7368
7
+ data.tar.gz: 92ab65321d70334c51265ce6498da6040055a3c31713603497e52a71a558363d0351d36f2e21003080f7a1f7665263799129f8637ee64d6d2775faedaa9affc2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # LEWT v0.5.12
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
 
@@ -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.13"
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lewt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.13
4
+ version: 0.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Wijegooneratne