onlyoffice_pdf_parser 0.3.0 → 0.4.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
  SHA256:
3
- metadata.gz: 0b9aae5d167a597a5a3ed130df76fdf6556f56a0584e37f0d8cb1628072efb53
4
- data.tar.gz: 504d27e360ad224a8c8d81c03f7d7acd8a21cbb6742d5260a5cd0f03653a98c6
3
+ metadata.gz: aa1e4904848f330f9e50f850cfdcab6e4b0e170e2478491a94c1e6ca5172bea2
4
+ data.tar.gz: afc8fcd96b544e8d7ec8dd5cab7db1d7225359a0d2e5423b706243fa24252654
5
5
  SHA512:
6
- metadata.gz: 93f18f9b66233ad8164def6ac45e41b8ed8ca4a72da22ada40b45df5678856031e49839084ae72571c62f036c5c9b44e85f1c7951099c0116993b6fd255c29ba
7
- data.tar.gz: ec867fb44f95b59a28a32dc290bef278698d92ecbf49697672b5ac2a1ffa3879684a64d6652ce87f0c97941408262c015cfdf3c7ab0adaf66594c23648248f10
6
+ metadata.gz: '05112925b5f8dfb5abd423435e96410344e421e1cf1705733b2c142cf2225bee45dc1611e89915d70233ac548ae131edf6711d91500c3bf85b76a6562b3a493f'
7
+ data.tar.gz: 45e19650bd51a9bffca33598e45831389eb4caa6a732651a901cedd1fce41813c7ffe3dc2dfcbfc19f08532289da43c01a8f33e30c4fda0dcba3bb015cd6a603
@@ -107,7 +107,7 @@ module OnlyofficePdfParser
107
107
  # @return [Void] Fill @pixel with data
108
108
  def fetch_pixels
109
109
  tmp_file = Tempfile.new('onlyoffice_pdf_parser')
110
- File.open(tmp_file, 'wb') { |file| file.write(data) }
110
+ File.binwrite(tmp_file, data)
111
111
  @pixels = ImageList.new(tmp_file.path).get_pixels(0, 0, width, height).each_slice(width).to_a
112
112
  tmp_file.unlink
113
113
  end
@@ -4,6 +4,6 @@ module OnlyofficePdfParser
4
4
  # Module with version of Gem
5
5
  module Version
6
6
  # @return [String] version of gem
7
- STRING = '0.3.0'
7
+ STRING = '0.4.0'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_pdf_parser
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
  - Pavel Lobashov
@@ -9,22 +9,28 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-20 00:00:00.000000000 Z
12
+ date: 2022-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: image_size
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '2'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '4'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: '2'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '4'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: pdf-reader
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +226,7 @@ metadata:
220
226
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_pdf_parser
221
227
  homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_pdf_parser
222
228
  source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_pdf_parser
229
+ rubygems_mfa_required: 'true'
223
230
  post_install_message:
224
231
  rdoc_options: []
225
232
  require_paths:
@@ -235,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
242
  - !ruby/object:Gem::Version
236
243
  version: '0'
237
244
  requirements: []
238
- rubygems_version: 3.1.4
245
+ rubygems_version: 3.3.4
239
246
  signing_key:
240
247
  specification_version: 4
241
248
  summary: ONLYOFFICE PDF Parser Gem