ubill 0.1.0 → 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: e23f48847054bf7e4f64599585d697f2eb918f13cb080a21818cc27c6da88738
4
- data.tar.gz: 5043034a212d8766fa4a0d1f400fbb92c7507656472e7ad40313165bfaddab7a
3
+ metadata.gz: d37935a5d0d9e53ff37f04a7caaaf5a984aa0d0681411f2a05a7c7bda0b10954
4
+ data.tar.gz: 2efdf6d854e47d3e62b68057816de120661ec07d95f38a370d717384f510c0fe
5
5
  SHA512:
6
- metadata.gz: b38c22365eebd461ed42f8ab2cc671abaa0f37bf821ad9ead7dd11645d7f9805b07a595aeabdab40fea01576ad2c066f7dd92c96685444ea9bdb3278da6b176b
7
- data.tar.gz: f921dc75d70feae1d634c9f51625eceef7414d5e905a7fd3ee35e82ed45cc8e6c0b043fdc4a2fedc0627deeb7ba3d5a32b5cd9997cadca4678c4b913dfaf536e
6
+ metadata.gz: a47f39ee141e67ff4356825681e4d7ce80f377e9e5d12458bb1c47e300f2dcb03ca9a58017f833754c4dcb2ad2b79b40fcbadbd7590b61da4d80262a35045fb9
7
+ data.tar.gz: 4c9b3404a80fc28a9e118892bd5d4e8ef40fa4751721d64d31dc32ab407e1e8e84b6c11966472f47d6763674586a2ac9811c674e3dfaca4b4c7fd37aa1ef643b
@@ -0,0 +1,92 @@
1
+ This software uses 3rd party libraries, for which the following licenses
2
+ apply:
3
+
4
+
5
+
6
+ https://github.com/ruby/matrix
7
+ ==============================
8
+
9
+ BSD-2-Clause license
10
+ --------------------
11
+
12
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
13
+
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted provided that the following conditions
16
+ are met:
17
+ 1. Redistributions of source code must retain the above copyright
18
+ notice, this list of conditions and the following disclaimer.
19
+ 2. Redistributions in binary form must reproduce the above copyright
20
+ notice, this list of conditions and the following disclaimer in the
21
+ documentation and/or other materials provided with the distribution.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33
+ SUCH DAMAGE.
34
+
35
+
36
+
37
+ https://github.com/prawnpdf/prawn
38
+ =================================
39
+
40
+ Prawn is copyrighted free software produced by Gregory Brown along with
41
+ community contributions. See git log for authorship information.
42
+
43
+ Licensing terms follow:
44
+
45
+ 1. You may make and give away verbatim copies of the source form of the
46
+ software without restriction, provided that you duplicate all of the
47
+ original copyright notices and associated disclaimers.
48
+
49
+ 2. You may modify your copy of the software in any way, provided that
50
+ you do at least ONE of the following:
51
+
52
+ a) place your modifications in the Public Domain or otherwise
53
+ make them Freely Available, such as by posting said
54
+ modifications to Usenet or an equivalent medium, or by allowing
55
+ the author to include your modifications in the software.
56
+
57
+ b) use the modified software only within your corporation or
58
+ organization.
59
+
60
+ c) rename any non-standard executables so the names do not conflict
61
+ with standard executables, which must also be provided.
62
+
63
+ d) make other distribution arrangements with the author.
64
+
65
+ 3. You may distribute the software in object code or executable
66
+ form, provided that you do at least ONE of the following:
67
+
68
+ a) distribute the executables and library files of the software,
69
+ together with instructions (in the manual page or equivalent)
70
+ on where to get the original distribution.
71
+
72
+ b) accompany the distribution with the machine-readable source of
73
+ the software.
74
+
75
+ c) give non-standard executables non-standard names, with
76
+ instructions on where to get the original software distribution.
77
+
78
+ d) make other distribution arrangements with the author.
79
+
80
+ 4. You may modify and include the part of the software into any other
81
+ software (possibly commercial).
82
+
83
+ 5. The scripts and library files supplied as input to or produced as
84
+ output from the software do not automatically fall under the
85
+ copyright of the software, but belong to whomever generated them,
86
+ and may be sold commercially, and may be aggregated with this
87
+ software.
88
+
89
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
90
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
91
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
92
+ PURPOSE.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ubill (0.1.0)
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.0"
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.0
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
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".rspec"
63
+ - 3rd-party-licenses.txt
63
64
  - Gemfile
64
65
  - Gemfile.lock
65
66
  - LICENSE.txt