malmal-rails 0.5.0 → 0.5.1
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 +4 -4
- data/README.md +1 -1
- data/lib/malmal/rails/sanitizes_attachment.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f87e64d2dd84a3870ccac723490cda512d7328b2d4fb9dae43ddfa4802c95fd
|
|
4
|
+
data.tar.gz: c92709623b566f26ecd18ebd685553a44a5b45ee7a8d4a99bdb7e7478d54be1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39e6ad19dcedd6e3e9a2a03e5e7e10e6dc84ac7a750dd18d8c4578696b2ee134479a79032e18e51286d61f74c20cb618e007163258f80fd6fd4f374b577b6918
|
|
7
|
+
data.tar.gz: db8fa3d93711e6fdecfff61ba9aa5e6e44178f6c093742db5ce605cb75a69858b42884efca93cd0e4e5d08309619eb4ebe1da01c37bc490c0c9f0f855e6c2192
|
data/README.md
CHANGED
|
@@ -59,7 +59,7 @@ extension of its type, which is not always the type of the upload (a BMP becomes
|
|
|
59
59
|
A file that is not clean is refused as the validator does; one that cannot be rebuilt
|
|
60
60
|
adds `:malmal_not_rebuilt`, or is kept as it was with `on_not_rebuilt: :keep`, which is
|
|
61
61
|
best paired with the validator. The options are those of `Malmal::Scanner#sanitize`:
|
|
62
|
-
`types`, `jpeg_quality`, `keep_cmyk`, `keep_profile`, `pdf_dpi`, `pdf_jpeg`, `pdf_text`, `pdf_vector_text`.
|
|
62
|
+
`types`, `jpeg_quality`, `keep_cmyk`, `keep_profile`, `tone_map`, `pdf_dpi`, `pdf_jpeg`, `pdf_text`, `pdf_vector_text`.
|
|
63
63
|
|
|
64
64
|
## Stored blobs
|
|
65
65
|
|
|
@@ -21,7 +21,7 @@ module Malmal
|
|
|
21
21
|
# +:malmal_not_rebuilt+, or is kept as it was with
|
|
22
22
|
# <tt>on_not_rebuilt: :keep</tt> (pair that with the validator). Other
|
|
23
23
|
# options are those of Malmal::Scanner#sanitize: +types+, +jpeg_quality+,
|
|
24
|
-
# +keep_cmyk+, +keep_profile+, +pdf_dpi+, +pdf_jpeg+, +pdf_text+, +pdf_vector_text+.
|
|
24
|
+
# +keep_cmyk+, +keep_profile+, +tone_map+, +pdf_dpi+, +pdf_jpeg+, +pdf_text+, +pdf_vector_text+.
|
|
25
25
|
module SanitizesAttachment
|
|
26
26
|
extend ActiveSupport::Concern
|
|
27
27
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: malmal-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nguyenthuan155632
|
|
@@ -35,14 +35,14 @@ dependencies:
|
|
|
35
35
|
requirements:
|
|
36
36
|
- - '='
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 0.5.
|
|
38
|
+
version: 0.5.1
|
|
39
39
|
type: :runtime
|
|
40
40
|
prerelease: false
|
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
43
|
- - '='
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.5.
|
|
45
|
+
version: 0.5.1
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: railties
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|