paperclip_utils 1.3.4 → 1.3.5

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
  SHA1:
3
- metadata.gz: a981896c3a2efd45341b8c822622d901da8a4334
4
- data.tar.gz: 1777b10ff15b2d3a531740522b5f050e90715cbe
3
+ metadata.gz: 4e95d9bcc343872ab91a21a6ca3809d1c6c31b3a
4
+ data.tar.gz: 18f07967422062c65b81948351b9d655385da264
5
5
  SHA512:
6
- metadata.gz: a642b8455d26d67cfac8a9849a6df8a95953512246db56d8ca00c0f95b97ca71d6c7d0ee379d42fd0fd58c7e2160cebfe38484fdd0ac55c926aac9b02cdafa7e
7
- data.tar.gz: 58017e6832e77b9d7f350d13d926ac473d219b95e3a5120e5e095d50ddd9ba902b199c0221e7fc36531043a33a77e785818d75850cadbb6baccf8b91e00f66d9
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
- ##### `Paperclip::Utils.get_styles(content_type, *optional_options)`
48
- **styles** - Array - Default: `{ preview: '600x800>', thumb: '100x100>' }` - Note: Default file type for each style is .jpg for uploaded .pdf and .tif files
49
-
50
- **fallback_styles** - Hash - Default -`{}`
51
-
52
- **allowed_content_types** - Array - Default: `['application/pdf', 'image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/jpg', 'image/tif, ''image/tiff', 'image/x-tiff']`
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
- ##### `Paperclip::Utils.get_processors(content_type, *optional_options)`
56
- **processors** - Array - Default: `[:ghostscript, :thumbnail]` - Notes: Automatically includes ghostscript processor if processors includes :thumbnail which it does by default
57
-
58
- **fallback_processors** - Array - Default: `[]`
59
-
60
- **allowed_content_types** - Array - Default: `['application/pdf', 'image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/jpg', 'image/tif, ''image/tiff', 'image/x-tiff']`
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.
@@ -1,3 +1,3 @@
1
1
  module PaperclipUtils
2
- VERSION = '1.3.4'
2
+ VERSION = '1.3.5'
3
3
  end
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
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-14 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip