rqrcode 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
*0.4.2* (Sep 1st, 2011)
|
2
|
+
|
3
|
+
* Proper namespace CoreExtensions and only extend when needed [https://github.com/metaskills]
|
4
|
+
* fix for running tests on 1.9
|
5
|
+
|
1
6
|
*0.4.1* (Aug 16th, 2011)
|
2
7
|
|
3
8
|
* Compute common patterns only once (5% to 10% speedup) [https://github.com/gioele]
|
@@ -1,9 +1,12 @@
|
|
1
|
-
module
|
2
|
-
module
|
3
|
-
module
|
4
|
-
|
5
|
-
|
1
|
+
module RQRCode
|
2
|
+
module CoreExtensions #:nodoc:
|
3
|
+
module Array #:nodoc:
|
4
|
+
module Behavior
|
5
|
+
def extract_options!
|
6
|
+
last.is_a?(::Hash) ? pop : {}
|
7
|
+
end unless [].respond_to?(:extract_options!)
|
6
8
|
end
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
12
|
+
|
@@ -1,9 +1,11 @@
|
|
1
|
-
module
|
2
|
-
module
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
module RQRCode
|
2
|
+
module CoreExtensions #:nodoc:
|
3
|
+
module Integer #:nodoc:
|
4
|
+
module Bitwise
|
5
|
+
def rszf(count)
|
6
|
+
# zero fill right shift
|
7
|
+
(self >> count) & ((2 ** ((self.size * 8) - count))-1)
|
8
|
+
end
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
data/lib/rqrcode/version.rb
CHANGED
data/test/test_rqrcode.rb
CHANGED
@@ -1,8 +1,18 @@
|
|
1
1
|
require "test/unit"
|
2
|
-
|
2
|
+
|
3
|
+
# fix for require_relative in < 1.9
|
4
|
+
unless Kernel.respond_to?(:require_relative)
|
5
|
+
module Kernel
|
6
|
+
def require_relative(path)
|
7
|
+
require File.join(File.dirname(caller[0]), path.to_str)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
require_relative "../lib/rqrcode"
|
3
13
|
|
4
14
|
class QRCodeTest < Test::Unit::TestCase
|
5
|
-
|
15
|
+
require_relative "data"
|
6
16
|
|
7
17
|
def test_no_data_given
|
8
18
|
assert_raise(RQRCode::QRCodeArgumentError) {
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rqrcode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 13
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 1
|
10
|
-
version: 0.4.1
|
5
|
+
version: 0.4.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Duncan Robertson
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
13
|
+
date: 2011-09-01 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: rake
|
@@ -26,9 +20,6 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
24
|
type: :development
|
34
25
|
version_requirements: *id001
|
@@ -40,11 +31,6 @@ dependencies:
|
|
40
31
|
requirements:
|
41
32
|
- - ">="
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 23
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 0
|
47
|
-
- 0
|
48
34
|
version: 1.0.0
|
49
35
|
type: :development
|
50
36
|
version_requirements: *id002
|
@@ -88,7 +74,6 @@ files:
|
|
88
74
|
- rqrcode.gemspec
|
89
75
|
- test/data.rb
|
90
76
|
- test/test_rqrcode.rb
|
91
|
-
has_rdoc: true
|
92
77
|
homepage: http://whomwah.github.com/rqrcode/
|
93
78
|
licenses: []
|
94
79
|
|
@@ -102,25 +87,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
87
|
requirements:
|
103
88
|
- - ">="
|
104
89
|
- !ruby/object:Gem::Version
|
105
|
-
hash: 3
|
106
|
-
segments:
|
107
|
-
- 0
|
108
90
|
version: "0"
|
109
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
92
|
none: false
|
111
93
|
requirements:
|
112
94
|
- - ">="
|
113
95
|
- !ruby/object:Gem::Version
|
114
|
-
hash: 23
|
115
|
-
segments:
|
116
|
-
- 1
|
117
|
-
- 3
|
118
|
-
- 6
|
119
96
|
version: 1.3.6
|
120
97
|
requirements: []
|
121
98
|
|
122
99
|
rubyforge_project:
|
123
|
-
rubygems_version: 1.
|
100
|
+
rubygems_version: 1.8.5
|
124
101
|
signing_key:
|
125
102
|
specification_version: 3
|
126
103
|
summary: A library to encode QR Codes
|