qrcode 0.0.1 → 0.1.0
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 +7 -0
- data/.github/copilot-instructions.md +20 -0
- data/.github/workflows/documentation-coverage.yaml +24 -0
- data/.github/workflows/documentation.yaml +57 -0
- data/.github/workflows/rubocop.yaml +21 -0
- data/.github/workflows/test-coverage.yaml +58 -0
- data/.github/workflows/test-external.yaml +33 -0
- data/.github/workflows/test.yaml +47 -0
- data/fixtures/qrcode/sample_data.rb +31 -0
- data/lib/qrcode/encoder/bit_buffer.rb +90 -0
- data/lib/qrcode/encoder/code.rb +436 -0
- data/lib/qrcode/encoder/constants.rb +75 -0
- data/lib/qrcode/encoder/error_correction_block.rb +318 -0
- data/lib/qrcode/encoder/math.rb +50 -0
- data/lib/qrcode/encoder/polynomial.rb +69 -0
- data/lib/qrcode/encoder/segment.rb +190 -0
- data/lib/qrcode/encoder/util.rb +269 -0
- data/lib/qrcode/encoder.rb +13 -0
- data/lib/qrcode/output/svg.rb +46 -0
- data/lib/qrcode/output/text.rb +62 -0
- data/lib/qrcode/version.rb +13 -2
- data/lib/qrcode.rb +23 -3
- data/license.md +54 -0
- data/readme.md +60 -0
- data/releases.md +14 -0
- metadata +71 -62
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/README.md +0 -29
- data/Rakefile +0 -1
- data/qrcode.gemspec +0 -35
metadata
CHANGED
@@ -1,87 +1,96 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qrcode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
9
|
-
|
7
|
+
- Duncan Robertson
|
8
|
+
- Björn Blomqvist
|
9
|
+
- Gioele Barabucci
|
10
|
+
- Sam Sayer
|
11
|
+
- Fabio Napoleoni
|
12
|
+
- xn
|
13
|
+
- Samuel Williams
|
14
|
+
- Tonči Damjanić
|
15
|
+
- Bjorn Blomqvist
|
16
|
+
- Christopher Lord
|
17
|
+
- Andreas Finger
|
18
|
+
- Andy Brody
|
19
|
+
- James Neal
|
20
|
+
- Jon Evans
|
21
|
+
- Marcos Piccinini
|
22
|
+
- Yauhen Kharuzhy
|
23
|
+
- Bart Jedrocha
|
24
|
+
- Chris Mowforth
|
25
|
+
- Christian Campbell
|
26
|
+
- Daniel Schierbeck
|
27
|
+
- Ferdinand Rosario
|
28
|
+
- Jeremy Evans
|
29
|
+
- José Luis Honorato
|
30
|
+
- Ken Collins
|
31
|
+
- Masataka Pocke Kuwabara
|
32
|
+
- Matt Rohrer
|
33
|
+
- Nathaniel Roman
|
34
|
+
- Nicolò Gnudi
|
35
|
+
- Sean Doig
|
36
|
+
- Simon Males
|
37
|
+
- Simon Schrape
|
38
|
+
- Thibaut Barrère
|
39
|
+
- Tore Darell
|
40
|
+
- dependabot[bot]
|
10
41
|
bindir: bin
|
11
42
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: rake
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: bundler
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.0.0
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.0.0
|
46
|
-
description: ! "rQRCode is a library for encoding QR Codes. The simple\ninterface
|
47
|
-
allows you to create QR Code data structures \nready to be displayed in the way
|
48
|
-
you choose. \n"
|
49
|
-
email:
|
50
|
-
- v.zambre@gmail.com
|
43
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
44
|
+
dependencies: []
|
51
45
|
executables: []
|
52
46
|
extensions: []
|
53
47
|
extra_rdoc_files: []
|
54
48
|
files:
|
55
|
-
- .
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
49
|
+
- ".github/copilot-instructions.md"
|
50
|
+
- ".github/workflows/documentation-coverage.yaml"
|
51
|
+
- ".github/workflows/documentation.yaml"
|
52
|
+
- ".github/workflows/rubocop.yaml"
|
53
|
+
- ".github/workflows/test-coverage.yaml"
|
54
|
+
- ".github/workflows/test-external.yaml"
|
55
|
+
- ".github/workflows/test.yaml"
|
56
|
+
- fixtures/qrcode/sample_data.rb
|
60
57
|
- lib/qrcode.rb
|
58
|
+
- lib/qrcode/encoder.rb
|
59
|
+
- lib/qrcode/encoder/bit_buffer.rb
|
60
|
+
- lib/qrcode/encoder/code.rb
|
61
|
+
- lib/qrcode/encoder/constants.rb
|
62
|
+
- lib/qrcode/encoder/error_correction_block.rb
|
63
|
+
- lib/qrcode/encoder/math.rb
|
64
|
+
- lib/qrcode/encoder/polynomial.rb
|
65
|
+
- lib/qrcode/encoder/segment.rb
|
66
|
+
- lib/qrcode/encoder/util.rb
|
67
|
+
- lib/qrcode/output/svg.rb
|
68
|
+
- lib/qrcode/output/text.rb
|
61
69
|
- lib/qrcode/version.rb
|
62
|
-
-
|
63
|
-
|
64
|
-
|
65
|
-
|
70
|
+
- license.md
|
71
|
+
- readme.md
|
72
|
+
- releases.md
|
73
|
+
homepage: https://github.com/socketry/qrcode
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata:
|
77
|
+
documentation_uri: https://socketry.github.io/qrcode/
|
78
|
+
source_code_uri: https://github.com/socketry/qrcode.git
|
66
79
|
rdoc_options: []
|
67
80
|
require_paths:
|
68
81
|
- lib
|
69
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
83
|
requirements:
|
72
|
-
- -
|
84
|
+
- - ">="
|
73
85
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
86
|
+
version: '3.2'
|
75
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
88
|
requirements:
|
78
|
-
- -
|
89
|
+
- - ">="
|
79
90
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
91
|
+
version: '0'
|
81
92
|
requirements: []
|
82
|
-
|
83
|
-
|
84
|
-
signing_key:
|
85
|
-
specification_version: 3
|
93
|
+
rubygems_version: 3.6.9
|
94
|
+
specification_version: 4
|
86
95
|
summary: A library to encode QR Codes
|
87
96
|
test_files: []
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2013 vishalzambre
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# Qrcode
|
2
|
-
|
3
|
-
TODO: Write a gem description
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'qrcode'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install qrcode
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Contributing
|
24
|
-
|
25
|
-
1. Fork it
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
data/qrcode.gemspec
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'qrcode/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |gem|
|
7
|
-
gem.name = "qrcode"
|
8
|
-
gem.version = Qrcode::VERSION
|
9
|
-
gem.platform = Gem::Platform::RUBY
|
10
|
-
gem.date = '2013-01-11'
|
11
|
-
gem.authors = ["Vishal Zambre"]
|
12
|
-
gem.email = ["v.zambre@gmail.com"]
|
13
|
-
gem.summary = "A library to encode QR Codes"
|
14
|
-
gem.homepage = "https://github.com/vishalzambre/rqrcode.git"
|
15
|
-
|
16
|
-
gem.files = `git ls-files`.split($/)
|
17
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
-
gem.require_paths = ["lib"]
|
20
|
-
gem.description = <<EOF
|
21
|
-
rQRCode is a library for encoding QR Codes. The simple
|
22
|
-
interface allows you to create QR Code data structures
|
23
|
-
ready to be displayed in the way you choose.
|
24
|
-
EOF
|
25
|
-
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
26
|
-
|
27
|
-
gem.add_development_dependency "rake"
|
28
|
-
gem.add_development_dependency("bundler", ">= 1.0.0")
|
29
|
-
|
30
|
-
gem.has_rdoc = true
|
31
|
-
gem.files = `git ls-files`.split("\n")
|
32
|
-
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
33
|
-
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
34
|
-
gem.require_paths = ["lib"]
|
35
|
-
end
|