adobe_doc_api 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 4e5a77582f1fc5d80a10d049be384c0abf2dbe2b4206522128e536a8787517de
4
- data.tar.gz: 5373eb84624217386db5663be8b8c829dcd9b98128a5a634c9467185ce3e6f3d
3
+ metadata.gz: c788e21a963142ba23c04928654534ab9d9641f4ed7863245f7af3f3bda19b3c
4
+ data.tar.gz: b7392b28f2a5024513687e22c4769c50660525e36290cb6e829c3b8a3e94a81f
5
5
  SHA512:
6
- metadata.gz: 9b0b0dd6eff1e19d986ef5e52e0b2409b88ecba9bac484948ed7366a485b062f94c7c11f81160735f714e08c5a24a38b6baca8cbebd15148c9562e8b360f7fdc
7
- data.tar.gz: aa00f4f6446199a46dab1b0101cbc3acd71ab44692375b83695e7062eccacab12b549298528a80f45e9c80b46ddc42217339a36d7d612aa91c39c3e86070d71c
6
+ metadata.gz: 1e2e36e5893bc031cb15b97eaa4f0de0c789c09831cb5724c05fbced6c32c3662dcdd4295539391be6ba54cf1fceb51cd1c92a4ed06e49ab2a00697de89c31cd
7
+ data.tar.gz: 00f64a23bed62d1254ba091bcb5035db6432bc47f3976a31697b5702dd3f58c5fc0c1d1ea9bedd5b3e2c7401cb31bd02bdd8b64380249401679a04ad688fd079
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.4] - 2021-12-30
4
+ - Fix issue with parsing file boundary that included \r\n
5
+
3
6
  ## [0.1.3] - 2021-12-30
4
7
  - Added ability to configure AdobeDocApi to provide better customization
5
8
 
@@ -127,12 +127,9 @@ module AdobeDocApi
127
127
  rescue
128
128
  line_index << i
129
129
  end
130
- if line_index.length == 1
131
- File.open(@output, "wb") { |f| f.write lines.at(line_index[0])}
132
- true
133
- else
134
- false
135
- end
130
+
131
+ return true if File.open(@output, "wb") { |f| f.write lines.map.with_index { |l, i| lines.at(i) if line_index.include?(i) }.compact.join("\r\n")}
132
+ false
136
133
  end
137
134
 
138
135
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdobeDocApi
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adobe_doc_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sonnier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-30 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday