Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tika update to 1.13 #42

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ spec/reports
test/tmp
test/version_tmp
tmp
.DS_Store
.idea
Binary file renamed jar/tika-app-1.11.jar → jar/tika-app-1.23.jar
100644 → 100755
Binary file not shown.
5 changes: 3 additions & 2 deletions lib/yomu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

require 'socket'
require 'stringio'
require 'date'

class Yomu
GEMPATH = File.dirname(File.dirname(__FILE__))
JARPATH = File.join(Yomu::GEMPATH, 'jar', 'tika-app-1.11.jar')
JARPATH = File.join(Yomu::GEMPATH, 'jar', 'tika-app-1.23.jar')
DEFAULT_SERVER_PORT = 9293 # an arbitrary, but perfectly cromulent, port

@@server_port = nil
Expand Down Expand Up @@ -165,7 +166,7 @@ def creation_date
return @creation_date if defined? @creation_date

if metadata['Creation-Date']
@creation_date = Time.parse(metadata['Creation-Date'])
@creation_date = DateTime.parse(metadata['Creation-Date'])
else
nil
end
Expand Down
2 changes: 1 addition & 1 deletion lib/yomu/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Yomu
VERSION = '0.2.4'
VERSION = '0.2.7'
end
4 changes: 2 additions & 2 deletions spec/yomu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@

describe '.creation_date' do
let(:yomu) { Yomu.new 'spec/samples/sample.pages' }
it 'should retur Time' do
expect( yomu.creation_date ).to be_a Time
it 'should return Time' do
expect( yomu.creation_date ).to be_a DateTime
end
end

Expand Down
6 changes: 3 additions & 3 deletions yomu.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_runtime_dependency 'mime-types', '~> 1.23'
spec.add_runtime_dependency 'mime-types', '~> 3.0'
spec.add_runtime_dependency 'json', '~> 1.8'

spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', '~> 2.14'
spec.add_development_dependency 'rspec', '~> 3.8'
end