itext-jruby 0.0.4 → 0.0.5

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.0.4
1
+ 0.0.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "itext-jruby"
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ernest Bursa"]
@@ -55,6 +55,8 @@ module Itext::Attachments
55
55
  elsif attachment.is_a?(String)
56
56
  attachment_path = attachment
57
57
  attachment_name = Pathname.new(attachment_path).basename
58
+ else
59
+ raise ArgumentError.new("Specify hash with :path and :file_name or string with path")
58
60
  end
59
61
 
60
62
  attachment_spec = Java::ComLowagieTextPdf::PdfFileSpecification.fileEmbedded @writer,
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: itext-jruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ernest Bursa