jhove-service 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -0
- data/lib/jhove_service.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1da6b65bad00175382835e4bd4605bf87931512
|
4
|
+
data.tar.gz: 0ce4a3a47a06030d71e781f24767886671dafbd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaacd06e82717a2f711d2e49e167513786e433e4e0e701a2149222e4cedb165f6af96539f33306dc0d4b4ca32701db94eb3fa05e1c1cf066037a5b169c79f7ba
|
7
|
+
data.tar.gz: d0ec17f88090381219a53083d24acf35c41d8086581d59d44bdd172fa95e79bb7912cacedee768e670cdc552685e093d1677a1857f307a63ab8db77c2aa68cc3
|
data/README.rdoc
CHANGED
@@ -25,6 +25,7 @@ Run: 'rake release' to tag, build, and publish the gem
|
|
25
25
|
- <b>1.0.3</b> Upgraded bin/jhoveApp.jar to copy from Jhove 1.9 release
|
26
26
|
- <b>1.1.0</b> Upgraded bin/*.jar apps to 1.14.6
|
27
27
|
- <b>1.1.1</b> Ensure only relative paths are shown in xml output
|
28
|
+
- <b>1.1.2</b> Fix bug with filenames that contain single or double quotes
|
28
29
|
|
29
30
|
== Copyright
|
30
31
|
|
data/lib/jhove_service.rb
CHANGED
@@ -3,6 +3,7 @@ require 'pathname'
|
|
3
3
|
require 'jhove_technical_metadata'
|
4
4
|
require 'stringio'
|
5
5
|
require 'uri'
|
6
|
+
require 'shellwords'
|
6
7
|
|
7
8
|
class JhoveService
|
8
9
|
|
@@ -74,7 +75,7 @@ require 'uri'
|
|
74
75
|
# @param output_file [Pathname,String] the output file to write the XML to, defaults to filename specified in jhove_output
|
75
76
|
# @return [String] The jhove-toolkit command to be exectuted in a system call
|
76
77
|
def get_jhove_command(input_path,output_file = jhove_output)
|
77
|
-
filename =
|
78
|
+
filename = Shellwords.escape(input_path) # escape any special characters in the path
|
78
79
|
args = "-h xml -o \"#{output_file}\" \\\"#{filename}"
|
79
80
|
jhove_script = @bin_pathname.join('jhoveToolkit.sh')
|
80
81
|
jhove_cmd = "#{jhove_script} #{args}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jhove-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Anderson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: 1.3.6
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.6.
|
136
|
+
rubygems_version: 2.6.12
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Generates JHOVE output and/or technicalMetadata
|