This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathpaperclip-optimizer.gemspec
64 lines (48 loc) · 2.39 KB
/
paperclip-optimizer.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'paperclip-optimizer/version'
Gem::Specification.new do |spec|
spec.name = 'paperclip-optimizer'
spec.version = PaperclipOptimizer::VERSION
spec.authors = ['Jan-Christian Föh']
spec.email = ['[email protected]']
spec.description = 'paperclip-optimizer is a Paperclip processor for optimizing and minifying uploaded images.'
spec.summary = 'Minify Paperclip image attachments like JPGs, GIFs or PNGs'
spec.homepage = 'https://github.com/janfoeh/paperclip-optimizer'
spec.license = 'MIT'
spec.add_runtime_dependency 'paperclip', '>= 3.4'
spec.add_runtime_dependency 'image_optim', '~> 0.19'
spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'rake', '~> 10.1'
spec.add_development_dependency 'rspec', '~> 2.13'
spec.add_development_dependency 'rails', '>= 3.2.20', '<= 4.2.0'
spec.add_development_dependency 'sqlite3', '~> 1.3.10'
spec.add_development_dependency 'rubocop', '~> 0.26.1'
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
spec.post_install_message = %q{
Initializer
-----------
run
rails g paperclip_optimizer:install
to create an initializer for global configuration.
Breaking changes from 1.0.3
---------------------------
By default, all optimization libraries are now disabled. Re-enable jpegtran and optipng manually
if you wish to retain the behaviour of PaperclipOptimizer 1.0.3.
See https://github.com/janfoeh/paperclip-optimizer#settings for more information on the new
configuration system.
=============================================
IMPORTANT - READ THIS - IMPORTANT - READ THIS
=============================================
PaperclipOptimizer uses image_optim to do the heavy lifting. image_optim automatically inserts itself
into the asset pipeline and tries to compress your /app/assets/images as well. By default, it enables
all the optimization libraries it supports, and it will fail if you do not have all of them installed.
Either add
config.assets.image_optim = false
to your config/application.rb to disable this, or check https://github.com/toy/image_optim#from-rails
for how to configure this properly.
}
end