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 +4 -4
- data/lib/ascii_invoicer/generators.rb +2 -0
- data/lib/ascii_invoicer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9556ca3bddb5d9234e1eee82e29e72f08b782e14
|
4
|
+
data.tar.gz: 8cde72880e16d45f4e01f91e354bcfd139e73f0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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.
|
293
|
+
rubygems_version: 2.4.8
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: ascii-invoicer
|