Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tika version 1.2 update

  • Loading branch information...
commit e4fe957e764214937dea87707176e217c1a07534 1 parent ea5d4ba
@andrusha andrusha authored
View
3  .gitignore
@@ -2,3 +2,6 @@
.bundle
Gemfile.lock
pkg/*
+.sublime-project
+.sublime-project.sublime-workspace
+.rbenv-version
View
BIN  ext/tika-app-0.10.jar → ext/tika-app-1.2.jar
Binary file not shown
View
2  lib/ruby_tika_app.rb
@@ -21,7 +21,7 @@ def initialize(document)
java_cmd = 'java'
java_args = '-server -Djava.awt.headless=true'
- tika_path = "#{File.join(File.dirname(__FILE__))}/../ext/tika-app-0.10.jar"
+ tika_path = "#{File.join(File.dirname(__FILE__))}/../ext/tika-app-1.2.jar"
@tika_cmd = "#{java_cmd} #{java_args} -jar #{tika_path}"
end
View
10 spec/ruby_tika_app_spec.rb
@@ -16,9 +16,9 @@
rta = RubyTikaApp.new(@test_file)
xml = rta.to_xml
- xml_size = xml.size / 2
+ xml_size = xml.size / 2 + 5
- xml[xml_size..(xml_size + 100)].should == "HRW considers all the duplicated nodes as valid nodes.\nThese duplicated nodes make the node distribut"
+ xml[xml_size..(xml_size + 95)].should == "MHRW performs better in well connected graphs than in\nloosely connected graphs, as it was origin"
end
end
@@ -30,7 +30,7 @@
it "middle" do
rta = RubyTikaApp.new(@test_file)
- rta.to_html[1000 ... 1100].should == "ersity of Goettingen, Germany\n3 Department of Computer Science, U.C. Santa Barbara, USA\n4 Deutsche T"
+ rta.to_html[1000 ... 1100].should == "rceName\" content=\"graph_sampling_simplex11.pdf\"/>\n<meta name=\"Last-Save-Date\" content=\"2011-03-29T13"
end
end
@@ -54,7 +54,7 @@
it "middle" do
rta = RubyTikaApp.new(@test_file)
- rta.to_text[100 ... 150].should == "n Zhang3, Tianyin Xu2\nLong Jin1, Pan Hui4, Beixing"
+ rta.to_text[100 ... 150].should == "n Zhang3, Tianyin Xu2\n\nLong Jin1, Pan Hui4, Beixin"
end
end
@@ -66,7 +66,7 @@
it "middle" do
rta = RubyTikaApp.new(@test_file)
- rta.to_text_main[100 ... 150].should == "n Zhang3, Tianyin Xu2 Long Jin1, Pan Hui4, Beixing"
+ rta.to_text_main[100 ... 150].should == "n Zhang3, Tianyin Xu2\nLong Jin1, Pan Hui4, Beixing"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.