qrcode_pix_ruby 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35b4d652b206592b48976ae27f1c3e461d53b9b90ba6d7d3845e8578ff38d2d5
4
- data.tar.gz: 3718c9e90ca609015f5eec3531ff3c35fd0945be24f5e06430e2e3b1278fb4d7
3
+ metadata.gz: a26d6b28fc1c602eb91dde02e301d9aa4fd0b8d96da53346c5055d53048640a2
4
+ data.tar.gz: 5d8152a23e400f274cb4ee7028d87a59feaed5f262a86367d00c9dca57fbfc0b
5
5
  SHA512:
6
- metadata.gz: bf822ee3996b5d30ad39068e3e20d5b7114556defb15d3265a5e30bb6f076f6b0018fdf4cbc7eafac1d91ceea927a92891ea9649402d4663e713a83fcfe8c441
7
- data.tar.gz: 7771a3304e461bf393b38841ed4d14c18b83c55e69399245e92502d459fbbe55ff96447383579504a7c765fd7f89c17ccf818b544cce8a4d994429f0dc4d5823
6
+ metadata.gz: fff792a1b81f8c20de135593999ddbc4a6fcc1068854eaa39c4df5f7538ebbc98d1535b36782c590be3711ecf24da8274ee4991557b5cee21f50156cc6c26157
7
+ data.tar.gz: ce5ca98bf5ee7bf45466dc49096b2dfaa39475681dac2dbae7353ee0b853594efe60eeac912ff53aaf09a448be10c6c358960a0620f28a8e9d8fdd3c2d201142
@@ -8,6 +8,8 @@ jobs:
8
8
  strategy:
9
9
  matrix:
10
10
  ruby-version: [2.7, 3.0]
11
+ env:
12
+ CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
11
13
  steps:
12
14
  - uses: actions/checkout@v2
13
15
 
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .rspec_status
2
2
  *.lock
3
3
  *.gem
4
+ coverage/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2021-06-23
3
+ ## [0.1.0...0.3.0] - 2021-06-24
4
4
 
5
5
  - Initial release
6
+ - Setup of CI and integrations
7
+ - Skeleton of gem
data/Gemfile CHANGED
@@ -2,3 +2,4 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
  gemspec
5
+ gem 'codecov', require: false, group: :test
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # QRCode Pix Ruby
2
2
 
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/ff1952ca066c27953773/maintainability)](https://codeclimate.com/github/pedrofurtado/qrcode_pix_ruby/maintainability)
4
+ [![codecov](https://codecov.io/gh/pedrofurtado/qrcode_pix_ruby/branch/master/graph/badge.svg?token=OK3S19R5CG)](https://codecov.io/gh/pedrofurtado/qrcode_pix_ruby)
3
5
  [![CI](https://github.com/pedrofurtado/qrcode_pix_ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/pedrofurtado/qrcode_pix_ruby/actions/workflows/ci.yml)
4
6
  [![Gem Version](https://badge.fury.io/rb/qrcode_pix_ruby.svg)](https://badge.fury.io/rb/qrcode_pix_ruby)
5
7
  [![Gem](https://img.shields.io/gem/dt/qrcode_pix_ruby.svg)]()
6
8
  [![license](https://img.shields.io/github/license/pedrofurtado/qrcode_pix_ruby.svg)]()
9
+ [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/pedrofurtado/qrcode_pix_ruby)
7
10
 
8
11
  Ruby gem for Qrcode generation of Pix (Pagamento Instantâneo Brasileiro - Banco Central do Brasil)
9
12
 
@@ -30,21 +33,29 @@ require 'qrcode_pix_ruby'
30
33
 
31
34
  pix = QrcodePixRuby::Payload.new
32
35
 
33
- pix.pix_key = '12345678900'
36
+ pix.pix_key = 'minhachavedopix'
34
37
  pix.description = 'Pagamento do pedido 123456'
35
- pix.merchant_name = 'William Costa'
38
+ pix.merchant_name = 'Fulano de Tal'
36
39
  pix.merchant_city = 'SAO PAULO'
37
- pix.transaction_id = 'WDEV1234'
40
+ pix.transaction_id = 'TID12345'
38
41
  pix.amount = '100.00'
42
+ pix.currency = '986'
43
+ pix.country_code = 'BR'
44
+ pix.postal_code = '01131010'
39
45
  pix.repeatable = false
40
46
 
47
+ # QRCode copia-e-cola
41
48
  puts pix.payload
49
+
50
+ # QRCode estático
42
51
  puts pix.base64
43
52
  ```
44
53
 
45
54
  ## Useful links
46
55
 
47
56
  * https://github.com/joseviniciusnunes/qrcode-pix
57
+ * https://www.bcb.gov.br/content/estabilidadefinanceira/forumpireunioes/AnexoI-PadroesParaIniciacaodoPix.pdf
58
+ * https://github.com/renatomb/php_qrcode_pix
48
59
  * https://www.gerarpix.com.br
49
60
  * https://github.com/fbbergamo/gerador-pix
50
61
  * https://pix.ae
@@ -53,6 +64,9 @@ puts pix.base64
53
64
  * https://openpix.com.br/qrcode/debug
54
65
  * https://github.com/william-costa/wdev-qrcode-pix-estatico-php
55
66
  * https://www.youtube.com/watch?v=eO11iFgrdCA
67
+ * https://qrcodepix.dinheiro.tech
68
+ * http://decoder.qrcodepix.dinheiro.tech
69
+ * https://www.bcb.gov.br/estabilidadefinanceira/pix
56
70
 
57
71
  ## Contributing
58
72
 
@@ -51,7 +51,7 @@ module QrcodePixRuby
51
51
  end
52
52
 
53
53
  def base64
54
- ::RQRCode::QRCode.new(payload).as_png(bit_depth: 1, border_modules: 0, color_mode: 0, color: 'black', file: nil, fill: 'white', module_px_size: 6, resize_exactly_to: false, resize_gte_to: false, size: 200).to_data_url
54
+ ::RQRCode::QRCode.new(payload).as_png(bit_depth: 1, border_modules: 0, color_mode: 0, color: 'black', file: nil, fill: 'white', module_px_size: 6, resize_exactly_to: false, resize_gte_to: false).to_data_url
55
55
  end
56
56
 
57
57
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QrcodePixRuby
4
- VERSION = '0.2.0'.freeze
4
+ VERSION = '0.3.0'.freeze
5
5
  end
@@ -5,8 +5,8 @@ require_relative 'lib/qrcode_pix_ruby/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'qrcode_pix_ruby'
7
7
  spec.version = QrcodePixRuby::VERSION
8
- spec.authors = ["Pedro Furtado"]
9
- spec.email = ["pedro.felipe.azevedo.furtado@gmail.com"]
8
+ spec.authors = ["Pedro Furtado", "Marcio de Jesus"]
9
+ spec.email = ["pedro.felipe.azevedo.furtado@gmail.com", "marciodejesusrj@gmail.com"]
10
10
  spec.summary = "Ruby gem for Qrcode generation of Pix (Pagamento Instantâneo Brasileiro - Banco Central do Brasil)"
11
11
  spec.description = "Ruby gem for Qrcode generation of Pix (Pagamento Instantâneo Brasileiro - Banco Central do Brasil)"
12
12
  spec.homepage = "https://github.com/pedrofurtado/qrcode_pix_ruby"
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qrcode_pix_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Furtado
8
+ - Marcio de Jesus
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
@@ -56,6 +57,7 @@ description: Ruby gem for Qrcode generation of Pix (Pagamento Instantâneo Brasi
56
57
  - Banco Central do Brasil)
57
58
  email:
58
59
  - pedro.felipe.azevedo.furtado@gmail.com
60
+ - marciodejesusrj@gmail.com
59
61
  executables: []
60
62
  extensions: []
61
63
  extra_rdoc_files: []