propaganda 0.3.0 → 0.4.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -15,14 +15,13 @@ module Propaganda
15
15
  stdin, stdout, stderr = Open3.popen3(command)
16
16
  @errors = stderr.read
17
17
  @output = stdout.read
18
- raise "Could not invoke: #{@errors}" unless @errors.blank?
19
18
  @output
20
19
  end
21
20
  end
22
21
 
23
22
  private
24
23
 
25
- def self.jarpath
24
+ def jarpath
26
25
  path = File.join(File.dirname(__FILE__), '..', '..', '..', 'java')
27
26
  File.expand_path(File.join(path, 'fop.jar'))
28
27
  end
@@ -4,7 +4,9 @@ module Propaganda
4
4
 
5
5
  def self.check_dependencies
6
6
  require 'propaganda/fop/shell'
7
- require 'propaganda/fop/bridge' rescue false
7
+ require 'propaganda/fop/bridge'
8
+ rescue LoadError => e
9
+ false
8
10
  end
9
11
 
10
12
  MODE = check_dependencies ? 'rjb' : 'shell'
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propaganda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Rafter