paperclip_utils 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -12
- data/lib/paperclip_processors/pdf_merge.rb +1 -1
- data/lib/paperclip_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e95d9bcc343872ab91a21a6ca3809d1c6c31b3a
|
4
|
+
data.tar.gz: 18f07967422062c65b81948351b9d655385da264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9226b7deae77f551ab81561632780d637a98dbc024b31466d6c5dcb0d560105a5fd2bf46e5527e26b0360dfffba730a936992c1b7b2dc1f5ed4aedc61187e3
|
7
|
+
data.tar.gz: 2c24d1fcceb80214dc00d5196308d3d6b0dd212c60065bbe035ebf6376e688ea3d5931da33e2cf72001c1ea8bbfb0e7c855320d49e8f576f63e2d4c113465ff5
|
data/README.md
CHANGED
@@ -44,20 +44,20 @@ end
|
|
44
44
|
# Helper Methods & Options
|
45
45
|
|
46
46
|
<br>
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
**
|
51
|
-
|
52
|
-
**allowed_content_types**
|
47
|
+
#### `Paperclip::Utils.get_styles(content_type, *optional_options)`
|
48
|
+
| Option | Type | Default | Notes |
|
49
|
+
|---|:--:|:--:|---|
|
50
|
+
| **styles** | Array| `{ preview: '600x800>'}` | Default file type for each style is .jpg for uploaded .pdf and .tif file |
|
51
|
+
| **fallback_styles** | Hash | `{}` | These are the styles applied if the files content type is in the allowed list below. |
|
52
|
+
| **allowed_content_types** | Array | `['application/pdf', 'image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/jpg', 'image/tif, ''image/tiff', 'image/x-tiff']` | |
|
53
53
|
|
54
54
|
<br>
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
**
|
59
|
-
|
60
|
-
**allowed_content_types**
|
55
|
+
#### `Paperclip::Utils.get_processors(content_type, *optional_options)`
|
56
|
+
| Option | Type | Default | Notes |
|
57
|
+
|---|:--:|:--:|---|
|
58
|
+
| **processors** | Array| `[:ghostscript, :thumbnail]` | Automatically includes ghostscript processor if processors includes :thumbnail which it does by default |
|
59
|
+
| **fallback_processors** | Hash | `[]` | These are the processors applied if the files content type is in the allowed list below. |
|
60
|
+
| **allowed_content_types** | Array | `['application/pdf', 'image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/jpg', 'image/tif, ''image/tiff', 'image/x-tiff']` | |
|
61
61
|
|
62
62
|
|
63
63
|
# Credits
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Merge pdf files (for transmittals)
|
2
|
-
#https://gist.github.com/jessieay/5832466
|
2
|
+
# https://gist.github.com/jessieay/5832466
|
3
3
|
# Ex. http://stackoverflow.com/questions/17203270/combine-multi-page-pdfs-into-one-pdf-with-imagemagick
|
4
4
|
#
|
5
5
|
# First save your files to a temporary location then save your model with any arbitrary file attached which will not be saved.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weston Ganger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paperclip
|