-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdragonfly-cache.gemspec
More file actions
58 lines (44 loc) · 2 KB
/
Copy pathdragonfly-cache.gemspec
File metadata and controls
58 lines (44 loc) · 2 KB
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
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'dragonfly/cache/version'
Gem::Specification.new do |spec|
spec.name = 'dragonfly-cache'
spec.version = Dragonfly::Cache::VERSION
spec.licenses = ['Apache-2.0']
spec.authors = ['Gaël-Ian Havard']
spec.email = ['gael-ian@notus.sh']
spec.summary = 'Cache adapter for Dragonfly'
spec.description = 'Allow Dragonfly to keep a cache of jobs results'
spec.homepage = 'https://github.com/notus-sh/dragonfly-cache'
raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
spec.metadata = {
'allowed_push_host' => 'https://rubygems.org',
'rubygems_mfa_required' => 'true',
'bug_tracker_uri' => 'https://github.com/notus-sh/dragonfly-cache/issues',
'changelog_uri' => 'https://github.com/notus-sh/dragonfly-cache/blob/main/CHANGELOG.md',
'homepage_uri' => 'https://github.com/notus-sh/dragonfly-cache',
'source_code_uri' => 'https://github.com/notus-sh/dragonfly-cache',
'funding_uri' => 'https://opencollective.com/notus-sh'
}
spec.require_paths = ['lib']
excluded_dirs = %r{^(.github|spec)/}
excluded_files = %w[.gitignore .rspec .rubocop.yml Gemfile Gemfile.lock Rakefile]
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(excluded_dirs) || excluded_files.include?(f)
end
spec.required_ruby_version = '>= 3.2'
spec.add_dependency 'dragonfly'
spec.add_dependency 'i18n'
spec.add_development_dependency 'bundler', '>= 2.1'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.13.0'
spec.post_install_message = <<~POST_INSTALL_MESSAGE
Don't forget to configure Dragonfly::Cache:
Dragonfly.app.configure do
plugin :dragonfly_cache,
server_root: Rails.application.root.join('public'),
url_format: '/media-cache/:sha/:name'
end
POST_INSTALL_MESSAGE
end