rbinvoice 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/TODO CHANGED
@@ -10,4 +10,3 @@
10
10
  - Fix LaTeX escaping for double quotes.
11
11
  - Add an option to redo the last invoice for the given client.
12
12
 
13
-
@@ -228,8 +228,8 @@ module RbInvoice
228
228
  opt :rcfile, "Use an rc file other than ~/.rbinvoicerc", :short => '-r'
229
229
  opt :no_rcfile, "Don't read an rc file", :default => false, :short => '-R'
230
230
 
231
- opt :data_file, "Use a data file other than ~/.rbinvoice", :default => RbInvoice::Options.default_data_file, :short => '-d'
232
- opt :no_data_file, "Don't read or write to a data file", :default => false, :short => '-D'
231
+ opt :data_file, "Use a data file other than ${out_directory}/rbinvoice", :default => nil, :short => '-d'
232
+ opt :no_data_file, "Don't update the data file", :default => false, :short => '-D'
233
233
 
234
234
  opt :invoice_number, "Use a specific invoice number", :type => :int, :short => '-n'
235
235
  opt :no_write_invoice_number, "Record the invoice number", :default => false, :short => '-N'
@@ -244,7 +244,8 @@ module RbInvoice
244
244
  opts[:client] = argv.shift
245
245
 
246
246
  read_rc_file(opts) unless opts[:no_rcfile]
247
- opts[:data] = opts[:no_data_file] ? {} : read_data_file(opts)
247
+ opts[:data_file] ||= "#{default_out_directory(opts)}/rbinvoice"
248
+ opts[:data] = read_data_file(opts)
248
249
 
249
250
  if not opts[:invoice_number] and not last_invoice_number(opts[:data])
250
251
  Trollop::die "Can't determine invoice number"
@@ -1,3 +1,3 @@
1
1
  module RbInvoice
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbinvoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  segments:
150
150
  - 0
151
- hash: 3119729522843240763
151
+ hash: 365880325893517788
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements: