mpxj 0.2.0 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 639499600dfd56e009a63b05fe7395e6ef09d92b
4
- data.tar.gz: 3edccd9d39e684aa5c4ce35d7d73f98b07ad1297
3
+ metadata.gz: c8317c5f562d8bce302743be070836c1c2e6e8d3
4
+ data.tar.gz: 6f11371249eff0fe561f50eaf66e4db2d5576af2
5
5
  SHA512:
6
- metadata.gz: b626d39bb13600290271d3a1e72af1f7e91a32d73c1b4fa77dca9351c5620ef7272182571638b955ab69eecbc17ae3209dd7f35dce9f0d0bcdc69f22b58eaf24
7
- data.tar.gz: 3855adaca0ef5ae88b1b4642037eb985b3908e93d72c675f9a5b66f30a556487a3255037674468d8f7e8538ae514402ef64538b1fecc3d227d309298d408d4a5
6
+ metadata.gz: de9d010d7e65316d42c4ee9433f56c06da67e6720b2ac85caa6323fa29e84487854f7e5aa311304edf74e6da8d3ef416fbc4783fb5e66340d7d41badbb0dbf36
7
+ data.tar.gz: d111ce1a58bcddb774bac7ffa17e64cc51abfc315ba0f36da48c70e6199812e5b8cc4412bfe6079aededc54cf536e15bd66dd3ca0a8c47c151060534a3cce4f2
Binary file
@@ -6,7 +6,7 @@ module MPXJ
6
6
  project = nil
7
7
  json_file = Tempfile.new([File.basename(file_name, ".*"), '.json'])
8
8
  begin
9
- classpath = Dir["#{File.dirname(__FILE__)}/*.jar"].join(";")
9
+ classpath = Dir["#{File.dirname(__FILE__)}/*.jar"].join(path_separator)
10
10
  java_output = `java -cp \"#{classpath}\" net.sf.mpxj.sample.MpxjConvert #{file_name} #{json_file.path}`
11
11
  if $?.exitstatus != 0
12
12
  raise "Failed to read file: #{java_output}"
@@ -18,5 +18,17 @@ module MPXJ
18
18
  end
19
19
  project
20
20
  end
21
+
22
+ def self.path_separator
23
+ if windows?
24
+ ";"
25
+ else
26
+ ":"
27
+ end
28
+ end
29
+
30
+ def self.windows?
31
+ (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
32
+ end
21
33
  end
22
34
  end
@@ -1,3 +1,3 @@
1
1
  module MPXJ
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpxj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Iles