rqrencoder 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.
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
4
+ *.swp
5
+ lib/rqrencoder/CQREncoder.bundle
6
+ tmp/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rqrencoder.gemspec
4
+ gemspec
data/README.markdown ADDED
@@ -0,0 +1,28 @@
1
+ # RQREncoder
2
+
3
+ ## A Ruby gem for easy QR Code generation, using C for speed
4
+
5
+ ## Install
6
+
7
+ Install with Rubygems:
8
+
9
+ gem install rqrencoder
10
+
11
+ ## Usage
12
+
13
+ Create an encoder, and encode away! The QRCode result contains a grid of bits indicating if a particular square is "dark" (true)
14
+
15
+ >> require 'rqrencoder'
16
+ => true
17
+ >> encoder = RQREncoder::QREncoder.new
18
+ => #<RQREncoder::QREncoder>
19
+ >> qrcode = encoder.encode("HELLO")
20
+ => #<RQREncoder::QRCode:0x0000010203b7b0>
21
+ >> qrcode.modules[0][0]
22
+ => true
23
+ >> qrcode.modules[1][5]
24
+ => false
25
+
26
+ ## Author
27
+
28
+ Ruby wrapper by Matt Robinson, majority of C++ Encoding engine is from rqr project
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rake/extensiontask'
5
+ Rake::ExtensionTask.new("RQREncoder") do |extension|
6
+ extension.lib_dir = "lib/rqrencoder"
7
+ end