rqrcode_svg 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/example.svg +1 -0
- data/lib/rqrcode_svg.rb +8 -0
- data/lib/rqrcode_svg/image.rb +50 -0
- data/lib/rqrcode_svg/rqrcode_extensions.rb +7 -0
- data/lib/rqrcode_svg/sequence.rb +18 -0
- data/lib/rqrcode_svg/version.rb +3 -0
- data/rqrcode_svg.gemspec +24 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a4818220a0c9d7b64f364f6ba68f8639177c3b73
|
4
|
+
data.tar.gz: 9668d97d7b03fda52d0266679654e0499e33bf3b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 75116aff89bc0c611462a09a700e4276d9e01c2767b28783744cd076fa55b3354d846e1978404c42b0bdc6d477c6572c02d3778d2ea0438e56fd5106175abdf6
|
7
|
+
data.tar.gz: eb4bb5a84ecf0ae4503c2afd1d4f212de5f4c56f113df07dda609350ec280ffe7430d82ce460f8d5e6407de2a77f6f8e63520ced547953579129c7149648f487
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Steven Petryk
|
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
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# RQRCodeSVG
|
2
|
+
|
3
|
+
Combined with RQRCode, this gem allows you to generate QR codes as SVG documents.
|
4
|
+
|
5
|
+
The structure of this gem is based heavily on [rqrcode_png](https://github.com/DCarper/rqrcode_png). Thanks [@DCarper](https://github.com/DCarper)!
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
$ gem install rqrcode_svg
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
This gem adds a method called `#to_svg` to RQRCode's `QRCode` class:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
qr_code = RQRCode::QRCode.new('http://example.com')
|
17
|
+
svg = qr_code.to_svg # => returns an instance of RQRCodeSVG::Image
|
18
|
+
```
|
19
|
+
|
20
|
+
When you want your document, just call `render`, and pass in your size.
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
svg.render(100)
|
24
|
+
```
|
25
|
+
|
26
|
+
This will return a string containing an entire SVG document consisting of `<rect>`s. The final result looks like this:
|
27
|
+
|
28
|
+
![http://example.com](example.svg)
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
1. Fork it
|
33
|
+
2. Send a pull request
|
34
|
+
|
35
|
+
## License
|
36
|
+
|
37
|
+
[MIT License](http://www.opensource.org/licenses/mit-license.html)
|
data/Rakefile
ADDED
data/example.svg
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0"?><svg width="100" height="100" viewPort="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg"><rect x="0.0" y="0.0" width="3.5" height="3.5" /><rect x="0.0" y="3.0" width="3.5" height="3.5" /><rect x="0.0" y="6.1" width="3.5" height="3.5" /><rect x="0.0" y="9.1" width="3.5" height="3.5" /><rect x="0.0" y="12.1" width="3.5" height="3.5" /><rect x="0.0" y="15.2" width="3.5" height="3.5" /><rect x="0.0" y="18.2" width="3.5" height="3.5" /><rect x="0.0" y="24.2" width="3.5" height="3.5" /><rect x="0.0" y="30.3" width="3.5" height="3.5" /><rect x="0.0" y="39.4" width="3.5" height="3.5" /><rect x="0.0" y="42.4" width="3.5" height="3.5" /><rect x="0.0" y="48.5" width="3.5" height="3.5" /><rect x="0.0" y="51.5" width="3.5" height="3.5" /><rect x="0.0" y="57.6" width="3.5" height="3.5" /><rect x="0.0" y="63.6" width="3.5" height="3.5" /><rect x="0.0" y="66.7" width="3.5" height="3.5" /><rect x="0.0" y="69.7" width="3.5" height="3.5" /><rect x="0.0" y="72.7" width="3.5" height="3.5" /><rect x="0.0" y="78.8" width="3.5" height="3.5" /><rect x="0.0" y="81.8" width="3.5" height="3.5" /><rect x="0.0" y="84.8" width="3.5" height="3.5" /><rect x="0.0" y="87.9" width="3.5" height="3.5" /><rect x="0.0" y="90.9" width="3.5" height="3.5" /><rect x="0.0" y="93.9" width="3.5" height="3.5" /><rect x="0.0" y="97.0" width="3.5" height="3.5" /><rect x="3.0" y="0.0" width="3.5" height="3.5" /><rect x="3.0" y="18.2" width="3.5" height="3.5" /><rect x="3.0" y="33.3" width="3.5" height="3.5" /><rect x="3.0" y="45.5" width="3.5" height="3.5" /><rect x="3.0" y="51.5" width="3.5" height="3.5" /><rect x="3.0" y="54.5" width="3.5" height="3.5" /><rect x="3.0" y="66.7" width="3.5" height="3.5" /><rect x="3.0" y="69.7" width="3.5" height="3.5" /><rect x="3.0" y="72.7" width="3.5" height="3.5" /><rect x="3.0" y="78.8" width="3.5" height="3.5" /><rect x="3.0" y="97.0" width="3.5" height="3.5" /><rect x="6.1" y="0.0" width="3.5" height="3.5" /><rect x="6.1" y="6.1" width="3.5" height="3.5" /><rect x="6.1" y="9.1" width="3.5" height="3.5" /><rect x="6.1" y="12.1" width="3.5" height="3.5" /><rect x="6.1" y="18.2" width="3.5" height="3.5" /><rect x="6.1" y="33.3" width="3.5" height="3.5" /><rect x="6.1" y="36.4" width="3.5" height="3.5" /><rect x="6.1" y="39.4" width="3.5" height="3.5" /><rect x="6.1" y="45.5" width="3.5" height="3.5" /><rect x="6.1" y="54.5" width="3.5" height="3.5" /><rect x="6.1" y="60.6" width="3.5" height="3.5" /><rect x="6.1" y="66.7" width="3.5" height="3.5" /><rect x="6.1" y="69.7" width="3.5" height="3.5" /><rect x="6.1" y="78.8" width="3.5" height="3.5" /><rect x="6.1" y="84.8" width="3.5" height="3.5" /><rect x="6.1" y="87.9" width="3.5" height="3.5" /><rect x="6.1" y="90.9" width="3.5" height="3.5" /><rect x="6.1" y="97.0" width="3.5" height="3.5" /><rect x="9.1" y="0.0" width="3.5" height="3.5" /><rect x="9.1" y="6.1" width="3.5" height="3.5" /><rect x="9.1" y="9.1" width="3.5" height="3.5" /><rect x="9.1" y="12.1" width="3.5" height="3.5" /><rect x="9.1" y="18.2" width="3.5" height="3.5" /><rect x="9.1" y="24.2" width="3.5" height="3.5" /><rect x="9.1" y="36.4" width="3.5" height="3.5" /><rect x="9.1" y="45.5" width="3.5" height="3.5" /><rect x="9.1" y="51.5" width="3.5" height="3.5" /><rect x="9.1" y="57.6" width="3.5" height="3.5" /><rect x="9.1" y="66.7" width="3.5" height="3.5" /><rect x="9.1" y="72.7" width="3.5" height="3.5" /><rect x="9.1" y="78.8" width="3.5" height="3.5" /><rect x="9.1" y="84.8" width="3.5" height="3.5" /><rect x="9.1" y="87.9" width="3.5" height="3.5" /><rect x="9.1" y="90.9" width="3.5" height="3.5" /><rect x="9.1" y="97.0" width="3.5" height="3.5" /><rect x="12.1" y="0.0" width="3.5" height="3.5" /><rect x="12.1" y="6.1" width="3.5" height="3.5" /><rect x="12.1" y="9.1" width="3.5" height="3.5" /><rect x="12.1" y="12.1" width="3.5" height="3.5" /><rect x="12.1" y="18.2" width="3.5" height="3.5" /><rect x="12.1" y="27.3" width="3.5" height="3.5" /><rect x="12.1" y="30.3" width="3.5" height="3.5" /><rect x="12.1" y="39.4" width="3.5" height="3.5" /><rect x="12.1" y="45.5" width="3.5" height="3.5" /><rect x="12.1" y="48.5" width="3.5" height="3.5" /><rect x="12.1" y="51.5" width="3.5" height="3.5" /><rect x="12.1" y="54.5" width="3.5" height="3.5" /><rect x="12.1" y="66.7" width="3.5" height="3.5" /><rect x="12.1" y="72.7" width="3.5" height="3.5" /><rect x="12.1" y="78.8" width="3.5" height="3.5" /><rect x="12.1" y="84.8" width="3.5" height="3.5" /><rect x="12.1" y="87.9" width="3.5" height="3.5" /><rect x="12.1" y="90.9" width="3.5" height="3.5" /><rect x="12.1" y="97.0" width="3.5" height="3.5" /><rect x="15.2" y="0.0" width="3.5" height="3.5" /><rect x="15.2" y="18.2" width="3.5" height="3.5" /><rect x="15.2" y="33.3" width="3.5" height="3.5" /><rect x="15.2" y="36.4" width="3.5" height="3.5" /><rect x="15.2" y="42.4" width="3.5" height="3.5" /><rect x="15.2" y="45.5" width="3.5" height="3.5" /><rect x="15.2" y="54.5" width="3.5" height="3.5" /><rect x="15.2" y="57.6" width="3.5" height="3.5" /><rect x="15.2" y="60.6" width="3.5" height="3.5" /><rect x="15.2" y="63.6" width="3.5" height="3.5" /><rect x="15.2" y="69.7" width="3.5" height="3.5" /><rect x="15.2" y="72.7" width="3.5" height="3.5" /><rect x="15.2" y="78.8" width="3.5" height="3.5" /><rect x="15.2" y="97.0" width="3.5" height="3.5" /><rect x="18.2" y="0.0" width="3.5" height="3.5" /><rect x="18.2" y="3.0" width="3.5" height="3.5" /><rect x="18.2" y="6.1" width="3.5" height="3.5" /><rect x="18.2" y="9.1" width="3.5" height="3.5" /><rect x="18.2" y="12.1" width="3.5" height="3.5" /><rect x="18.2" y="15.2" width="3.5" height="3.5" /><rect x="18.2" y="18.2" width="3.5" height="3.5" /><rect x="18.2" y="24.2" width="3.5" height="3.5" /><rect x="18.2" y="30.3" width="3.5" height="3.5" /><rect x="18.2" y="36.4" width="3.5" height="3.5" /><rect x="18.2" y="42.4" width="3.5" height="3.5" /><rect x="18.2" y="48.5" width="3.5" height="3.5" /><rect x="18.2" y="54.5" width="3.5" height="3.5" /><rect x="18.2" y="60.6" width="3.5" height="3.5" /><rect x="18.2" y="66.7" width="3.5" height="3.5" /><rect x="18.2" y="72.7" width="3.5" height="3.5" /><rect x="18.2" y="78.8" width="3.5" height="3.5" /><rect x="18.2" y="81.8" width="3.5" height="3.5" /><rect x="18.2" y="84.8" width="3.5" height="3.5" /><rect x="18.2" y="87.9" width="3.5" height="3.5" /><rect x="18.2" y="90.9" width="3.5" height="3.5" /><rect x="18.2" y="93.9" width="3.5" height="3.5" /><rect x="18.2" y="97.0" width="3.5" height="3.5" /><rect x="21.2" y="39.4" width="3.5" height="3.5" /><rect x="21.2" y="51.5" width="3.5" height="3.5" /><rect x="21.2" y="54.5" width="3.5" height="3.5" /><rect x="21.2" y="57.6" width="3.5" height="3.5" /><rect x="21.2" y="63.6" width="3.5" height="3.5" /><rect x="21.2" y="66.7" width="3.5" height="3.5" /><rect x="21.2" y="69.7" width="3.5" height="3.5" /><rect x="24.2" y="6.1" width="3.5" height="3.5" /><rect x="24.2" y="12.1" width="3.5" height="3.5" /><rect x="24.2" y="15.2" width="3.5" height="3.5" /><rect x="24.2" y="18.2" width="3.5" height="3.5" /><rect x="24.2" y="24.2" width="3.5" height="3.5" /><rect x="24.2" y="27.3" width="3.5" height="3.5" /><rect x="24.2" y="33.3" width="3.5" height="3.5" /><rect x="24.2" y="36.4" width="3.5" height="3.5" /><rect x="24.2" y="42.4" width="3.5" height="3.5" /><rect x="24.2" y="54.5" width="3.5" height="3.5" /><rect x="24.2" y="60.6" width="3.5" height="3.5" /><rect x="24.2" y="66.7" width="3.5" height="3.5" /><rect x="24.2" y="72.7" width="3.5" height="3.5" /><rect x="24.2" y="75.8" width="3.5" height="3.5" /><rect x="24.2" y="87.9" width="3.5" height="3.5" /><rect x="24.2" y="97.0" width="3.5" height="3.5" /><rect x="27.3" y="3.0" width="3.5" height="3.5" /><rect x="27.3" y="6.1" width="3.5" height="3.5" /><rect x="27.3" y="33.3" width="3.5" height="3.5" /><rect x="27.3" y="48.5" width="3.5" height="3.5" /><rect x="27.3" y="66.7" width="3.5" height="3.5" /><rect x="27.3" y="69.7" width="3.5" height="3.5" /><rect x="27.3" y="72.7" width="3.5" height="3.5" /><rect x="27.3" y="78.8" width="3.5" height="3.5" /><rect x="27.3" y="90.9" width="3.5" height="3.5" /><rect x="27.3" y="93.9" width="3.5" height="3.5" /><rect x="27.3" y="97.0" width="3.5" height="3.5" /><rect x="30.3" y="0.0" width="3.5" height="3.5" /><rect x="30.3" y="6.1" width="3.5" height="3.5" /><rect x="30.3" y="9.1" width="3.5" height="3.5" /><rect x="30.3" y="12.1" width="3.5" height="3.5" /><rect x="30.3" y="18.2" width="3.5" height="3.5" /><rect x="30.3" y="24.2" width="3.5" height="3.5" /><rect x="30.3" y="27.3" width="3.5" height="3.5" /><rect x="30.3" y="30.3" width="3.5" height="3.5" /><rect x="30.3" y="42.4" width="3.5" height="3.5" /><rect x="30.3" y="48.5" width="3.5" height="3.5" /><rect x="30.3" y="60.6" width="3.5" height="3.5" /><rect x="30.3" y="63.6" width="3.5" height="3.5" /><rect x="30.3" y="69.7" width="3.5" height="3.5" /><rect x="30.3" y="72.7" width="3.5" height="3.5" /><rect x="30.3" y="78.8" width="3.5" height="3.5" /><rect x="30.3" y="84.8" width="3.5" height="3.5" /><rect x="30.3" y="87.9" width="3.5" height="3.5" /><rect x="30.3" y="90.9" width="3.5" height="3.5" /><rect x="30.3" y="93.9" width="3.5" height="3.5" /><rect x="30.3" y="97.0" width="3.5" height="3.5" /><rect x="33.3" y="0.0" width="3.5" height="3.5" /><rect x="33.3" y="6.1" width="3.5" height="3.5" /><rect x="33.3" y="12.1" width="3.5" height="3.5" /><rect x="33.3" y="15.2" width="3.5" height="3.5" /><rect x="33.3" y="24.2" width="3.5" height="3.5" /><rect x="33.3" y="33.3" width="3.5" height="3.5" /><rect x="33.3" y="36.4" width="3.5" height="3.5" /><rect x="33.3" y="39.4" width="3.5" height="3.5" /><rect x="33.3" y="42.4" width="3.5" height="3.5" /><rect x="33.3" y="48.5" width="3.5" height="3.5" /><rect x="33.3" y="51.5" width="3.5" height="3.5" /><rect x="33.3" y="54.5" width="3.5" height="3.5" /><rect x="33.3" y="57.6" width="3.5" height="3.5" /><rect x="33.3" y="60.6" width="3.5" height="3.5" /><rect x="33.3" y="72.7" width="3.5" height="3.5" /><rect x="33.3" y="75.8" width="3.5" height="3.5" /><rect x="33.3" y="87.9" width="3.5" height="3.5" /><rect x="33.3" y="93.9" width="3.5" height="3.5" /><rect x="36.4" y="0.0" width="3.5" height="3.5" /><rect x="36.4" y="3.0" width="3.5" height="3.5" /><rect x="36.4" y="9.1" width="3.5" height="3.5" /><rect x="36.4" y="18.2" width="3.5" height="3.5" /><rect x="36.4" y="21.2" width="3.5" height="3.5" /><rect x="36.4" y="24.2" width="3.5" height="3.5" /><rect x="36.4" y="27.3" width="3.5" height="3.5" /><rect x="36.4" y="30.3" width="3.5" height="3.5" /><rect x="36.4" y="33.3" width="3.5" height="3.5" /><rect x="36.4" y="45.5" width="3.5" height="3.5" /><rect x="36.4" y="48.5" width="3.5" height="3.5" /><rect x="36.4" y="51.5" width="3.5" height="3.5" /><rect x="36.4" y="54.5" width="3.5" height="3.5" /><rect x="36.4" y="69.7" width="3.5" height="3.5" /><rect x="36.4" y="72.7" width="3.5" height="3.5" /><rect x="36.4" y="75.8" width="3.5" height="3.5" /><rect x="36.4" y="78.8" width="3.5" height="3.5" /><rect x="36.4" y="84.8" width="3.5" height="3.5" /><rect x="36.4" y="90.9" width="3.5" height="3.5" /><rect x="39.4" y="9.1" width="3.5" height="3.5" /><rect x="39.4" y="15.2" width="3.5" height="3.5" /><rect x="39.4" y="24.2" width="3.5" height="3.5" /><rect x="39.4" y="33.3" width="3.5" height="3.5" /><rect x="39.4" y="36.4" width="3.5" height="3.5" /><rect x="39.4" y="39.4" width="3.5" height="3.5" /><rect x="39.4" y="48.5" width="3.5" height="3.5" /><rect x="39.4" y="51.5" width="3.5" height="3.5" /><rect x="39.4" y="57.6" width="3.5" height="3.5" /><rect x="39.4" y="75.8" width="3.5" height="3.5" /><rect x="39.4" y="78.8" width="3.5" height="3.5" /><rect x="39.4" y="84.8" width="3.5" height="3.5" /><rect x="39.4" y="90.9" width="3.5" height="3.5" /><rect x="39.4" y="93.9" width="3.5" height="3.5" /><rect x="39.4" y="97.0" width="3.5" height="3.5" /><rect x="42.4" y="6.1" width="3.5" height="3.5" /><rect x="42.4" y="9.1" width="3.5" height="3.5" /><rect x="42.4" y="12.1" width="3.5" height="3.5" /><rect x="42.4" y="15.2" width="3.5" height="3.5" /><rect x="42.4" y="18.2" width="3.5" height="3.5" /><rect x="42.4" y="21.2" width="3.5" height="3.5" /><rect x="42.4" y="24.2" width="3.5" height="3.5" /><rect x="42.4" y="27.3" width="3.5" height="3.5" /><rect x="42.4" y="33.3" width="3.5" height="3.5" /><rect x="42.4" y="42.4" width="3.5" height="3.5" /><rect x="42.4" y="51.5" width="3.5" height="3.5" /><rect x="42.4" y="54.5" width="3.5" height="3.5" /><rect x="42.4" y="57.6" width="3.5" height="3.5" /><rect x="42.4" y="63.6" width="3.5" height="3.5" /><rect x="42.4" y="75.8" width="3.5" height="3.5" /><rect x="42.4" y="93.9" width="3.5" height="3.5" /><rect x="42.4" y="97.0" width="3.5" height="3.5" /><rect x="45.5" y="15.2" width="3.5" height="3.5" /><rect x="45.5" y="21.2" width="3.5" height="3.5" /><rect x="45.5" y="30.3" width="3.5" height="3.5" /><rect x="45.5" y="48.5" width="3.5" height="3.5" /><rect x="45.5" y="54.5" width="3.5" height="3.5" /><rect x="45.5" y="60.6" width="3.5" height="3.5" /><rect x="45.5" y="63.6" width="3.5" height="3.5" /><rect x="45.5" y="66.7" width="3.5" height="3.5" /><rect x="45.5" y="69.7" width="3.5" height="3.5" /><rect x="45.5" y="72.7" width="3.5" height="3.5" /><rect x="45.5" y="75.8" width="3.5" height="3.5" /><rect x="45.5" y="78.8" width="3.5" height="3.5" /><rect x="45.5" y="84.8" width="3.5" height="3.5" /><rect x="45.5" y="90.9" width="3.5" height="3.5" /><rect x="45.5" y="93.9" width="3.5" height="3.5" /><rect x="45.5" y="97.0" width="3.5" height="3.5" /><rect x="48.5" y="0.0" width="3.5" height="3.5" /><rect x="48.5" y="12.1" width="3.5" height="3.5" /><rect x="48.5" y="15.2" width="3.5" height="3.5" /><rect x="48.5" y="18.2" width="3.5" height="3.5" /><rect x="48.5" y="24.2" width="3.5" height="3.5" /><rect x="48.5" y="30.3" width="3.5" height="3.5" /><rect x="48.5" y="33.3" width="3.5" height="3.5" /><rect x="48.5" y="36.4" width="3.5" height="3.5" /><rect x="48.5" y="45.5" width="3.5" height="3.5" /><rect x="48.5" y="48.5" width="3.5" height="3.5" /><rect x="48.5" y="51.5" width="3.5" height="3.5" /><rect x="48.5" y="60.6" width="3.5" height="3.5" /><rect x="48.5" y="63.6" width="3.5" height="3.5" /><rect x="48.5" y="72.7" width="3.5" height="3.5" /><rect x="48.5" y="75.8" width="3.5" height="3.5" /><rect x="48.5" y="81.8" width="3.5" height="3.5" /><rect x="48.5" y="84.8" width="3.5" height="3.5" /><rect x="48.5" y="90.9" width="3.5" height="3.5" /><rect x="48.5" y="97.0" width="3.5" height="3.5" /><rect x="51.5" y="0.0" width="3.5" height="3.5" /><rect x="51.5" y="3.0" width="3.5" height="3.5" /><rect x="51.5" y="6.1" width="3.5" height="3.5" /><rect x="51.5" y="9.1" width="3.5" height="3.5" /><rect x="51.5" y="12.1" width="3.5" height="3.5" /><rect x="51.5" y="24.2" width="3.5" height="3.5" /><rect x="51.5" y="27.3" width="3.5" height="3.5" /><rect x="51.5" y="33.3" width="3.5" height="3.5" /><rect x="51.5" y="36.4" width="3.5" height="3.5" /><rect x="51.5" y="39.4" width="3.5" height="3.5" /><rect x="51.5" y="42.4" width="3.5" height="3.5" /><rect x="51.5" y="48.5" width="3.5" height="3.5" /><rect x="51.5" y="51.5" width="3.5" height="3.5" /><rect x="51.5" y="63.6" width="3.5" height="3.5" /><rect x="51.5" y="75.8" width="3.5" height="3.5" /><rect x="51.5" y="81.8" width="3.5" height="3.5" /><rect x="51.5" y="87.9" width="3.5" height="3.5" /><rect x="51.5" y="90.9" width="3.5" height="3.5" /><rect x="54.5" y="3.0" width="3.5" height="3.5" /><rect x="54.5" y="18.2" width="3.5" height="3.5" /><rect x="54.5" y="21.2" width="3.5" height="3.5" /><rect x="54.5" y="24.2" width="3.5" height="3.5" /><rect x="54.5" y="27.3" width="3.5" height="3.5" /><rect x="54.5" y="33.3" width="3.5" height="3.5" /><rect x="54.5" y="39.4" width="3.5" height="3.5" /><rect x="54.5" y="45.5" width="3.5" height="3.5" /><rect x="54.5" y="60.6" width="3.5" height="3.5" /><rect x="54.5" y="63.6" width="3.5" height="3.5" /><rect x="54.5" y="66.7" width="3.5" height="3.5" /><rect x="54.5" y="72.7" width="3.5" height="3.5" /><rect x="54.5" y="78.8" width="3.5" height="3.5" /><rect x="54.5" y="81.8" width="3.5" height="3.5" /><rect x="54.5" y="84.8" width="3.5" height="3.5" /><rect x="54.5" y="90.9" width="3.5" height="3.5" /><rect x="54.5" y="97.0" width="3.5" height="3.5" /><rect x="57.6" y="3.0" width="3.5" height="3.5" /><rect x="57.6" y="6.1" width="3.5" height="3.5" /><rect x="57.6" y="9.1" width="3.5" height="3.5" /><rect x="57.6" y="12.1" width="3.5" height="3.5" /><rect x="57.6" y="15.2" width="3.5" height="3.5" /><rect x="57.6" y="30.3" width="3.5" height="3.5" /><rect x="57.6" y="33.3" width="3.5" height="3.5" /><rect x="57.6" y="42.4" width="3.5" height="3.5" /><rect x="57.6" y="48.5" width="3.5" height="3.5" /><rect x="57.6" y="57.6" width="3.5" height="3.5" /><rect x="57.6" y="63.6" width="3.5" height="3.5" /><rect x="57.6" y="66.7" width="3.5" height="3.5" /><rect x="57.6" y="81.8" width="3.5" height="3.5" /><rect x="60.6" y="0.0" width="3.5" height="3.5" /><rect x="60.6" y="3.0" width="3.5" height="3.5" /><rect x="60.6" y="6.1" width="3.5" height="3.5" /><rect x="60.6" y="15.2" width="3.5" height="3.5" /><rect x="60.6" y="18.2" width="3.5" height="3.5" /><rect x="60.6" y="24.2" width="3.5" height="3.5" /><rect x="60.6" y="27.3" width="3.5" height="3.5" /><rect x="60.6" y="36.4" width="3.5" height="3.5" /><rect x="60.6" y="39.4" width="3.5" height="3.5" /><rect x="60.6" y="48.5" width="3.5" height="3.5" /><rect x="60.6" y="51.5" width="3.5" height="3.5" /><rect x="60.6" y="54.5" width="3.5" height="3.5" /><rect x="60.6" y="60.6" width="3.5" height="3.5" /><rect x="60.6" y="63.6" width="3.5" height="3.5" /><rect x="60.6" y="69.7" width="3.5" height="3.5" /><rect x="60.6" y="72.7" width="3.5" height="3.5" /><rect x="60.6" y="78.8" width="3.5" height="3.5" /><rect x="60.6" y="81.8" width="3.5" height="3.5" /><rect x="60.6" y="87.9" width="3.5" height="3.5" /><rect x="60.6" y="97.0" width="3.5" height="3.5" /><rect x="63.6" y="6.1" width="3.5" height="3.5" /><rect x="63.6" y="9.1" width="3.5" height="3.5" /><rect x="63.6" y="12.1" width="3.5" height="3.5" /><rect x="63.6" y="15.2" width="3.5" height="3.5" /><rect x="63.6" y="39.4" width="3.5" height="3.5" /><rect x="63.6" y="51.5" width="3.5" height="3.5" /><rect x="63.6" y="54.5" width="3.5" height="3.5" /><rect x="63.6" y="60.6" width="3.5" height="3.5" /><rect x="63.6" y="69.7" width="3.5" height="3.5" /><rect x="63.6" y="72.7" width="3.5" height="3.5" /><rect x="63.6" y="87.9" width="3.5" height="3.5" /><rect x="63.6" y="93.9" width="3.5" height="3.5" /><rect x="63.6" y="97.0" width="3.5" height="3.5" /><rect x="66.7" y="0.0" width="3.5" height="3.5" /><rect x="66.7" y="6.1" width="3.5" height="3.5" /><rect x="66.7" y="15.2" width="3.5" height="3.5" /><rect x="66.7" y="18.2" width="3.5" height="3.5" /><rect x="66.7" y="21.2" width="3.5" height="3.5" /><rect x="66.7" y="24.2" width="3.5" height="3.5" /><rect x="66.7" y="33.3" width="3.5" height="3.5" /><rect x="66.7" y="39.4" width="3.5" height="3.5" /><rect x="66.7" y="42.4" width="3.5" height="3.5" /><rect x="66.7" y="45.5" width="3.5" height="3.5" /><rect x="66.7" y="60.6" width="3.5" height="3.5" /><rect x="66.7" y="63.6" width="3.5" height="3.5" /><rect x="66.7" y="69.7" width="3.5" height="3.5" /><rect x="66.7" y="72.7" width="3.5" height="3.5" /><rect x="66.7" y="78.8" width="3.5" height="3.5" /><rect x="66.7" y="81.8" width="3.5" height="3.5" /><rect x="66.7" y="84.8" width="3.5" height="3.5" /><rect x="66.7" y="87.9" width="3.5" height="3.5" /><rect x="66.7" y="90.9" width="3.5" height="3.5" /><rect x="66.7" y="93.9" width="3.5" height="3.5" /><rect x="66.7" y="97.0" width="3.5" height="3.5" /><rect x="69.7" y="3.0" width="3.5" height="3.5" /><rect x="69.7" y="12.1" width="3.5" height="3.5" /><rect x="69.7" y="21.2" width="3.5" height="3.5" /><rect x="69.7" y="24.2" width="3.5" height="3.5" /><rect x="69.7" y="27.3" width="3.5" height="3.5" /><rect x="69.7" y="30.3" width="3.5" height="3.5" /><rect x="69.7" y="33.3" width="3.5" height="3.5" /><rect x="69.7" y="36.4" width="3.5" height="3.5" /><rect x="69.7" y="42.4" width="3.5" height="3.5" /><rect x="69.7" y="45.5" width="3.5" height="3.5" /><rect x="69.7" y="54.5" width="3.5" height="3.5" /><rect x="69.7" y="57.6" width="3.5" height="3.5" /><rect x="69.7" y="60.6" width="3.5" height="3.5" /><rect x="69.7" y="72.7" width="3.5" height="3.5" /><rect x="69.7" y="75.8" width="3.5" height="3.5" /><rect x="69.7" y="84.8" width="3.5" height="3.5" /><rect x="69.7" y="97.0" width="3.5" height="3.5" /><rect x="72.7" y="0.0" width="3.5" height="3.5" /><rect x="72.7" y="6.1" width="3.5" height="3.5" /><rect x="72.7" y="9.1" width="3.5" height="3.5" /><rect x="72.7" y="18.2" width="3.5" height="3.5" /><rect x="72.7" y="24.2" width="3.5" height="3.5" /><rect x="72.7" y="30.3" width="3.5" height="3.5" /><rect x="72.7" y="33.3" width="3.5" height="3.5" /><rect x="72.7" y="36.4" width="3.5" height="3.5" /><rect x="72.7" y="39.4" width="3.5" height="3.5" /><rect x="72.7" y="45.5" width="3.5" height="3.5" /><rect x="72.7" y="57.6" width="3.5" height="3.5" /><rect x="72.7" y="69.7" width="3.5" height="3.5" /><rect x="72.7" y="72.7" width="3.5" height="3.5" /><rect x="72.7" y="75.8" width="3.5" height="3.5" /><rect x="72.7" y="78.8" width="3.5" height="3.5" /><rect x="72.7" y="81.8" width="3.5" height="3.5" /><rect x="72.7" y="84.8" width="3.5" height="3.5" /><rect x="72.7" y="93.9" width="3.5" height="3.5" /><rect x="75.8" y="24.2" width="3.5" height="3.5" /><rect x="75.8" y="27.3" width="3.5" height="3.5" /><rect x="75.8" y="54.5" width="3.5" height="3.5" /><rect x="75.8" y="60.6" width="3.5" height="3.5" /><rect x="75.8" y="63.6" width="3.5" height="3.5" /><rect x="75.8" y="72.7" width="3.5" height="3.5" /><rect x="75.8" y="84.8" width="3.5" height="3.5" /><rect x="75.8" y="90.9" width="3.5" height="3.5" /><rect x="75.8" y="97.0" width="3.5" height="3.5" /><rect x="78.8" y="0.0" width="3.5" height="3.5" /><rect x="78.8" y="3.0" width="3.5" height="3.5" /><rect x="78.8" y="6.1" width="3.5" height="3.5" /><rect x="78.8" y="9.1" width="3.5" height="3.5" /><rect x="78.8" y="12.1" width="3.5" height="3.5" /><rect x="78.8" y="15.2" width="3.5" height="3.5" /><rect x="78.8" y="18.2" width="3.5" height="3.5" /><rect x="78.8" y="42.4" width="3.5" height="3.5" /><rect x="78.8" y="45.5" width="3.5" height="3.5" /><rect x="78.8" y="48.5" width="3.5" height="3.5" /><rect x="78.8" y="51.5" width="3.5" height="3.5" /><rect x="78.8" y="54.5" width="3.5" height="3.5" /><rect x="78.8" y="60.6" width="3.5" height="3.5" /><rect x="78.8" y="66.7" width="3.5" height="3.5" /><rect x="78.8" y="72.7" width="3.5" height="3.5" /><rect x="78.8" y="78.8" width="3.5" height="3.5" /><rect x="78.8" y="84.8" width="3.5" height="3.5" /><rect x="78.8" y="93.9" width="3.5" height="3.5" /><rect x="78.8" y="97.0" width="3.5" height="3.5" /><rect x="81.8" y="0.0" width="3.5" height="3.5" /><rect x="81.8" y="18.2" width="3.5" height="3.5" /><rect x="81.8" y="24.2" width="3.5" height="3.5" /><rect x="81.8" y="27.3" width="3.5" height="3.5" /><rect x="81.8" y="30.3" width="3.5" height="3.5" /><rect x="81.8" y="33.3" width="3.5" height="3.5" /><rect x="81.8" y="39.4" width="3.5" height="3.5" /><rect x="81.8" y="54.5" width="3.5" height="3.5" /><rect x="81.8" y="57.6" width="3.5" height="3.5" /><rect x="81.8" y="63.6" width="3.5" height="3.5" /><rect x="81.8" y="66.7" width="3.5" height="3.5" /><rect x="81.8" y="69.7" width="3.5" height="3.5" /><rect x="81.8" y="72.7" width="3.5" height="3.5" /><rect x="81.8" y="84.8" width="3.5" height="3.5" /><rect x="81.8" y="90.9" width="3.5" height="3.5" /><rect x="84.8" y="0.0" width="3.5" height="3.5" /><rect x="84.8" y="6.1" width="3.5" height="3.5" /><rect x="84.8" y="9.1" width="3.5" height="3.5" /><rect x="84.8" y="12.1" width="3.5" height="3.5" /><rect x="84.8" y="18.2" width="3.5" height="3.5" /><rect x="84.8" y="24.2" width="3.5" height="3.5" /><rect x="84.8" y="27.3" width="3.5" height="3.5" /><rect x="84.8" y="30.3" width="3.5" height="3.5" /><rect x="84.8" y="33.3" width="3.5" height="3.5" /><rect x="84.8" y="39.4" width="3.5" height="3.5" /><rect x="84.8" y="45.5" width="3.5" height="3.5" /><rect x="84.8" y="54.5" width="3.5" height="3.5" /><rect x="84.8" y="66.7" width="3.5" height="3.5" /><rect x="84.8" y="72.7" width="3.5" height="3.5" /><rect x="84.8" y="75.8" width="3.5" height="3.5" /><rect x="84.8" y="78.8" width="3.5" height="3.5" /><rect x="84.8" y="81.8" width="3.5" height="3.5" /><rect x="84.8" y="84.8" width="3.5" height="3.5" /><rect x="84.8" y="90.9" width="3.5" height="3.5" /><rect x="84.8" y="93.9" width="3.5" height="3.5" /><rect x="84.8" y="97.0" width="3.5" height="3.5" /><rect x="87.9" y="0.0" width="3.5" height="3.5" /><rect x="87.9" y="6.1" width="3.5" height="3.5" /><rect x="87.9" y="9.1" width="3.5" height="3.5" /><rect x="87.9" y="12.1" width="3.5" height="3.5" /><rect x="87.9" y="18.2" width="3.5" height="3.5" /><rect x="87.9" y="27.3" width="3.5" height="3.5" /><rect x="87.9" y="36.4" width="3.5" height="3.5" /><rect x="87.9" y="42.4" width="3.5" height="3.5" /><rect x="87.9" y="45.5" width="3.5" height="3.5" /><rect x="87.9" y="48.5" width="3.5" height="3.5" /><rect x="87.9" y="51.5" width="3.5" height="3.5" /><rect x="87.9" y="54.5" width="3.5" height="3.5" /><rect x="87.9" y="60.6" width="3.5" height="3.5" /><rect x="87.9" y="63.6" width="3.5" height="3.5" /><rect x="87.9" y="66.7" width="3.5" height="3.5" /><rect x="87.9" y="75.8" width="3.5" height="3.5" /><rect x="87.9" y="84.8" width="3.5" height="3.5" /><rect x="87.9" y="87.9" width="3.5" height="3.5" /><rect x="90.9" y="0.0" width="3.5" height="3.5" /><rect x="90.9" y="6.1" width="3.5" height="3.5" /><rect x="90.9" y="9.1" width="3.5" height="3.5" /><rect x="90.9" y="12.1" width="3.5" height="3.5" /><rect x="90.9" y="18.2" width="3.5" height="3.5" /><rect x="90.9" y="24.2" width="3.5" height="3.5" /><rect x="90.9" y="27.3" width="3.5" height="3.5" /><rect x="90.9" y="45.5" width="3.5" height="3.5" /><rect x="90.9" y="51.5" width="3.5" height="3.5" /><rect x="90.9" y="54.5" width="3.5" height="3.5" /><rect x="90.9" y="72.7" width="3.5" height="3.5" /><rect x="90.9" y="75.8" width="3.5" height="3.5" /><rect x="90.9" y="81.8" width="3.5" height="3.5" /><rect x="90.9" y="84.8" width="3.5" height="3.5" /><rect x="90.9" y="87.9" width="3.5" height="3.5" /><rect x="90.9" y="90.9" width="3.5" height="3.5" /><rect x="90.9" y="97.0" width="3.5" height="3.5" /><rect x="93.9" y="0.0" width="3.5" height="3.5" /><rect x="93.9" y="18.2" width="3.5" height="3.5" /><rect x="93.9" y="27.3" width="3.5" height="3.5" /><rect x="93.9" y="33.3" width="3.5" height="3.5" /><rect x="93.9" y="36.4" width="3.5" height="3.5" /><rect x="93.9" y="39.4" width="3.5" height="3.5" /><rect x="93.9" y="45.5" width="3.5" height="3.5" /><rect x="93.9" y="63.6" width="3.5" height="3.5" /><rect x="93.9" y="69.7" width="3.5" height="3.5" /><rect x="93.9" y="72.7" width="3.5" height="3.5" /><rect x="93.9" y="78.8" width="3.5" height="3.5" /><rect x="93.9" y="81.8" width="3.5" height="3.5" /><rect x="93.9" y="87.9" width="3.5" height="3.5" /><rect x="93.9" y="93.9" width="3.5" height="3.5" /><rect x="97.0" y="0.0" width="3.5" height="3.5" /><rect x="97.0" y="3.0" width="3.5" height="3.5" /><rect x="97.0" y="6.1" width="3.5" height="3.5" /><rect x="97.0" y="9.1" width="3.5" height="3.5" /><rect x="97.0" y="12.1" width="3.5" height="3.5" /><rect x="97.0" y="15.2" width="3.5" height="3.5" /><rect x="97.0" y="18.2" width="3.5" height="3.5" /><rect x="97.0" y="27.3" width="3.5" height="3.5" /><rect x="97.0" y="36.4" width="3.5" height="3.5" /><rect x="97.0" y="45.5" width="3.5" height="3.5" /><rect x="97.0" y="54.5" width="3.5" height="3.5" /><rect x="97.0" y="57.6" width="3.5" height="3.5" /><rect x="97.0" y="60.6" width="3.5" height="3.5" /><rect x="97.0" y="66.7" width="3.5" height="3.5" /><rect x="97.0" y="69.7" width="3.5" height="3.5" /><rect x="97.0" y="72.7" width="3.5" height="3.5" /><rect x="97.0" y="78.8" width="3.5" height="3.5" /><rect x="97.0" y="81.8" width="3.5" height="3.5" /><rect x="97.0" y="84.8" width="3.5" height="3.5" /><rect x="97.0" y="87.9" width="3.5" height="3.5" /><rect x="97.0" y="90.9" width="3.5" height="3.5" /><rect x="97.0" y="93.9" width="3.5" height="3.5" /><rect x="97.0" y="97.0" width="3.5" height="3.5" /></svg>
|
data/lib/rqrcode_svg.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
module RQRCodeSVG
|
2
|
+
class Image
|
3
|
+
|
4
|
+
def initialize(qr_code)
|
5
|
+
@qr_code = qr_code
|
6
|
+
@sequence = Sequence.new(qr_code)
|
7
|
+
end
|
8
|
+
|
9
|
+
def render(size)
|
10
|
+
stream = ""
|
11
|
+
block_size = size/@qr_code.module_count.to_f
|
12
|
+
|
13
|
+
stream += doctype
|
14
|
+
stream += svg_open(size)
|
15
|
+
|
16
|
+
@sequence.dark_squares_only do |row, column|
|
17
|
+
row_x, row_y = to_coord(size, row), to_coord(size, column)
|
18
|
+
stream += square(row_x, row_y, block_size)
|
19
|
+
end
|
20
|
+
|
21
|
+
stream += svg_close
|
22
|
+
|
23
|
+
stream
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def doctype
|
29
|
+
%(<?xml version="1.0"?>)
|
30
|
+
end
|
31
|
+
|
32
|
+
def svg_open(size)
|
33
|
+
%(<svg width="#{size}" height="#{size}" viewPort="0 0 #{size} #{size}" version="1.1" xmlns="http://www.w3.org/2000/svg">)
|
34
|
+
end
|
35
|
+
|
36
|
+
def svg_close
|
37
|
+
%(</svg>)
|
38
|
+
end
|
39
|
+
|
40
|
+
def to_coord(size, value)
|
41
|
+
size * value / @qr_code.module_count.to_f
|
42
|
+
end
|
43
|
+
|
44
|
+
def square(x, y, size)
|
45
|
+
x, y, size = *[x, y, size].map { |v| v.round(1) }
|
46
|
+
%(<rect x="#{x}" y="#{y}" width="#{size+0.5}" height="#{size+0.5}" />)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module RQRCodeSVG
|
2
|
+
class Sequence
|
3
|
+
def initialize(qr_code)
|
4
|
+
@qr_code = qr_code
|
5
|
+
end
|
6
|
+
|
7
|
+
# This method yields the vertices of the dark squares
|
8
|
+
def dark_squares_only(&block)
|
9
|
+
@qr_code.modules.each_index do |row|
|
10
|
+
@qr_code.modules.each_index do |column|
|
11
|
+
if @qr_code.dark?(row, column)
|
12
|
+
yield row, column
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/rqrcode_svg.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rqrcode_svg/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rqrcode_svg"
|
8
|
+
spec.version = RQRCodeSVG::VERSION
|
9
|
+
spec.authors = ["Steven Petryk"]
|
10
|
+
spec.email = ["me@stevenpetryk.com"]
|
11
|
+
spec.summary = %q{Combined with RQRCode, this gem allows you to generate QR codes as SVG documents.}
|
12
|
+
spec.homepage = "https://github.com/stevenpetryk/rqrcode_svg"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
|
23
|
+
spec.add_runtime_dependency "rqrcode"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rqrcode_svg
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Steven Petryk
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rqrcode
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- me@stevenpetryk.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- example.svg
|
68
|
+
- lib/rqrcode_svg.rb
|
69
|
+
- lib/rqrcode_svg/image.rb
|
70
|
+
- lib/rqrcode_svg/rqrcode_extensions.rb
|
71
|
+
- lib/rqrcode_svg/sequence.rb
|
72
|
+
- lib/rqrcode_svg/version.rb
|
73
|
+
- rqrcode_svg.gemspec
|
74
|
+
homepage: https://github.com/stevenpetryk/rqrcode_svg
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.2.2
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Combined with RQRCode, this gem allows you to generate QR codes as SVG documents.
|
98
|
+
test_files: []
|
99
|
+
has_rdoc:
|