ascii_invoicer 2.5.7 → 2.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 773867f70d6fe2648f7baf2cf5dc3de615d1a0f8
4
- data.tar.gz: 6c51a552c66f1b2f9360b29fe4fe49a9cf17c0f2
3
+ metadata.gz: 342dd208a943d963d8309980399950aef28c757d
4
+ data.tar.gz: 131214fa4428dbc1408c3ecebe3871f45ec75210
5
5
  SHA512:
6
- metadata.gz: 05914688d7bbf730b019c8170a065dac799cf18b3517933965196d6f80cee49a1a5d0037276bb61ae70e0b10fe5ab3dad9af0ecaa4c59f4d1c5b26696099b0e6
7
- data.tar.gz: 0bb83582f50cf5de647481528b6b2183bab7cf7525d1a2fd27c60de660a08c4fa26bf069575c9d70b624194e7d04d22b705c71abdb248c6567f3e72fcfeb6790
6
+ metadata.gz: c197b2b7a76eb5b86f62f36fe69721c4ed8f6e4358d3ef7358dba1d9206fe7571238fa57f83789ec6cc3eb9466164960a893a3d19bd79f3c1c807c6798112658
7
+ data.tar.gz: a6c2de613a8ed2b12a34d5f01457b4b45606f8867f3b63b525f321f9a9468b93697d5f9bfd4bed155d35599aa5febd93d61dd1e47095e64fe4dd9baa1f161ce6
data/bin/ascii CHANGED
@@ -398,7 +398,7 @@ class Commander < Thor
398
398
  projects.each{|project|
399
399
  unless project.validate(:calendar)
400
400
  valid = false
401
- $logger.error "error in event/date in \"#{project.name}\""
401
+ $logger.error "\"#{project.name}\" #{project.blockers(:calendar)}"
402
402
  end
403
403
 
404
404
  }
@@ -233,12 +233,12 @@ class InvoiceProject < LuigiProject
233
233
 
234
234
  def blockers choice = :invoice
235
235
  inval = {} # invalidators
236
- inval[ :minimal ] = [:client_last_name, :caterers, :manager, :products, :event_dates]
237
- inval[ :offer ] = [:offer_number ] + inval[:minimal]
238
- inval[ :invoice ] = inval[:offer] + [:invoice_number, :invoice_date]
239
- inval[ :payed ] = inval[:invoice] + [:invoice_payed]
236
+ inval[ :minimal ] = [:client_last_name, :manager, :products, :event_dates]
237
+ inval[ :offer ] = inval[:minimal] + [:caterers, :offer_number ]
238
+ inval[ :invoice ] = inval[:offer] + [:invoice_number, :invoice_date]
239
+ inval[ :payed ] = inval[:invoice] + [:invoice_payed]
240
240
  inval[ :archive ] = inval[:payed]
241
- inval[ :calendar] = inval[:offer]
241
+ inval[ :calendar] = inval[:minimal]
242
242
  inval[choice] & @errors
243
243
  end
244
244
 
@@ -34,7 +34,9 @@ module AsciiMixins
34
34
  table.style[:padding_horizontal] = 1
35
35
  projects.each_index do |i|
36
36
  project = projects[i]
37
- if !hash[:colors].nil? and hash[:colors]
37
+ if Date.today.day == 1 and Date.today.month == 4
38
+ color = color_from_date(project.date)
39
+ elsif !hash[:colors].nil? and hash[:colors]
38
40
  color = color_from_date(project.date)
39
41
  color = :default if project.validate(:invoice)
40
42
  color = [:blue] if project.status == :canceled
@@ -1,3 +1,3 @@
1
1
  module AsciiInvoicer
2
- VERSION = '2.5.7'
2
+ VERSION = '2.5.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascii_invoicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.7
4
+ version: 2.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Sollich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec