combine_pdf 0.2.10 → 0.2.11

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: 49b95325420fb319caf809b8561b5cc0c36f2ec0
4
- data.tar.gz: 041b7ce09c03155a2d52c27d7896392a7bb8021f
3
+ metadata.gz: 4ae077f6437bdf78fe092fef2b738da12e6fb9bc
4
+ data.tar.gz: eca7b7e5c9c4f0f5b5c77d6d6904aed94e0c348a
5
5
  SHA512:
6
- metadata.gz: 4ed41af538487a106fa106375e46d0cd2dd7ee5332d5925213d5ef3d0ab541d5e7ab993fd35c5aada47fb27a7443c9ea6d33bf296e3f6b3197ef80bc1305384c
7
- data.tar.gz: 56b5232054327ef934a39cf727a14fb55ae277d1bfaa5e5c4ca3131944187129ee6e8a8cf986305575070ccfd83e8614268ecf90ffd331829eb7b7cbd95270a6
6
+ metadata.gz: 2b7bec4b0cdeb0a3764d0ee0d7a8d8576c8a01c29fb2dfcbfb8d06d64bfe633dfe0aa9da9801e630a59754d621a3b00383df9be3d8a4ec9247c3c47b55a4623f
7
+ data.tar.gz: 82d77ada70dcf80ca0a4354dd6c9254f56c4ebaa637d0e875a1cb2621829a62c6cdcbe11a8afb421e40da0f6b0b0cc26938c6e7a8294cd8832e2ee2658bc285c
@@ -2,6 +2,14 @@
2
2
 
3
3
  ***
4
4
 
5
+ Change log v.0.2.11
6
+
7
+ **Fix**: fix for issue #35 , which was caused by the broken fix for issue #34. Credit to Davek Rupinski for pointing out the issue.
8
+
9
+ **Fix**: fixed an issue with data and (file) sending, introduced when extending the `send_data` method to allow for big file uploads.
10
+
11
+ ***
12
+
5
13
  Change log v.0.2.10
6
14
 
7
15
  **Fix**: fixed page stamping when the page's content was a referenced object instead or a direct array of content references. Credit to vitstradal for discovering the issue.
@@ -613,7 +613,7 @@ module CombinePDF
613
613
  end
614
614
  #initializes the content stream in case it was not initialized before
615
615
  def init_contents
616
- self[:Contents] = self[:Contents][:referenced_object][:indirect_without_dictionary] if self[:Contents][:referenced_object] && self[:Contents][:referenced_object][:indirect_without_dictionary]
616
+ self[:Contents] = self[:Contents][:referenced_object][:indirect_without_dictionary] if self[:Contents].is_a?(Hash) && self[:Contents][:referenced_object] && self[:Contents][:referenced_object].is_a?(Hash) && self[:Contents][:referenced_object][:indirect_without_dictionary]
617
617
  self[:Contents].delete({ is_reference_only: true , referenced_object: {indirect_reference_id: 0, raw_stream_content: ''} })
618
618
  # wrap content streams
619
619
  insert_content 'q', 0
@@ -1,4 +1,4 @@
1
1
  module CombinePDF
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.11"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combine_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4