rqrcode 0.9.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +31 -0
- data/.gitignore +9 -1
- data/.rspec +2 -0
- data/Gemfile +3 -8
- data/LICENSE.txt +21 -0
- data/README.md +125 -122
- data/Rakefile +7 -11
- 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 +7 -15
- data/lib/rqrcode/export.rb +6 -0
- data/lib/rqrcode/export/ansi.rb +77 -0
- data/lib/rqrcode/export/html.rb +6 -8
- data/lib/rqrcode/export/png.rb +40 -31
- data/lib/rqrcode/export/svg.rb +16 -7
- 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 +28 -24
- metadata +67 -59
- data/.travis.yml +0 -7
- data/CHANGELOG +0 -85
- data/LICENSE +0 -19
- data/TODO.md +0 -4
- 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 -66
- 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 -23
- 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 -23
data/test/test_rqrcode_export.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
describe :QRCodeExportTest do
|
4
|
-
|
5
|
-
[:svg, :png, :html].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
|
-
end
|