prawn-qrcode 0.5.0 → 0.5.1

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: f7bf1bcff14157602b378498911ee03a4677120443b7fe10e7941fdebe88719c
4
- data.tar.gz: 88a8704a23314b70e6582ebd0bbe261072a2decea03a97c2392db67b18f68ab1
3
+ metadata.gz: 403a8097100459aace10f31ef7ebf8177ae029fb60befc009b3823e7fefd4a26
4
+ data.tar.gz: dd509b0a317be8c44046dd1b41baf48940a865c036091c41afdf5aa5ea31af3c
5
5
  SHA512:
6
- metadata.gz: '0598b21b285c7d77d553f4b5ecf1960b08b2e61476f68ad162a6d34f5f35d4fe33f307af9af97e9e89051f7ed021a47f520644f6d976c989cfdb764daa83d7a7'
7
- data.tar.gz: ed8cd446792d019665fc1f8bbf2812cc633d5100d333ae49cfc85824d4974f4afb4b27d4245d9ee63095d221fa1f18640c830ca2fdd66c746d128e4b6aabadce
6
+ metadata.gz: 3d2a32073bba4469b6f2cb36e49a6290dfbd78db6bb1cc12ad162a6a592ddb8106c18ff8122649dd3c548d289ab4efafb1148ddc871a834a14a6d87590f50ea2
7
+ data.tar.gz: a44e5b92656d8a83785b828187ce6b8e5389255dc4d8ae400d09d43f71909bd44dee348316163e1218714d4d041d77456a99d29f4b5ac6348c9dd8067c34f4db
data/lib/prawn/qrcode.rb CHANGED
@@ -74,7 +74,7 @@ module Prawn
74
74
  #
75
75
  def print_qr_code(content, level: :m, mode: nil, pos: [0, cursor], **options)
76
76
  qr_code = Prawn::QRCode.min_qrcode(content, level: level, mode: mode)
77
- render_qr_code(qr_code, pos: pos, stroke: stroke, margin: margin, **options)
77
+ render_qr_code(qr_code, pos: pos, **options)
78
78
  end
79
79
 
80
80
  # Renders a prepared QR code (RQRCode::QRCode) int the pdf.
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Prawn
18
18
  module QRCode
19
- VERSION = '0.5.0'.freeze
19
+ VERSION = '0.5.1'.freeze
20
20
  end
21
21
  end
data/prawn-qrcode.gemspec CHANGED
@@ -46,5 +46,5 @@ END_DESC
46
46
  spec.add_development_dependency 'minitest', '~> 5.12', '>= 5.12.2'
47
47
  spec.add_development_dependency 'prawn-table', '~> 0.2.2'
48
48
  spec.add_development_dependency 'rake', '~> 13.0'
49
- spec.add_development_dependency 'rubocop', '~>0.66.0'
49
+ spec.add_development_dependency 'rubocop', '~>0.76.0'
50
50
  end
@@ -0,0 +1,10 @@
1
+ require 'minitest/autorun'
2
+ require 'prawn/qrcode'
3
+ require 'prawn/document'
4
+
5
+ class TestQrcodeInContext < Minitest::Test
6
+ def test_render_with_margin
7
+ context = Prawn::Document.new
8
+ assert(context.print_qr_code('HELOWORLD', margin: 0))
9
+ end
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-qrcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Hausherr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-02 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: 0.66.0
109
+ version: 0.76.0
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: 0.66.0
116
+ version: 0.76.0
117
117
  description: " Prawn/QRCode simplifies the generation and rendering of QRCodes in
118
118
  Prawn PDF documents.\n"
119
119
  email:
@@ -137,6 +137,7 @@ files:
137
137
  - lib/prawn/qrcode/version.rb
138
138
  - prawn-qrcode.gemspec
139
139
  - test/test_minqrcode.rb
140
+ - test/test_qrcode_in_context.rb
140
141
  - test/test_renderer.rb
141
142
  homepage: http://github.com/jabbrwcky/prawn-qrcode
142
143
  licenses: