girocode 0.1.0 → 0.2.0

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: f2713f1afa65bd13d77e0253324b6cfb8bde9a7044e02e2f6c79b3403c61787a
4
- data.tar.gz: 2743e4c121c12c3b14e4950f06027323971124de410e4588809ed685d3ff1155
3
+ metadata.gz: 63a0ac46d923c290632acec281c95319eae1214d50c69c5d4b4cb31079898aae
4
+ data.tar.gz: 26b5b18c87cd35b8b856b3997f8d20b2dc79b1ad21453f54828913cc627bde2c
5
5
  SHA512:
6
- metadata.gz: ea6017284805b9beb507ea6b936ca4dd6665ecd63fdae69f5f6855c25000fe5ffb1bf4f3b05adae42ac2bc02abafab5b65e77023a8de60425858b26f6531aa62
7
- data.tar.gz: a68821b07b92b04789bdb8d02db165b90315b12222d41de1b5b11dda43bdf3174f8e6333b40fe5e08c6c8f9e969602a9fe62d29f0ec521a97aed946c9be1640a
6
+ metadata.gz: a4aeb6b83c1e3dd12c7657890188cb3bc68c09ebb1b0efdaac4cffecf40aef67f97943426ee06f07d3f79d0942d2768f210f3fd4ac0d361a157787d91d0a4d18
7
+ data.tar.gz: f4b50486a4d04ca1a08a3f6409cd05a6a19aad144bde0d76f1afdf2d73c9f4f41613fd08868a3a0ebb4e33f76a7c0939c9439fdc75e6cca20cd32594729ae6b0
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 0.2.0
2
+
3
+ - support Ruby 2.7+
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- [![Gem Version](https://badge.fury.io/rb/girocode.svg)](http://badge.fury.io/rb/girocode) [![Build Status](https://travis-ci.org/mtgrosser/girocode.svg)](https://travis-ci.org/mtgrosser/girocode)
1
+ [![Gem Version](https://badge.fury.io/rb/girocode.svg)](http://badge.fury.io/rb/girocode) [![build](https://github.com/mtgrosser/girocode/actions/workflows/build.yml/badge.svg)](https://github.com/mtgrosser/girocode/actions/workflows/build.yml)
2
2
  # Girocode - create EPC QR codes for SEPA bank transfers
3
3
 
4
- Pure Ruby library to generate QR codes in SVG, PNG, HTML or ASCII format
4
+ Pure Ruby library to generate EPC QR codes in SVG, PNG, HTML or ASCII format
5
5
 
6
6
  ![Girocode](https://raw.githubusercontent.com/mtgrosser/girocode/master/test/demo.png)
7
7
 
@@ -28,3 +28,29 @@ code.to_ascii
28
28
  # in your console
29
29
  puts code.to_ansi
30
30
  ```
31
+
32
+ ## Supported attributes
33
+
34
+ Codes can be generated with the following attributes:
35
+
36
+ | Attribute | Description | required | max size |
37
+ |----------------------|--------------------------------|--------------------|----------|
38
+ | `bic` | Bank Identifier Code | | 11 |
39
+ | `name` | Name of beneficiary | ✓ | 70 |
40
+ | `iban` | IBAN | ✓ | 34 |
41
+ | `currency` | ISO-4217 currency code | if `amount` given | 3 |
42
+ | `amount` | Money amount | | 12 |
43
+ | `purpose` | SEPA purpose code | | 4 |
44
+ | `creditor_reference` | ISO-11649 creditor reference | | 35 |
45
+ | `reference` | Unstructured reference | | 140 |
46
+ | `bto_info` | Beneficiary to originator info | | 70 |
47
+
48
+ ## Limitations
49
+
50
+ Codes are generated as EPC-QR Version 2 in UTF-8 format only.
51
+
52
+ ## Specification
53
+
54
+ European Payments Council: Quick Response Code
55
+
56
+ [Guidelines to enable data capture for the initiation of a SEPA credit transfer](https://www.europeanpaymentscouncil.eu/sites/default/files/kb/file/2018-05/EPC069-12%20v2.1%20Quick%20Response%20Code%20-%20Guidelines%20to%20Enable%20the%20Data%20Capture%20for%20the%20Initiation%20of%20a%20SCT.pdf)
@@ -1,3 +1,3 @@
1
1
  module Girocode
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girocode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Grosser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rqrcode
@@ -38,62 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.17'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.17'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '10.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '10.0'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '5.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '5.0'
83
- - !ruby/object:Gem::Dependency
84
- name: simplecov
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
41
  description: EPC QR code for SEPA payments in any format
98
42
  email:
99
43
  - mtgrosser@gmx.net
@@ -101,9 +45,9 @@ executables: []
101
45
  extensions: []
102
46
  extra_rdoc_files: []
103
47
  files:
48
+ - CHANGELOG.md
104
49
  - LICENSE
105
50
  - README.md
106
- - Rakefile
107
51
  - lib/girocode.rb
108
52
  - lib/girocode/code.rb
109
53
  - lib/girocode/version.rb
@@ -111,7 +55,7 @@ homepage: https://github.com/mtgrosser/girocode
111
55
  licenses:
112
56
  - MIT
113
57
  metadata: {}
114
- post_install_message:
58
+ post_install_message:
115
59
  rdoc_options: []
116
60
  require_paths:
117
61
  - lib
@@ -126,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
70
  - !ruby/object:Gem::Version
127
71
  version: '0'
128
72
  requirements: []
129
- rubygems_version: 3.0.3
130
- signing_key:
73
+ rubygems_version: 3.2.22
74
+ signing_key:
131
75
  specification_version: 4
132
76
  summary: Generate QR codes for SEPA credit transfers
133
77
  test_files: []
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
9
-
10
- task :default => :test