Rakefile in gocr-ruby-0.0.1 vs Rakefile in gocr-ruby-0.0.2

- old
+ new

@@ -7,21 +7,21 @@ # Rake::ExtensionTask comes from the rake-compiler and understands how to # build and cross-compile extensions. # # See https://github.com/luislavena/rake-compiler for details -Rake::ExtensionTask.new 'gocr-ruby' do |ext| +Rake::ExtensionTask.new 'gocr' do |ext| # This causes the shared object to be placed in lib/my_malloc/my_malloc.so # # It allows lib/my_malloc.rb to load different versions if you ship a # precompiled extension that supports multiple ruby versions. ext.lib_dir = 'lib/gocr' end -s = Gem::Specification.new 'gocr-ruby', '0.0.1' do |s| +s = Gem::Specification.new 'gocr', '0.0.1' do |s| s.summary = 'simple gocr wrapper' s.authors = %w[zyablitskiy@gmail.com] # this tells RubyGems to build an extension upon install @@ -38,10 +38,10 @@ Gem::PackageTask.new s do end # This isn't a good test, but does provide a sanity check task test: %w[compile] do - ruby '-Ilib', '-rgocr', '-e', 'p GOCR::Image.recognize("image.png")' + ruby '-Ilib', '-rgocr', '-e', 'p GOCR::Engine.new(numbers_only: false).text_for("image.png")' # ruby '-Ilib', '-rgocr', '-e', 'p 3' end task default: :test