qr4r 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.rvmrc +3 -1
  2. data/Rakefile +15 -0
  3. data/lib/qr4r/version.rb +1 -1
  4. data/lib/qr4r.rb +2 -1
  5. metadata +22 -5
data/.rvmrc CHANGED
@@ -1 +1,3 @@
1
- rvm use --create 1.9.2-p290@qr4r
1
+ #rvm use --create 1.9.2-p290@qr4r
2
+ rvm use --create 1.8.7
3
+
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+ task :default => :test
3
+
4
+ task 'default' => :test
5
+
6
+ desc "Default: run tests"
7
+ task :test do
8
+ require 'rake/runtest'
9
+ files = Dir.glob(File.join(File.dirname(__FILE__), 'test/*_test.rb'))
10
+ files.each do |f|
11
+ Rake.run_tests f
12
+ end
13
+ end
14
+
15
+
data/lib/qr4r/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qr4r
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/lib/qr4r.rb CHANGED
@@ -14,7 +14,8 @@ module Qr4r
14
14
  end
15
15
  end
16
16
  MojoMagick::convert do |c|
17
- c.blob (data.pack('C'*data.length)), :format => :rgb, :depth => 8, :size => "%dx%d" % [qr.modules.size, qr.modules.size]
17
+ d = data.pack('C'*data.size.to_i)
18
+ c.blob(data.pack(d, :format => :rgb, :depth => 8, :size => ("%dx%d" % [qr.modules.size, qr.modules.size])))
18
19
  c.file outfile
19
20
  end
20
21
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qr4r
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.2
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 3
10
+ version: 0.1.3
6
11
  platform: ruby
7
12
  authors:
8
13
  - Jon Rogers
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2012-03-18 00:00:00 Z
18
+ date: 2012-03-17 00:00:00 -07:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: rake
@@ -20,6 +26,9 @@ dependencies:
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
33
  type: :development
25
34
  version_requirements: *id001
@@ -37,6 +46,7 @@ files:
37
46
  - Gemfile
38
47
  - Gemfile.lock
39
48
  - README.md
49
+ - Rakefile
40
50
  - init.rb
41
51
  - lib/qr4r.rb
42
52
  - lib/qr4r.rb~
@@ -44,6 +54,7 @@ files:
44
54
  - lib/qr4r/version.rb~
45
55
  - qr4r.gemspec
46
56
  - test/qr4r_test.rb
57
+ has_rdoc: true
47
58
  homepage: http://github.com/2rye/qr4r
48
59
  licenses: []
49
60
 
@@ -57,19 +68,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
68
  requirements:
58
69
  - - ">="
59
70
  - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
60
74
  version: "0"
61
75
  required_rubygems_version: !ruby/object:Gem::Requirement
62
76
  none: false
63
77
  requirements:
64
78
  - - ">="
65
79
  - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
66
83
  version: "0"
67
84
  requirements: []
68
85
 
69
86
  rubyforge_project: qr4r
70
- rubygems_version: 1.8.15
87
+ rubygems_version: 1.3.7
71
88
  signing_key:
72
89
  specification_version: 3
73
- summary: qr4r-0.1.2
90
+ summary: qr4r-0.1.3
74
91
  test_files:
75
92
  - test/qr4r_test.rb