mpxj 5.10.0 → 5.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7ad4417de8d32f244ef319b826bdb10a8f5c0fc
4
- data.tar.gz: 0c24ff759858cc714476c43a6b800fe705ba2eae
3
+ metadata.gz: 177f68c1cead6da0eeea84cbfdd622d4581d79ac
4
+ data.tar.gz: 9f7e65ee1918512476d438d162c873626f5eafbb
5
5
  SHA512:
6
- metadata.gz: 34e1669161fc2fa203ccb88a43923735dcf005f6203457dece29fd19f735b4b168a51bfe9bb58ecfc50a60782e8738ad445c8bbc1617c1d4de3c4b2a41903a32
7
- data.tar.gz: 88616212fbf7b1761850a9b7d1b4258ff6bf8551f8362fa57ab4c84b7756837e33e59c323dcf6404ea8525ce471babc47203fab69f64e50d2b46bdd5bb14a7e1
6
+ metadata.gz: ff5fe875ce0cfbb70d0054917b8b94f40e7ec8b9cb4852cad8526bc25f4a80559584d45f865ee6a44b5ea3a59ca50c34f9f8269ee1f9d45ba53314cfa60b7ffb
7
+ data.tar.gz: 32ce3e88929181f8b9637ff223792e697f31cf238ec419989071d4b29143e7761a0db32de63367c9fe983ddbff0b1bad9032eeb011fac7bfe0e24e642b99e10e
data/lib/mpxj/mpxj.jar CHANGED
Binary file
@@ -0,0 +1,5 @@
1
+ module MPXJ
2
+ # Custom exception class for MPXJ
3
+ class PasswordProtected < ::RuntimeError
4
+ end
5
+ end
data/lib/mpxj/reader.rb CHANGED
@@ -70,6 +70,8 @@ module MPXJ
70
70
  message = java_output.split('Conversion Error: ')[1]
71
71
  if message.include?('Unsupported file type')
72
72
  raise MPXJ::ArgumentError, message
73
+ elsif message.include?('password protected')
74
+ raise MPXJ::PasswordProtected, message
73
75
  else
74
76
  raise MPXJ::RuntimeError, message
75
77
  end
data/lib/mpxj/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # MPXJ gem module
2
2
  module MPXJ
3
3
  # MPXJ gem version number
4
- VERSION = "5.10.0"
4
+ VERSION = "5.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpxj
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.0
4
+ version: 5.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Iles
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,6 +121,7 @@ files:
121
121
  - lib/mpxj/commons-collections4-4.1.jar
122
122
  - lib/mpxj/container.rb
123
123
  - lib/mpxj/mpxj.jar
124
+ - lib/mpxj/password_protected.rb
124
125
  - lib/mpxj/poi-3.16.jar
125
126
  - lib/mpxj/project.rb
126
127
  - lib/mpxj/properties.rb