forked from shrinerb/shrine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shrine.gemspec
76 lines (61 loc) · 3.03 KB
/
shrine.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
65
66
67
68
69
70
71
72
73
74
75
76
require File.expand_path("../lib/shrine/version", __FILE__)
Gem::Specification.new do |gem|
gem.name = "shrine"
gem.version = Shrine.version
gem.required_ruby_version = ">= 2.3"
gem.summary = "Toolkit for file attachments in Ruby applications"
gem.description = <<-END
Shrine is a toolkit for file attachments in Ruby applications. It supports
uploading, downloading, processing and deleting IO objects, backed by various
storage engines. It uses efficient streaming for low memory usage.
Shrine comes with a high-level interface for attaching uploaded files to
database records, saving their location and metadata to a database column, and
tying them to record's lifecycle. It natively supports background jobs and
direct uploads for fully asynchronous user experience.
END
gem.homepage = "https://shrinerb.com"
gem.authors = ["Janko Marohnić"]
gem.email = ["[email protected]"]
gem.license = "MIT"
gem.metadata = {
"bug_tracker_uri" => "https://github.com/shrinerb/shrine/issues",
"changelog_uri" => "https://github.com/shrinerb/shrine/blob/master/CHANGELOG.md",
"documentation_uri" => "https://shrinerb.com",
"mailing_list_uri" => "https://discourse.shrinerb.com",
"source_code_uri" => "https://github.com/shrinerb/shrine",
}
gem.files = Dir["README.md", "LICENSE.txt", "CHANGELOG.md", "lib/**/*.rb", "shrine.gemspec", "doc/**/*.md"]
gem.require_path = "lib"
gem.add_dependency "down", "~> 5.0"
gem.add_dependency "content_disposition", "~> 1.0"
# general testing helpers
gem.add_development_dependency "rake", ">= 11.1"
gem.add_development_dependency "minitest", "~> 5.8"
gem.add_development_dependency "mocha", "~> 1.4"
gem.add_development_dependency "dry-initializer"
# for endpoint plugins
gem.add_development_dependency "rack", "~> 2.0"
gem.add_development_dependency "http-form_data", "~> 2.0"
gem.add_development_dependency "rack-test_app"
# for determine_mime_type plugin
gem.add_development_dependency "mimemagic", ">= 0.3.2"
gem.add_development_dependency "marcel"
gem.add_development_dependency "ruby-filemagic", "~> 0.7" unless RUBY_ENGINE == "jruby" || ENV["CI"]
# for determine_mime_type and infer_extension plugins
gem.add_development_dependency "mime-types"
gem.add_development_dependency "mini_mime", "~> 1.0"
# for store_dimensions plugin
gem.add_development_dependency "fastimage"
gem.add_development_dependency "mini_magick", "~> 4.0" unless ENV["CI"]
gem.add_development_dependency "ruby-vips", "~> 2.0" unless ENV["CI"]
# for S3 storage
gem.add_development_dependency "aws-sdk-s3", "~> 1.16"
gem.add_development_dependency "aws-sdk-core", "~> 3.23"
# for instrumentation plugin
gem.add_development_dependency "dry-monitor"
gem.add_development_dependency "activesupport", "~> 5.2.0"
# for ORM plugins
gem.add_development_dependency "sequel"
gem.add_development_dependency "activerecord", "~> 5.2.0"
gem.add_development_dependency "sqlite3", "~> 1.3.6" unless RUBY_ENGINE == "jruby"
end