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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c6122ed87965944ddec1e509f656649357dc23f13aca8255eca59af8f940c8e
4
- data.tar.gz: 96fd9f5d487a4d1bc6a626bfeb688f94d6a1e464f508ef4c8e28838427b9dfec
3
+ metadata.gz: d37935a5d0d9e53ff37f04a7caaaf5a984aa0d0681411f2a05a7c7bda0b10954
4
+ data.tar.gz: 2efdf6d854e47d3e62b68057816de120661ec07d95f38a370d717384f510c0fe
5
5
  SHA512:
6
- metadata.gz: 4dc36844a1114e04a33a30ebf398a0a498a3f4e4dcac4faae8604014921dd01f278690f352a7ae01e0986130a5b862fb060d448b2b234a57bb03d230452dd00e
7
- data.tar.gz: 6d54a2e72cbc7bba4e1df58ff18d760b5b019a4b06516ffdfe84680fd7a885ef51595c9b91bc8e19cb283fcaa3a82754e8dc1ce6e8caec3dedf5e12bab9e3ceb
6
+ metadata.gz: a47f39ee141e67ff4356825681e4d7ce80f377e9e5d12458bb1c47e300f2dcb03ca9a58017f833754c4dcb2ad2b79b40fcbadbd7590b61da4d80262a35045fb9
7
+ data.tar.gz: 4c9b3404a80fc28a9e118892bd5d4e8ef40fa4751721d64d31dc32ab407e1e8e84b6c11966472f47d6763674586a2ac9811c674e3dfaca4b4c7fd37aa1ef643b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ubill (0.1.1)
4
+ ubill (0.1.2)
5
5
  matrix (~> 0.4)
6
6
  prawn (~> 2.4)
7
7
  prawn-table (~> 0.2)
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
- company: "Spielvereinigung Demoburg e.V.",
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(&block)
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
- configure(&block) unless block.nil?
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
- :company, :name, [:firstname, :lastname], :department, :street_1, :street_2, [:zip, :city], :country
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ubill
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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-12 00:00:00.000000000 Z
11
+ date: 2023-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn