prawn-qrcode 0.2.2 → 0.2.2.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
  SHA1:
3
- metadata.gz: a01cff5d48f7ef32301abcabed5725ff3fe27248
4
- data.tar.gz: eab2bb7b8f2a30f16bc2861762abfcd8ec038c7b
3
+ metadata.gz: 87925bc6faae88ed0f7d8454bd29c1e1b750e32f
4
+ data.tar.gz: 6d079082ad2a1df606f3c11e347934b9ee377dc1
5
5
  SHA512:
6
- metadata.gz: ce1478d777591323be02c1969377a5edaffffbf0369b3412ff5264252aee8facbb974f8fde4b6fba49525f24f80c8d4d9f8dc5fbdbac0adae3ad02f2fba05408
7
- data.tar.gz: da600a608bc3a03545d92d1b82c673d3b5ec2652f9cfb25249ef0c53a2162d90291b8cc206244f5bb91642957ab32c1f3855f33e9fc69eebf71c5f5c642d5f53
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
  ![TravisCI Build state](https://travis-ci.org/jabbrwcky/prawn-qrcode.svg?branch=master)
6
+ [![Gem Version](https://badge.fury.io/rb/prawn-qrcode.svg)](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 = !(opt.has_key?(:stroke) && opt[:stroke].nil?) || opt[: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 = "prawn-qrcode"
17
- spec.version = "0.2.2"
18
- spec.platform = Gem::Platform::RUBY
19
- spec.summary = "Print QR Codes in PDF"
20
- spec.files = Dir.glob("{examples,lib}/**/**/*") +
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 = "lib"
23
- spec.required_ruby_version = '>= 1.8.7'
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 = %w{README.md LICENSE}
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 = ["Jens Hausherr"]
30
- spec.email = ["jabbrwcky@googlemail.com"]
31
- #spec.rubyforge_project = "prawn-qrcode"
32
- spec.add_dependency('prawn', '>= 0.11.1')
33
- spec.add_dependency('rqrcode', '>=0.4.1')
34
- spec.homepage = "http://github.com/jabbrwcky/prawn-qrcode"
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 00:00:00.000000000 Z
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: