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 +0 -1
- data/lib/rbinvoice/options.rb +4 -3
- data/lib/rbinvoice/version.rb +1 -1
- metadata +2 -2
data/TODO
CHANGED
data/lib/rbinvoice/options.rb
CHANGED
@@ -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
|
232
|
-
opt :no_data_file, "Don't
|
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[:
|
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"
|
data/lib/rbinvoice/version.rb
CHANGED
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
|
+
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:
|
151
|
+
hash: 365880325893517788
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
154
154
|
requirements:
|