gocr-ruby 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +21 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +29 -0
  7. data/Rakefile +49 -0
  8. data/ext/gocr/Makefile +141 -0
  9. data/ext/gocr/Makefile.in +140 -0
  10. data/ext/gocr/amiga.h +31 -0
  11. data/ext/gocr/barcode.c +2108 -0
  12. data/ext/gocr/barcode.h +11 -0
  13. data/ext/gocr/box.c +496 -0
  14. data/ext/gocr/config.h +37 -0
  15. data/ext/gocr/config.h.in +36 -0
  16. data/ext/gocr/database.c +468 -0
  17. data/ext/gocr/detect.c +1003 -0
  18. data/ext/gocr/extconf.rb +6 -0
  19. data/ext/gocr/gocr.c +436 -0
  20. data/ext/gocr/gocr.h +290 -0
  21. data/ext/gocr/jconv.c +168 -0
  22. data/ext/gocr/job.c +92 -0
  23. data/ext/gocr/lines.c +364 -0
  24. data/ext/gocr/list.c +334 -0
  25. data/ext/gocr/list.h +91 -0
  26. data/ext/gocr/ocr0.c +7312 -0
  27. data/ext/gocr/ocr0.h +63 -0
  28. data/ext/gocr/ocr0n.c +1527 -0
  29. data/ext/gocr/ocr1.c +85 -0
  30. data/ext/gocr/ocr1.h +3 -0
  31. data/ext/gocr/otsu.c +310 -0
  32. data/ext/gocr/otsu.h +23 -0
  33. data/ext/gocr/output.c +291 -0
  34. data/ext/gocr/output.h +37 -0
  35. data/ext/gocr/pcx.c +153 -0
  36. data/ext/gocr/pcx.h +9 -0
  37. data/ext/gocr/pgm2asc.c +3259 -0
  38. data/ext/gocr/pgm2asc.h +105 -0
  39. data/ext/gocr/pixel.c +538 -0
  40. data/ext/gocr/pnm.c +538 -0
  41. data/ext/gocr/pnm.h +35 -0
  42. data/ext/gocr/progress.c +87 -0
  43. data/ext/gocr/progress.h +42 -0
  44. data/ext/gocr/remove.c +715 -0
  45. data/ext/gocr/tga.c +87 -0
  46. data/ext/gocr/tga.h +6 -0
  47. data/ext/gocr/unicode.c +1318 -0
  48. data/ext/gocr/unicode.h +62 -0
  49. data/ext/gocr/unicode_defs.h +1245 -0
  50. data/ext/gocr/version.h +2 -0
  51. data/gocr-ruby.gemspec +28 -0
  52. data/image.png +0 -0
  53. data/lib/gocr.rb +6 -0
  54. data/lib/gocr/image.rb +8 -0
  55. data/lib/gocr/version.rb +3 -0
  56. metadata +156 -0
@@ -0,0 +1,2 @@
1
+ #define version_string "0.50"
2
+ #define release_string "20130305"
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gocr/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gocr-ruby"
8
+ spec.version = GOCR::VERSION
9
+ spec.authors = ["Vladimir Zyablitskiy"]
10
+ spec.email = ["zyablitskiy@gmail.com"]
11
+ spec.description = %q{GOCR Ruby binding}
12
+ spec.summary = %q{Unofficial port for Ruby}
13
+ spec.homepage = "https://github.com/rainlabs/gocr-ruby"
14
+ spec.license = "MIT"
15
+ spec.extensions = %w[ext/gocr/extconf.rb]
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "rake-compiler"
25
+ spec.add_development_dependency "rspec"
26
+ end
27
+
28
+ #Gem::PackageTask.new s do end
Binary file
@@ -0,0 +1,6 @@
1
+ require "gocr/version"
2
+ require "gocr/image"
3
+
4
+ module GOCR
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,8 @@
1
+ require "gocr/gocr"
2
+
3
+ module GOCR
4
+ class Image
5
+
6
+ end
7
+ end
8
+
@@ -0,0 +1,3 @@
1
+ module GOCR
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gocr-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vladimir Zyablitskiy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake-compiler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: GOCR Ruby binding
70
+ email:
71
+ - zyablitskiy@gmail.com
72
+ executables: []
73
+ extensions:
74
+ - ext/gocr/extconf.rb
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - Gemfile
79
+ - LICENSE
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - ext/gocr/Makefile
84
+ - ext/gocr/Makefile.in
85
+ - ext/gocr/amiga.h
86
+ - ext/gocr/barcode.c
87
+ - ext/gocr/barcode.h
88
+ - ext/gocr/box.c
89
+ - ext/gocr/config.h
90
+ - ext/gocr/config.h.in
91
+ - ext/gocr/database.c
92
+ - ext/gocr/detect.c
93
+ - ext/gocr/extconf.rb
94
+ - ext/gocr/gocr.c
95
+ - ext/gocr/gocr.h
96
+ - ext/gocr/jconv.c
97
+ - ext/gocr/job.c
98
+ - ext/gocr/lines.c
99
+ - ext/gocr/list.c
100
+ - ext/gocr/list.h
101
+ - ext/gocr/ocr0.c
102
+ - ext/gocr/ocr0.h
103
+ - ext/gocr/ocr0n.c
104
+ - ext/gocr/ocr1.c
105
+ - ext/gocr/ocr1.h
106
+ - ext/gocr/otsu.c
107
+ - ext/gocr/otsu.h
108
+ - ext/gocr/output.c
109
+ - ext/gocr/output.h
110
+ - ext/gocr/pcx.c
111
+ - ext/gocr/pcx.h
112
+ - ext/gocr/pgm2asc.c
113
+ - ext/gocr/pgm2asc.h
114
+ - ext/gocr/pixel.c
115
+ - ext/gocr/pnm.c
116
+ - ext/gocr/pnm.h
117
+ - ext/gocr/progress.c
118
+ - ext/gocr/progress.h
119
+ - ext/gocr/remove.c
120
+ - ext/gocr/tga.c
121
+ - ext/gocr/tga.h
122
+ - ext/gocr/unicode.c
123
+ - ext/gocr/unicode.h
124
+ - ext/gocr/unicode_defs.h
125
+ - ext/gocr/version.h
126
+ - gocr-ruby.gemspec
127
+ - image.png
128
+ - lib/gocr.rb
129
+ - lib/gocr/image.rb
130
+ - lib/gocr/version.rb
131
+ homepage: https://github.com/rainlabs/gocr-ruby
132
+ licenses:
133
+ - MIT
134
+ metadata: {}
135
+ post_install_message:
136
+ rdoc_options: []
137
+ require_paths:
138
+ - lib
139
+ required_ruby_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ requirements: []
150
+ rubyforge_project:
151
+ rubygems_version: 2.2.1
152
+ signing_key:
153
+ specification_version: 4
154
+ summary: Unofficial port for Ruby
155
+ test_files: []
156
+ has_rdoc: