qrencoder 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +10 -4
- data/ext/qrencoder_ext/qrencoder_ext.c +3 -0
- data/lib/qrencoder/version.rb +1 -1
- data/spec/qrencoder/qrcode_spec.rb +0 -7
- metadata +57 -64
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -48,13 +48,13 @@ pass to <tt>QREncoder#encode</tt>.
|
|
48
48
|
|
49
49
|
== REQUIREMENTS:
|
50
50
|
|
51
|
-
This gem requires you to build the C library lib <tt>
|
51
|
+
This gem requires you to build the C library lib <tt>111qrcode.a</tt> available
|
52
52
|
from http://megaui.net/fukuchi/works/qrencode/index.en.html.
|
53
53
|
|
54
|
-
|
54
|
+
On *nix systems, installation is usually as simple as:
|
55
55
|
|
56
|
-
curl http://fukuchi.org/works/qrencode/qrencode-3.
|
57
|
-
cd qrencode-3.
|
56
|
+
curl http://fukuchi.org/works/qrencode/qrencode-3.2.0.tar.gz | tar xz
|
57
|
+
cd qrencode-3.2.0
|
58
58
|
./configure
|
59
59
|
make
|
60
60
|
sudo make install
|
@@ -70,6 +70,12 @@ avoided if you run the following build sequence:
|
|
70
70
|
make
|
71
71
|
sudo make install
|
72
72
|
|
73
|
+
== HOMEBREW:
|
74
|
+
|
75
|
+
If you're on OS X, you can use homebrew to install libqrencode:
|
76
|
+
|
77
|
+
brew install qrencode
|
78
|
+
|
73
79
|
== INSTALLATION:
|
74
80
|
|
75
81
|
* First build the <tt>libqrencode</tt> library following the instructions above.
|
@@ -249,6 +249,9 @@ static VALUE qr_initialize(VALUE self, VALUE _string, VALUE _version, VALUE _ecl
|
|
249
249
|
if (errno != error && errno == 22) {
|
250
250
|
rb_raise(rb_eArgError, "input was too long");
|
251
251
|
}
|
252
|
+
if (NULL == code) {
|
253
|
+
rb_raise(rb_eArgError, "could not encode input");
|
254
|
+
}
|
252
255
|
|
253
256
|
if (DATA_PTR(self)) {
|
254
257
|
QRcode_free(DATA_PTR(self));
|
data/lib/qrencoder/version.rb
CHANGED
@@ -11,13 +11,6 @@ describe QREncoder::QRCode do
|
|
11
11
|
subject.should == QREncoder::Fixtures::String1
|
12
12
|
end
|
13
13
|
end
|
14
|
-
context "with version 4 and 'String'" do
|
15
|
-
subject { QREncoder.encode("String", :version => 4).data }
|
16
|
-
it { should be_kind_of(Array) }
|
17
|
-
it "generates the correct data array" do
|
18
|
-
subject.should == QREncoder::Fixtures::String4
|
19
|
-
end
|
20
|
-
end
|
21
14
|
end
|
22
15
|
|
23
16
|
describe "#dup" do
|
metadata
CHANGED
@@ -1,89 +1,86 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: qrencoder
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.4.1
|
4
5
|
prerelease:
|
5
|
-
version: 1.4.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Jacob Harris
|
9
9
|
- Joshua Davey
|
10
10
|
- Wesley Moore
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
dependencies:
|
18
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2012-02-04 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
19
17
|
name: rspec
|
20
|
-
|
21
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: &70270916377020 !ruby/object:Gem::Requirement
|
22
19
|
none: false
|
23
|
-
requirements:
|
20
|
+
requirements:
|
24
21
|
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version:
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '2.4'
|
27
24
|
type: :development
|
28
|
-
version_requirements: *id001
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rake-compiler
|
31
25
|
prerelease: false
|
32
|
-
|
26
|
+
version_requirements: *70270916377020
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake-compiler
|
29
|
+
requirement: &70270916376020 !ruby/object:Gem::Requirement
|
33
30
|
none: false
|
34
|
-
requirements:
|
31
|
+
requirements:
|
35
32
|
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
33
|
+
- !ruby/object:Gem::Version
|
37
34
|
version: 0.7.5
|
38
35
|
type: :development
|
39
|
-
version_requirements: *id002
|
40
|
-
- !ruby/object:Gem::Dependency
|
41
|
-
name: sdoc
|
42
36
|
prerelease: false
|
43
|
-
|
37
|
+
version_requirements: *70270916376020
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: sdoc
|
40
|
+
requirement: &70270916375340 !ruby/object:Gem::Requirement
|
44
41
|
none: false
|
45
|
-
requirements:
|
42
|
+
requirements:
|
46
43
|
- - ~>
|
47
|
-
- !ruby/object:Gem::Version
|
44
|
+
- !ruby/object:Gem::Version
|
48
45
|
version: 0.2.20
|
49
46
|
type: :development
|
50
|
-
version_requirements: *id003
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: zxing
|
53
47
|
prerelease: false
|
54
|
-
|
48
|
+
version_requirements: *70270916375340
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: zxing
|
51
|
+
requirement: &70270916374280 !ruby/object:Gem::Requirement
|
55
52
|
none: false
|
56
|
-
requirements:
|
53
|
+
requirements:
|
57
54
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
55
|
+
- !ruby/object:Gem::Version
|
59
56
|
version: 0.2.1
|
60
57
|
type: :development
|
61
|
-
version_requirements: *id004
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: chunky_png
|
64
58
|
prerelease: false
|
65
|
-
|
59
|
+
version_requirements: *70270916374280
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: chunky_png
|
62
|
+
requirement: &70270916373520 !ruby/object:Gem::Requirement
|
66
63
|
none: false
|
67
|
-
requirements:
|
64
|
+
requirements:
|
68
65
|
- - ~>
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version:
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.1'
|
71
68
|
type: :runtime
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *70270916373520
|
71
|
+
description: ! "This Gem is a wrapper around an useful open-source library for creating
|
72
|
+
QR\n Codes, a two-dimensional bar code format popular in Japan created by the Denso-Wave
|
73
|
+
Corporation in 1994."
|
74
|
+
email:
|
77
75
|
- harrisj@schizopolis.net
|
78
76
|
- josh@joshuadavey.com
|
79
77
|
executables: []
|
80
|
-
|
81
|
-
extensions:
|
78
|
+
extensions:
|
82
79
|
- ext/qrencoder_ext/extconf.rb
|
83
|
-
extra_rdoc_files:
|
80
|
+
extra_rdoc_files:
|
84
81
|
- README.rdoc
|
85
82
|
- ext/qrencoder_ext/qrencoder_ext.c
|
86
|
-
files:
|
83
|
+
files:
|
87
84
|
- lib/qrencoder/png.rb
|
88
85
|
- lib/qrencoder/qrcode.rb
|
89
86
|
- lib/qrencoder/version.rb
|
@@ -97,35 +94,31 @@ files:
|
|
97
94
|
- spec/qrencoder/qrcode_spec.rb
|
98
95
|
- spec/qrencoder_spec.rb
|
99
96
|
- spec/spec_helper.rb
|
100
|
-
has_rdoc: true
|
101
97
|
homepage: http://nycrb.rubyforge.org/qrencoder
|
102
98
|
licenses: []
|
103
|
-
|
104
99
|
post_install_message:
|
105
100
|
rdoc_options: []
|
106
|
-
|
107
|
-
require_paths:
|
101
|
+
require_paths:
|
108
102
|
- lib
|
109
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
104
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version:
|
115
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
110
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
111
|
+
requirements:
|
112
|
+
- - ! '>='
|
113
|
+
- !ruby/object:Gem::Version
|
120
114
|
version: 1.3.6
|
121
115
|
requirements: []
|
122
|
-
|
123
116
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.
|
117
|
+
rubygems_version: 1.8.15
|
125
118
|
signing_key:
|
126
119
|
specification_version: 3
|
127
120
|
summary: Wrapper around the C qrencode library for creating QR Codes
|
128
|
-
test_files:
|
121
|
+
test_files:
|
129
122
|
- spec/integration_spec.rb
|
130
123
|
- spec/qrencoder/png_spec.rb
|
131
124
|
- spec/qrencoder/qrcode_spec.rb
|