Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding gemspec, version and binary file

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

0 comments on commit d0dc386

Please sign in to comment.
Something went wrong with that request. Please try again.