oshpark-rqrcode 0.10.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.
@@ -0,0 +1,27 @@
1
+ require 'test_helper'
2
+
3
+ describe :QRCodeExportTest do
4
+
5
+ [:svg, :png, :html, :ansi].each do |ext|
6
+ it "must respond_to #{ext}" do
7
+ RQRCode::QRCode.new('x').must_respond_to :"as_#{ext}"
8
+ end
9
+ end
10
+
11
+ it "must export to png file" do
12
+ RQRCode::QRCode.new('png').as_png.must_be_instance_of ChunkyPNG::Image
13
+ end
14
+
15
+ it "must export to svg file" do
16
+ RQRCode::QRCode.new('svg').as_svg.must_match(/<\/svg>/)
17
+ end
18
+
19
+ it "must export to html" do
20
+ RQRCode::QRCode.new('html').as_html.must_match(/<table>.+<\/table>/)
21
+ end
22
+
23
+ it "must export to ansi" do
24
+ RQRCode::QRCode.new('ansi').as_ansi.must_equal(AS_ANSI)
25
+ end
26
+
27
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oshpark-rqrcode
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.1
5
+ platform: ruby
6
+ authors:
7
+ - Laen
8
+ - Björn Blomqvist
9
+ - Duncan Robertson
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2016-03-14 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: chunky_png
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '1.0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: rake
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: bundler
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.0.0
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.0.0
57
+ description: |
58
+ rQRCode is a library for encoding QR Codes. The simple
59
+ interface allows you to create QR Code data structures
60
+ ready to be displayed in the way you choose.
61
+ email:
62
+ - darwin@bits2life.com
63
+ executables: []
64
+ extensions: []
65
+ extra_rdoc_files:
66
+ - README.md
67
+ - CHANGELOG
68
+ - LICENSE
69
+ files:
70
+ - CHANGELOG
71
+ - LICENSE
72
+ - README.md
73
+ - lib/rqrcode.rb
74
+ - lib/rqrcode/core_ext.rb
75
+ - lib/rqrcode/core_ext/array.rb
76
+ - lib/rqrcode/core_ext/array/behavior.rb
77
+ - lib/rqrcode/core_ext/integer.rb
78
+ - lib/rqrcode/core_ext/integer/bitwise.rb
79
+ - lib/rqrcode/export/ansi.rb
80
+ - lib/rqrcode/export/gerber.rb
81
+ - lib/rqrcode/export/html.rb
82
+ - lib/rqrcode/export/png.rb
83
+ - lib/rqrcode/export/svg.rb
84
+ - lib/rqrcode/qrcode.rb
85
+ - lib/rqrcode/qrcode/qr_8bit_byte.rb
86
+ - lib/rqrcode/qrcode/qr_alphanumeric.rb
87
+ - lib/rqrcode/qrcode/qr_bit_buffer.rb
88
+ - lib/rqrcode/qrcode/qr_code.rb
89
+ - lib/rqrcode/qrcode/qr_math.rb
90
+ - lib/rqrcode/qrcode/qr_numeric.rb
91
+ - lib/rqrcode/qrcode/qr_polynomial.rb
92
+ - lib/rqrcode/qrcode/qr_rs_block.rb
93
+ - lib/rqrcode/qrcode/qr_util.rb
94
+ - lib/rqrcode/version.rb
95
+ - test/data.rb
96
+ - test/test_helper.rb
97
+ - test/test_regresions.rb
98
+ - test/test_rqrcode.rb
99
+ - test/test_rqrcode_export.rb
100
+ homepage: https://github.com/OSHPark/rqrcode
101
+ licenses: []
102
+ metadata: {}
103
+ post_install_message:
104
+ rdoc_options: []
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 1.3.6
117
+ requirements: []
118
+ rubyforge_project:
119
+ rubygems_version: 2.4.8
120
+ signing_key:
121
+ specification_version: 4
122
+ summary: A library to encode QR Codes
123
+ test_files:
124
+ - test/data.rb
125
+ - test/test_helper.rb
126
+ - test/test_regresions.rb
127
+ - test/test_rqrcode.rb
128
+ - test/test_rqrcode_export.rb