ubill 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/ubill/invoice.rb +4 -4
- data/lib/ubill/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37935a5d0d9e53ff37f04a7caaaf5a984aa0d0681411f2a05a7c7bda0b10954
|
4
|
+
data.tar.gz: 2efdf6d854e47d3e62b68057816de120661ec07d95f38a370d717384f510c0fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a47f39ee141e67ff4356825681e4d7ce80f377e9e5d12458bb1c47e300f2dcb03ca9a58017f833754c4dcb2ad2b79b40fcbadbd7590b61da4d80262a35045fb9
|
7
|
+
data.tar.gz: 4c9b3404a80fc28a9e118892bd5d4e8ef40fa4751721d64d31dc32ab407e1e8e84b6c11966472f47d6763674586a2ac9811c674e3dfaca4b4c7fd37aa1ef643b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -80,7 +80,7 @@ doc = Ubill::Invoice.new do
|
|
80
80
|
subject("Rechnung R1234567890", "Rechnungsdatum 01.01.2100")
|
81
81
|
# recipient address
|
82
82
|
recipient(
|
83
|
-
|
83
|
+
organisation: "Spielvereinigung Demoburg e.V.",
|
84
84
|
name: "Tobi Ornottobi",
|
85
85
|
department: "Dept. Purchase",
|
86
86
|
street_1: "Highwaytohell 2",
|
data/lib/ubill/invoice.rb
CHANGED
@@ -12,8 +12,8 @@ module Ubill
|
|
12
12
|
COLOR_SECONDARY = "777777"
|
13
13
|
EXTERNAL_FONTS_DIR = File.join(__dir__, "fonts")
|
14
14
|
|
15
|
-
def initialize
|
16
|
-
super
|
15
|
+
def initialize
|
16
|
+
super()
|
17
17
|
@recipient = {}
|
18
18
|
@subject = ""
|
19
19
|
@subject_info = ""
|
@@ -23,7 +23,7 @@ module Ubill
|
|
23
23
|
|
24
24
|
load_external_font_families
|
25
25
|
|
26
|
-
|
26
|
+
yield(self) if block_given?
|
27
27
|
end
|
28
28
|
|
29
29
|
def recipient(**options)
|
@@ -150,7 +150,7 @@ module Ubill
|
|
150
150
|
|
151
151
|
def describe_address
|
152
152
|
@recipient.each_with_filter(
|
153
|
-
:
|
153
|
+
:organisation, :name, [:firstname, :lastname], :department, :street_1, :street_2, [:zip, :city], :country
|
154
154
|
) do |key, value|
|
155
155
|
move_down 0.3.cm if key.is_a?(Array) && key.eql?([:zip, :city])
|
156
156
|
text value, size: 10
|
data/lib/ubill/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- couchbelag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|