pludoni_pdfutils 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: 439ff3f6cb56782dc05fe363a19d8c1f2f416b4943a201fba1c94fb72db9d9f8
4
- data.tar.gz: 3501da1a290946bf56e8cde0daae07ae63d72a5c05aed5f653c245a7826e1087
3
+ metadata.gz: 2d8493c8060dffe855122702e48a5cb28d43292f0dc192f768d6b033c9f6a2e7
4
+ data.tar.gz: 18d0541e7a26189a90d97cc7ce5b16fd93a5e46f5e05b0885afc752919fa485e
5
5
  SHA512:
6
- metadata.gz: 3f29026a2d7c8f40bf9a14ecad38a458ff621904f0a94fb6856a4635f0eec105027e9f9f04ba18088e8b1695cbd0469ea840ccea59f5539c46da9a34526eb7b4
7
- data.tar.gz: 54b4b7b4b3096e3b8485d36a6a5becb7219af56f08f3b0b55c8c4bfd9be0f401d255a6293c1a2f03b465de1eedc974841ddf335c6618c488580540f50f6dc9bf
6
+ metadata.gz: 95d9e311f1cba3fa1dd0a96e294432f0c4c1d8777dfc5b137d8839ce09b709d0c4811b01f434ea2ad660484938cc0aef8d89a093af699012743af631da8a43b7
7
+ data.tar.gz: 5c78e1a7799432e25c2b2502fbfd1add93d3b17ebebbfc18632b721fbf2efd030161498ff5773ed6ef20a56ed531006d76b742502d0d1a561480ff2fc6ee5a6f
data/Gemfile.lock CHANGED
@@ -1,88 +1,86 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pludoni-pdfutils (0.1.0)
4
+ pludoni_pdfutils (0.4.0)
5
5
  activestorage (>= 5.2.0)
6
- mimemagic
6
+ marcel
7
7
  zeitwerk
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.1.7)
13
- actionview (= 6.1.7)
14
- activesupport (= 6.1.7)
15
- rack (~> 2.0, >= 2.0.9)
12
+ actionpack (7.0.7.2)
13
+ actionview (= 7.0.7.2)
14
+ activesupport (= 7.0.7.2)
15
+ rack (~> 2.0, >= 2.2.4)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.1.7)
20
- activesupport (= 6.1.7)
19
+ actionview (7.0.7.2)
20
+ activesupport (= 7.0.7.2)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activejob (6.1.7)
26
- activesupport (= 6.1.7)
25
+ activejob (7.0.7.2)
26
+ activesupport (= 7.0.7.2)
27
27
  globalid (>= 0.3.6)
28
- activemodel (6.1.7)
29
- activesupport (= 6.1.7)
30
- activerecord (6.1.7)
31
- activemodel (= 6.1.7)
32
- activesupport (= 6.1.7)
33
- activestorage (6.1.7)
34
- actionpack (= 6.1.7)
35
- activejob (= 6.1.7)
36
- activerecord (= 6.1.7)
37
- activesupport (= 6.1.7)
28
+ activemodel (7.0.7.2)
29
+ activesupport (= 7.0.7.2)
30
+ activerecord (7.0.7.2)
31
+ activemodel (= 7.0.7.2)
32
+ activesupport (= 7.0.7.2)
33
+ activestorage (7.0.7.2)
34
+ actionpack (= 7.0.7.2)
35
+ activejob (= 7.0.7.2)
36
+ activerecord (= 7.0.7.2)
37
+ activesupport (= 7.0.7.2)
38
38
  marcel (~> 1.0)
39
39
  mini_mime (>= 1.1.0)
40
- activesupport (6.1.7)
40
+ activesupport (7.0.7.2)
41
41
  concurrent-ruby (~> 1.0, >= 1.0.2)
42
42
  i18n (>= 1.6, < 2)
43
43
  minitest (>= 5.1)
44
44
  tzinfo (~> 2.0)
45
- zeitwerk (~> 2.3)
46
45
  builder (3.2.4)
47
- concurrent-ruby (1.1.10)
46
+ concurrent-ruby (1.2.2)
48
47
  crass (1.0.6)
49
- erubi (1.11.0)
50
- globalid (1.0.0)
48
+ erubi (1.12.0)
49
+ globalid (1.1.0)
51
50
  activesupport (>= 5.0)
52
- i18n (1.12.0)
51
+ i18n (1.14.1)
53
52
  concurrent-ruby (~> 1.0)
54
- loofah (2.19.0)
53
+ loofah (2.21.3)
55
54
  crass (~> 1.0.2)
56
- nokogiri (>= 1.5.9)
55
+ nokogiri (>= 1.12.0)
57
56
  marcel (1.0.2)
58
- mimemagic (0.4.3)
59
- nokogiri (~> 1)
60
- rake
61
- mini_mime (1.1.2)
62
- minitest (5.16.3)
63
- nokogiri (1.13.8-x86_64-linux)
57
+ mini_mime (1.1.5)
58
+ minitest (5.19.0)
59
+ nokogiri (1.15.4-x86_64-linux)
64
60
  racc (~> 1.4)
65
- racc (1.6.0)
66
- rack (2.2.4)
67
- rack-test (2.0.2)
61
+ racc (1.7.1)
62
+ rack (2.2.8)
63
+ rack-test (2.1.0)
68
64
  rack (>= 1.3)
69
- rails-dom-testing (2.0.3)
70
- activesupport (>= 4.2.0)
65
+ rails-dom-testing (2.2.0)
66
+ activesupport (>= 5.0.0)
67
+ minitest
71
68
  nokogiri (>= 1.6)
72
- rails-html-sanitizer (1.4.3)
73
- loofah (~> 2.3)
69
+ rails-html-sanitizer (1.6.0)
70
+ loofah (~> 2.21)
71
+ nokogiri (~> 1.14)
74
72
  rake (13.0.6)
75
- tzinfo (2.0.5)
73
+ tzinfo (2.0.6)
76
74
  concurrent-ruby (~> 1.0)
77
- zeitwerk (2.6.0)
75
+ zeitwerk (2.6.11)
78
76
 
79
77
  PLATFORMS
80
78
  x86_64-linux
81
79
 
82
80
  DEPENDENCIES
83
81
  bundler
84
- pludoni-pdfutils!
82
+ pludoni_pdfutils!
85
83
  rake
86
84
 
87
85
  BUNDLED WITH
88
- 2.3.15
86
+ 2.4.2
@@ -1,3 +1,4 @@
1
+ require 'marcel'
1
2
  module Pludoni
2
3
  module Pdfutils
3
4
  class LocalFileWrapper < FileWrapper
@@ -21,7 +22,7 @@ module Pludoni
21
22
  end
22
23
 
23
24
  def content_type
24
- MimeMagic.by_magic(@file.read).type
25
+ Marcel::MimeType.for(@file)
25
26
  ensure
26
27
  @file.rewind
27
28
  end
@@ -1,5 +1,3 @@
1
- require 'mimemagic'
2
-
3
1
  module Pludoni
4
2
  module Pdfutils
5
3
  class Error < StandardError; end
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "pludoni_pdfutils"
4
- spec.version = "0.3.0"
4
+ spec.version = "0.4.0"
5
5
  spec.authors = ["Stefan Wienert"]
6
6
  spec.email = ["info@stefanwienert.de"]
7
7
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "activestorage", ">= 5.2.0"
21
21
  spec.add_dependency "zeitwerk"
22
- spec.add_dependency "mimemagic"
22
+ spec.add_dependency "marcel"
23
23
 
24
24
  spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pludoni_pdfutils
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
  - Stefan Wienert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: mimemagic
42
+ name: marcel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.0.3
128
+ rubygems_version: 3.2.33
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Convert to pdf, compress pdf, join pdf using Ghostscript