ascii_invoicer 2.5.11 → 2.5.12

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: ce360fc0c1e11021821c0a3e6bfad33bd5fda047
4
- data.tar.gz: 2ea15b30cef7fcb4ffb52692eec3d71bdc80bde9
3
+ metadata.gz: 9556ca3bddb5d9234e1eee82e29e72f08b782e14
4
+ data.tar.gz: 8cde72880e16d45f4e01f91e354bcfd139e73f0c
5
5
  SHA512:
6
- metadata.gz: 08ef97d95038bfe6d46a87eb63ef80077f804318c1318f994ad72fc1ff703f112ef9be5688f46346e93a50b3d7fc63b3b3c6fd4dad21306629018dfea20a975a
7
- data.tar.gz: 3ec4c58d0247f531f8db6aa623ce387445f23a2abb174d25674df601d2813ca41aaa6fb2efd48634a443ae3668d857e5d2d34ce4fb66a00b91ee90382aa17a9e
6
+ metadata.gz: 912af4cb52f3242b8dd417d7e77fe277eb20a0f3a73e25f216f59ded9d48a69bf994a0c86f77fd2569cb17122fa33b8374499b5e7f07962ad23e4a77ae2edcf3
7
+ data.tar.gz: 17d9682aaea188757ec87a83cfd04d3e33da3b948e393cce0b33def711090f3412a663ec7bacb1afd8589850a2a4d95b1b6f97f9221062eb0bc7d56c02b9d094
@@ -132,6 +132,8 @@ module Generators
132
132
  last = full_data[:event][:dates].last[:end]
133
133
  last = full_data[:event][:dates].last[:begin] if last.nil?
134
134
 
135
+ return "#{first.strftime "%d.%m.%Y"}-#{last.strftime "%d.%m.%Y"}" if first.year != last.year
136
+ return "#{first.strftime "%d.%m."}-#{last.strftime "%d.%m.%Y"}" if first.month != last.month
135
137
  return "#{first.strftime "%d"}-#{last.strftime "%d.%m.%Y"}" if first != last
136
138
  return first.strftime "%d.%m.%Y" if first.class == Date
137
139
  return first
@@ -1,3 +1,3 @@
1
1
  module AsciiInvoicer
2
- VERSION = '2.5.11'
2
+ VERSION = '2.5.12'
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.11
4
+ version: 2.5.12
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-11-16 00:00:00.000000000 Z
11
+ date: 2016-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  version: '0'
291
291
  requirements: []
292
292
  rubyforge_project:
293
- rubygems_version: 2.4.5.1
293
+ rubygems_version: 2.4.8
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: ascii-invoicer