prawn-qrcode 0.2.2 → 0.2.2.1
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 +4 -4
- data/README.md +7 -3
- data/lib/prawn/qrcode.rb +3 -1
- data/prawn-qrcode.gemspec +19 -16
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87925bc6faae88ed0f7d8454bd29c1e1b750e32f
|
4
|
+
data.tar.gz: 6d079082ad2a1df606f3c11e347934b9ee377dc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be85ae26b13a80655a21d5b63305fa1c3d16bb1d84eefa914b5cc4f75f7ba1f7e83ae33e975d14c666059fbcd60f863d91a27b9116f0dd99c6be668eab59c1a
|
7
|
+
data.tar.gz: 4bc39fd34ea0c2ab13603cc2f9ea1937e3ca36baee9a6c950d1a589d69c06b275d18f81d4f6164a08d8aa91c70c2fa7159457e1e1b4745478c6047fe5299e00e
|
data/README.md
CHANGED
@@ -3,10 +3,11 @@
|
|
3
3
|
A simple extension to generate and/or render QRCodes for Prawn PDFs
|
4
4
|
|
5
5
|

|
6
|
+
[](http://badge.fury.io/rb/prawn-qrcode)
|
6
7
|
|
7
8
|
Prawn/QRCode is a Prawn (>= 0.11.1) extension to simplify rendering of QR Codes*.
|
8
9
|
|
9
|
-
(*) QR Code is registered trademark of DENSO WAVE INCORPORATED.
|
10
|
+
(*) QR Code is registered trademark of DENSO WAVE INCORPORATED.
|
10
11
|
See http://www.denso-wave.com/qrcode/ for more information.
|
11
12
|
|
12
13
|
## Install
|
@@ -50,7 +51,7 @@ For a full list of examples, take a look in the `examples` folder.
|
|
50
51
|
## Changelog
|
51
52
|
|
52
53
|
### 0.1.0
|
53
|
-
Initial Release
|
54
|
+
Initial Release
|
54
55
|
|
55
56
|
### 0.1.1
|
56
57
|
Updated prawn dependency from exact requirement of 0.11.1 to an >=0.11.1, <0.13
|
@@ -61,7 +62,7 @@ of the generated PDF (bdurette)
|
|
61
62
|
|
62
63
|
### 0.2.0
|
63
64
|
Integrated patch from bdurette to align QR Code within its bounding box.
|
64
|
-
Adds the optional parameter :align (:left, :center, :right) to both
|
65
|
+
Adds the optional parameter :align (:left, :center, :right) to both
|
65
66
|
render_qr_code() and print_qr_code()
|
66
67
|
|
67
68
|
### 0.2.1
|
@@ -70,3 +71,6 @@ Updated prawn dependnecy spec to >= 0.11.1.
|
|
70
71
|
### 0.2.2
|
71
72
|
Fixed default stroke and explicit conversion of extents to floats.
|
72
73
|
|
74
|
+
### 0.2.2.1
|
75
|
+
Stroke param broken. Replaced with simpler evaluation.
|
76
|
+
|
data/lib/prawn/qrcode.rb
CHANGED
@@ -81,7 +81,9 @@ module QRCode
|
|
81
81
|
opt = options.extract_options!
|
82
82
|
dot = opt[:dot].to_f || DEFAULT_DOTSIZE
|
83
83
|
extent= opt[:extent].to_f || (8+qr_code.modules.length) * dot
|
84
|
-
stroke =
|
84
|
+
stroke = true
|
85
|
+
stroke = opt[:stroke] if opt.has_key?(:stroke)
|
86
|
+
|
85
87
|
foreground_color = opt[:foreground_color] || '000000'
|
86
88
|
background_color = opt[:background_color] || 'FFFFFF'
|
87
89
|
stroke_color = opt[:stroke_color] || '000000'
|
data/prawn-qrcode.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2011 Jens Hausherr
|
1
|
+
# Copyright 2011-2014 Jens Hausherr
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -13,26 +13,29 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
Gem::Specification.new do |spec|
|
16
|
-
spec.name
|
17
|
-
spec.version
|
18
|
-
spec.platform
|
19
|
-
spec.summary
|
20
|
-
spec.
|
16
|
+
spec.name = "prawn-qrcode"
|
17
|
+
spec.version = "0.2.2.1"
|
18
|
+
spec.platform = Gem::Platform::RUBY
|
19
|
+
spec.summary = "Print QR Codes in PDF"
|
20
|
+
spec.licenses = [ 'Apache License 2.0' ]
|
21
|
+
spec.files = Dir.glob("{examples,lib}/**/**/*") +
|
21
22
|
["Rakefile", "prawn-qrcode.gemspec"]
|
22
|
-
spec.require_path
|
23
|
-
spec.required_ruby_version
|
23
|
+
spec.require_path = "lib"
|
24
|
+
spec.required_ruby_version = '>= 1.8.7'
|
24
25
|
spec.required_rubygems_version = ">= 1.3.6"
|
25
26
|
|
26
|
-
spec.extra_rdoc_files
|
27
|
+
spec.extra_rdoc_files = %w{README.md LICENSE}
|
27
28
|
spec.rdoc_options << '--title' << 'Prawn/QRCode Documentation' <<
|
28
29
|
'--main' << 'README.md' << '-q'
|
29
|
-
spec.authors
|
30
|
-
spec.email
|
31
|
-
#spec.rubyforge_project
|
32
|
-
spec.
|
33
|
-
|
34
|
-
spec.
|
35
|
-
spec.description = <<END_DESC
|
30
|
+
spec.authors = ["Jens Hausherr"]
|
31
|
+
spec.email = ["jabbrwcky@googlemail.com"]
|
32
|
+
#spec.rubyforge_project = "prawn-qrcode"
|
33
|
+
spec.homepage = "http://github.com/jabbrwcky/prawn-qrcode"
|
34
|
+
|
35
|
+
spec.description = <<END_DESC
|
36
36
|
Prawn/QRCode simplifies the generation and rendering of QRCodes in Prawn PDF documents.
|
37
37
|
END_DESC
|
38
|
+
|
39
|
+
spec.add_dependency('prawn', '>= 0.11.1')
|
40
|
+
spec.add_dependency('rqrcode', '>=0.4.1')
|
38
41
|
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.2.2
|
4
|
+
version: 0.2.2.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: 2014-11-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|
@@ -57,7 +57,8 @@ files:
|
|
57
57
|
- lib/prawn/qrcode.rb
|
58
58
|
- prawn-qrcode.gemspec
|
59
59
|
homepage: http://github.com/jabbrwcky/prawn-qrcode
|
60
|
-
licenses:
|
60
|
+
licenses:
|
61
|
+
- Apache License 2.0
|
61
62
|
metadata: {}
|
62
63
|
post_install_message:
|
63
64
|
rdoc_options:
|