rqrcode 0.10.1 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +108 -136
- data/Rakefile +10 -0
- data/_config.yml +1 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/images/ansi-screen-shot.png +0 -0
- data/images/github-qrcode.png +0 -0
- data/images/github-qrcode.svg +32 -0
- data/lib/rqrcode.rb +8 -19
- data/lib/rqrcode/export.rb +6 -0
- data/lib/rqrcode/export/ansi.rb +14 -15
- data/lib/rqrcode/export/html.rb +6 -8
- data/lib/rqrcode/export/png.rb +18 -19
- data/lib/rqrcode/export/svg.rb +7 -6
- data/lib/rqrcode/qrcode.rb +3 -4
- data/lib/rqrcode/qrcode/qrcode.rb +17 -0
- data/lib/rqrcode/version.rb +3 -1
- data/rqrcode.gemspec +36 -0
- metadata +67 -56
- data/CHANGELOG +0 -97
- data/LICENSE +0 -19
- data/lib/rqrcode/core_ext.rb +0 -5
- data/lib/rqrcode/core_ext/array.rb +0 -5
- data/lib/rqrcode/core_ext/array/behavior.rb +0 -12
- data/lib/rqrcode/core_ext/integer.rb +0 -5
- data/lib/rqrcode/core_ext/integer/bitwise.rb +0 -13
- data/lib/rqrcode/qrcode/qr_8bit_byte.rb +0 -36
- data/lib/rqrcode/qrcode/qr_alphanumeric.rb +0 -47
- data/lib/rqrcode/qrcode/qr_bit_buffer.rb +0 -99
- data/lib/rqrcode/qrcode/qr_code.rb +0 -585
- data/lib/rqrcode/qrcode/qr_math.rb +0 -63
- data/lib/rqrcode/qrcode/qr_numeric.rb +0 -57
- data/lib/rqrcode/qrcode/qr_polynomial.rb +0 -78
- data/lib/rqrcode/qrcode/qr_rs_block.rb +0 -314
- data/lib/rqrcode/qrcode/qr_util.rb +0 -272
- data/test/data.rb +0 -25
- data/test/test_helper.rb +0 -5
- data/test/test_regresions.rb +0 -10
- data/test/test_rqrcode.rb +0 -155
- data/test/test_rqrcode_export.rb +0 -27
data/test/test_rqrcode_export.rb
DELETED
@@ -1,27 +0,0 @@
|
|
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
|