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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb682f58e7ae42b47e5d84e88de21f953df524ec
4
- data.tar.gz: d6240cbc5f434f6ab8efef3ee8915cf63a5aefa0
3
+ metadata.gz: 8d78fb6289f5eb39d04fa9ed06f62ea2a29528fe
4
+ data.tar.gz: 0bf12a2d12f4f08dbab8836f932c64e2928edf05
5
5
  SHA512:
6
- metadata.gz: d173a22fa136e4d20de1921c993a8ff7d33a4abb56978d8ed23fd3571ef0f9976adc458ecf87a52ca1b4afc4c6225098b1ba294295ce2c12e78683441247c249
7
- data.tar.gz: 47796e28941946ab71ddeb4244a59632f43f4f6537670fa3859e331bd1483cf730677f1fe2ec27dc4a519099bd488cfb3bdc5ecc0d9345bc066bf44ee6ee6330
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
- if options[:archive]
193
- map = $PLUMBER.map_project_files_archive(options[:archive])
194
- else
195
- map = $PLUMBER.map_project_files_working()
196
- end
197
- map.each{|k,v|
198
- names.each{|name|
199
- if k.downcase.include? name.downcase
200
- paths += [v]
201
- end
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
- paths.uniq!
201
+ }
202
+ paths.uniq!
205
203
 
206
- #pp paths
207
- $logger.info "opening #{paths}", :stdo
208
- end
204
+ #pp paths
205
+ $logger.info "opening #{paths}", :stdo
206
+ end
209
207
 
210
- if paths.size > 0
211
- edit_files paths, options[:editor]
212
- else
213
- puts "nothing found (#{names})"
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"
@@ -1,7 +1,7 @@
1
- require "./lib/ascii_invoicer/version"
2
- require "./lib/ascii_invoicer/settings_manager"
3
- require "./lib/ascii_invoicer/InvoiceProject"
4
- require "./lib/ascii_invoicer/hash_transformer"
5
- require "./lib/ascii_invoicer/tweaks"
6
- require "./lib/ascii_invoicer/mixins"
7
- require "./lib/ascii_invoicer/ascii_logger"
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,4 +1,3 @@
1
- # warn_indent: true
2
1
  #http://stackoverflow.com/questions/6407141/how-can-i-have-ruby-logger-log-output-to-stdout-as-well-as-file
3
2
  require 'logger'
4
3
  require 'fileutils'
@@ -1,5 +1,3 @@
1
- # warn_indent: true
2
- # frozen_string_literal: true
3
1
  require 'date'
4
2
  #require File.join __dir__ + '/rfc5322_regex.rb'
5
3
 
@@ -1,5 +1,3 @@
1
- # warn_indent: true
2
- # frozen_string_literal: true
3
1
  module Generators
4
2
  def generate_hours_total full_data
5
3
  hours = full_data[:hours]
@@ -1,4 +1,3 @@
1
- # warn_indent: true
2
1
  require 'hash-graft'
3
2
 
4
3
  class HashTransformer
@@ -1,5 +1,3 @@
1
- # warn_indent: true
2
- # frozen_string_literal: true
3
1
  require 'icalendar'
4
2
  require 'fileutils'
5
3
  require 'money'
@@ -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
@@ -1,4 +1,3 @@
1
- # warn_indent: true
2
1
  # RFC 5322 Email Validation Regex in Ruby
3
2
 
4
3
  $RFC5322 = /
@@ -1,4 +1,3 @@
1
- # warn_indent: true
2
1
  require 'fileutils'
3
2
 
4
3
  require 'hash-graft'
@@ -1,4 +1,3 @@
1
- # warn_indent: true
2
1
  require 'logger'
3
2
 
4
3
  module TexWriter
@@ -1,5 +1,3 @@
1
- # warn_indent: true
2
- # frozen_string_literal: true
3
1
  $FB = "foobar"
4
2
  class TrueClass
5
3
  def print(symbol=?✓)
@@ -1,4 +1,4 @@
1
1
  # warn_indent: true
2
2
  module AsciiInvoicer
3
- VERSION = '2.5.17'
3
+ VERSION = '2.5.18'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascii_invoicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.17
4
+ version: 2.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Sollich