ascii_invoicer 2.5.17 → 2.5.18
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/bin/ascii +20 -22
- data/lib/ascii_invoicer.rb +7 -7
- data/lib/ascii_invoicer/ascii_logger.rb +0 -1
- data/lib/ascii_invoicer/filters.rb +0 -2
- data/lib/ascii_invoicer/generators.rb +0 -2
- data/lib/ascii_invoicer/hash_transformer.rb +0 -1
- data/lib/ascii_invoicer/mixins.rb +0 -2
- data/lib/ascii_invoicer/projectFileReader.rb +1 -3
- data/lib/ascii_invoicer/rfc5322_regex.rb +0 -1
- data/lib/ascii_invoicer/settings_manager.rb +0 -1
- data/lib/ascii_invoicer/texwriter.rb +0 -1
- data/lib/ascii_invoicer/tweaks.rb +0 -2
- data/lib/ascii_invoicer/version.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: 8d78fb6289f5eb39d04fa9ed06f62ea2a29528fe
|
4
|
+
data.tar.gz: 0bf12a2d12f4f08dbab8836f932c64e2928edf05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc49d226020b8ad446c0ede186aa5a62fbe70f607118ec56f26581ed231ff81f7454e268a1214afba19c9c9d60fa90648161ee2754e6168e4e81dea757e1df76
|
7
|
+
data.tar.gz: 230efed15830657c1ef1ade8da3f05f2ac42aeb033332a017d14d48c9ffd0ad8a72e05e5d27a4f24747f00456c0112228fa2a21032a32fef3a47c6c3372f6393
|
data/bin/ascii
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# warn_indent: true
|
3
|
-
# frozen_string_literal: true
|
4
2
|
|
5
3
|
require 'pp'
|
6
4
|
require 'csv'
|
@@ -189,30 +187,30 @@ class Commander < Thor
|
|
189
187
|
projects = open_projects names, options
|
190
188
|
paths= projects.map{ |project| project.path }
|
191
189
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
}
|
190
|
+
if options[:archive]
|
191
|
+
map = $PLUMBER.map_project_files_archive(options[:archive])
|
192
|
+
else
|
193
|
+
map = $PLUMBER.map_project_files_working()
|
194
|
+
end
|
195
|
+
map.each{|k,v|
|
196
|
+
names.each{|name|
|
197
|
+
if k.downcase.include? name.downcase
|
198
|
+
paths += [v]
|
199
|
+
end
|
203
200
|
}
|
204
|
-
|
201
|
+
}
|
202
|
+
paths.uniq!
|
205
203
|
|
206
|
-
|
207
|
-
|
208
|
-
|
204
|
+
#pp paths
|
205
|
+
$logger.info "opening #{paths}", :stdo
|
206
|
+
end
|
209
207
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
end
|
208
|
+
if paths.size > 0
|
209
|
+
edit_files paths, options[:editor]
|
210
|
+
else
|
211
|
+
puts "nothing found (#{names})"
|
215
212
|
end
|
213
|
+
end
|
216
214
|
|
217
215
|
|
218
216
|
desc "open NAMES", "Open created documents"
|
data/lib/ascii_invoicer.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require "
|
2
|
-
require "
|
3
|
-
require "
|
4
|
-
require "
|
5
|
-
require "
|
6
|
-
require "
|
7
|
-
require "
|
1
|
+
require "ascii_invoicer/version"
|
2
|
+
require "ascii_invoicer/settings_manager"
|
3
|
+
require "ascii_invoicer/InvoiceProject"
|
4
|
+
require "ascii_invoicer/hash_transformer"
|
5
|
+
require "ascii_invoicer/tweaks"
|
6
|
+
require "ascii_invoicer/mixins"
|
7
|
+
require "ascii_invoicer/ascii_logger"
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# warn_indent: true
|
2
|
-
# frozen_string_literal: true
|
3
1
|
require 'paint'
|
4
2
|
|
5
3
|
require File.join __dir__, 'tweaks.rb'
|
@@ -89,13 +87,13 @@ module ProjectFileReader
|
|
89
87
|
@logger.info Paint[path, :yellow] if @settings.DEBUG
|
90
88
|
return parser.call(value)
|
91
89
|
end
|
90
|
+
end
|
92
91
|
rescue => error
|
93
92
|
fail_at path
|
94
93
|
puts Array.new($@).keep_if{|line| line.include? "filter_"}.map {|line| Paint[line, :red, :bold]}
|
95
94
|
puts Array.new($@).keep_if{|line| line.include? "generate_"}.map {|line| Paint[line, :blue, :bold]}
|
96
95
|
puts Paint[" #{error} (#{@project_path})", :yellow]
|
97
96
|
end
|
98
|
-
end
|
99
97
|
|
100
98
|
def fail_at(*criteria)
|
101
99
|
@data[:valid] = false
|