-
Notifications
You must be signed in to change notification settings - Fork 109
/
image_optim.gemspec
42 lines (35 loc) · 1.87 KB
/
image_optim.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
# encoding: UTF-8
Gem::Specification.new do |s|
s.name = 'image_optim'
s.version = '0.31.3'
s.summary = %q{Command line tool and ruby interface to optimize (lossless compress, optionally lossy) jpeg, png, gif and svg images using external utilities (advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegrescan, jpegtran, optipng, oxipng, pngcrush, pngout, pngquant, svgo)}
s.homepage = "https://github.com/toy/#{s.name}"
s.authors = ['Ivan Kuchin']
s.license = 'MIT'
s.required_ruby_version = '>= 1.9.3'
s.metadata = {
'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
'changelog_uri' => "https://github.com/toy/#{s.name}/blob/master/CHANGELOG.markdown",
'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
'source_code_uri' => "https://github.com/toy/#{s.name}",
} if s.respond_to?(:metadata=)
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = %w[lib]
s.post_install_message = <<-EOF
Rails image assets optimization is extracted into image_optim_rails gem
You can safely remove `config.assets.image_optim = false` if you are not going to use that gem
EOF
s.add_dependency 'fspath', '~> 3.0'
s.add_dependency 'image_size', '>= 1.5', '< 4'
s.add_dependency 'exifr', '~> 1.2', '>= 1.2.2'
s.add_dependency 'progress', '~> 3.0', '>= 3.0.1'
s.add_dependency 'in_threads', '~> 1.3'
s.add_development_dependency 'image_optim_pack', '~> 0.2', '>= 0.2.2'
s.add_development_dependency 'rspec', '~> 3.0'
if RUBY_VERSION >= '2.5' && !Gem.win_platform? && !defined?(JRUBY_VERSION)
s.add_development_dependency 'rubocop', '~> 1.22', '!= 1.22.2'
s.add_development_dependency 'rubocop-rspec', '~> 2.0'
end
end