forked from markevans/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdragonfly.gemspec
45 lines (41 loc) · 1.65 KB
/
dragonfly.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'dragonfly/version'
Gem::Specification.new do |spec|
spec.name = "dragonfly"
spec.version = Dragonfly::VERSION
spec.authors = ["Mark Evans"]
spec.email = "mark@new-bamboo.co.uk"
spec.description = "Dragonfly is a framework that enables on-the-fly processing for any content type.\n It is especially suited to image handling. Its uses range from image thumbnails to standard attachments to on-demand text generation."
spec.summary = "Ideal gem for handling attachments in Rails, Sinatra and Rack applications."
spec.homepage = "http://github.com/markevans/dragonfly"
spec.license = "MIT"
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.extra_rdoc_files = [
"LICENSE",
"README.md"
]
# Rack 2.0 only works with ruby >= 2.2.2
if RUBY_VERSION < "2.2.2"
rack_version = "~> 1.3"
activemodel_version = "~> 4.2"
else
rack_version = ">= 1.3"
activemodel_version = nil
end
# Runtime dependencies
spec.add_runtime_dependency("rack", rack_version)
spec.add_runtime_dependency("multi_json", "~> 1.0")
spec.add_runtime_dependency("addressable", "~> 2.3")
# Development dependencies
spec.add_development_dependency("rspec", "~> 2.5")
spec.add_development_dependency("webmock")
spec.add_development_dependency("activemodel", activemodel_version)
if RUBY_PLATFORM == "java"
spec.add_development_dependency("jruby-openssl")
end
end