Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding gemspec, version and binary file

  • Loading branch information...
commit d0dc386e874e0825125699619dac2770eb84976f 1 parent 17d2d3b
Aaron Patterson authored
44 Manifest.txt
View
@@ -3,5 +3,45 @@ Manifest.txt
README.txt
Rakefile
bin/qrdecode
-lib/qrdecode.rb
-test/test_qrdecode.rb
+ext/qrtools/Makefile.in
+ext/qrtools/bitstream.cpp
+ext/qrtools/bitstream.h
+ext/qrtools/codedata.cpp
+ext/qrtools/codedata.h
+ext/qrtools/container.cpp
+ext/qrtools/container.h
+ext/qrtools/decodeqr.h
+ext/qrtools/ecidecoder.cpp
+ext/qrtools/ecidecoder.h
+ext/qrtools/extconf.rb
+ext/qrtools/formatinfo.cpp
+ext/qrtools/formatinfo.h
+ext/qrtools/galois.cpp
+ext/qrtools/galois.h
+ext/qrtools/imagereader.cpp
+ext/qrtools/imagereader.h
+ext/qrtools/libdecodeqr.cpp
+ext/qrtools/libdecodeqr.dep
+ext/qrtools/libdecodeqr.dsp
+ext/qrtools/libdecodeqr.dsw
+ext/qrtools/libdecodeqr.mak
+ext/qrtools/qrerror.h
+ext/qrtools/qrtools.c
+ext/qrtools/qrtools.h
+ext/qrtools/qrtools_decoder.c
+ext/qrtools/qrtools_decoder.h
+ext/qrtools/qrtools_header.c
+ext/qrtools/qrtools_header.h
+ext/qrtools/qrtools_image.c
+ext/qrtools/qrtools_image.h
+ext/qrtools/qrtypes.h
+ext/qrtools/version.h
+lib/qrtools.rb
+lib/qrtools/version.rb
+qrtools.gemspec
+test/assets/01-1.jpg
+test/helper.rb
+test/test_decoder.rb
+test/test_header.rb
+test/test_image.rb
+test/test_qrdecode.rb
15 Rakefile
View
@@ -8,7 +8,9 @@ windows = RUBY_PLATFORM =~ /mswin/i ? true : false
EXT = "ext/qrtools/qrtools.#{kind}"
-Hoe.new('qrtools', '1.0.0') do |p|
+require './lib/qrtools/version'
+
+HOE = Hoe.new('qrtools', QRTools::VERSION) do |p|
p.developer('Aaron Patterson', 'aaronp@rubyforge.org')
p.clean_globs = [
'ext/qrtools/Makefile',
@@ -33,4 +35,15 @@ task :build => [EXT]
Rake::Task['test'].prerequisites << :build
+namespace :gem do
+ namespace :dev do
+ task :spec do
+ File.open("#{HOE.name}.gemspec", 'w') do |f|
+ HOE.spec.version = "#{HOE.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
+ f.write(HOE.spec.to_ruby)
+ end
+ end
+ end
+end
+
# vim: syntax=Ruby
14 bin/qrdecode
View
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby -w
+
+require 'rubygems'
+require 'qrtools'
+
+img = QRTools::Image.load(ARGV[0])
+25.step(3, -2) { |i|
+ 10.step(0, -1) { |j|
+ body = QRTools::Decoder.decode(img, i, j).body
+ next unless body
+ puts body
+ exit
+ }
+}
3  lib/qrtools/version.rb
View
@@ -0,0 +1,3 @@
+module QRTools
+ VERSION = '1.0.0'
+end
38 qrtools.gemspec
View
@@ -0,0 +1,38 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{qrtools}
+ s.version = "1.0.0.20090212084338"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Aaron Patterson"]
+ s.date = %q{2009-02-12}
+ s.default_executable = %q{qrdecode}
+ s.description = %q{FIX (describe your package)}
+ s.email = ["aaronp@rubyforge.org"]
+ s.executables = ["qrdecode"]
+ s.extensions = ["ext/qrtools/extconf.rb"]
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/qrdecode", "ext/qrtools/Makefile.in", "ext/qrtools/bitstream.cpp", "ext/qrtools/bitstream.h", "ext/qrtools/codedata.cpp", "ext/qrtools/codedata.h", "ext/qrtools/container.cpp", "ext/qrtools/container.h", "ext/qrtools/decodeqr.h", "ext/qrtools/ecidecoder.cpp", "ext/qrtools/ecidecoder.h", "ext/qrtools/extconf.rb", "ext/qrtools/formatinfo.cpp", "ext/qrtools/formatinfo.h", "ext/qrtools/galois.cpp", "ext/qrtools/galois.h", "ext/qrtools/imagereader.cpp", "ext/qrtools/imagereader.h", "ext/qrtools/libdecodeqr.cpp", "ext/qrtools/libdecodeqr.dep", "ext/qrtools/libdecodeqr.dsp", "ext/qrtools/libdecodeqr.dsw", "ext/qrtools/libdecodeqr.mak", "ext/qrtools/qrerror.h", "ext/qrtools/qrtools.c", "ext/qrtools/qrtools.h", "ext/qrtools/qrtools_decoder.c", "ext/qrtools/qrtools_decoder.h", "ext/qrtools/qrtools_header.c", "ext/qrtools/qrtools_header.h", "ext/qrtools/qrtools_image.c", "ext/qrtools/qrtools_image.h", "ext/qrtools/qrtypes.h", "ext/qrtools/version.h", "lib/qrtools.rb", "test/assets/01-1.jpg", "test/helper.rb", "test/test_decoder.rb", "test/test_header.rb", "test/test_image.rb", "test/test_qrdecode.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{FIX (url)}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib", "ext"]
+ s.rubyforge_project = %q{qrtools}
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{FIX (describe your package)}
+ s.test_files = ["test/test_decoder.rb", "test/test_header.rb", "test/test_image.rb", "test/test_qrdecode.rb"]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<hoe>, [">= 1.8.2"])
+ else
+ s.add_dependency(%q<hoe>, [">= 1.8.2"])
+ end
+ else
+ s.add_dependency(%q<hoe>, [">= 1.8.2"])
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.