|
| 1 | +# frozen_string_literal: true |
| 2 | + |
1 | 3 | require_relative 'lib/diffcrypt/version' |
2 | 4 |
|
3 | 5 | Gem::Specification.new do |spec| |
4 | | - spec.name = "diffcrypt" |
| 6 | + spec.name = 'diffcrypt' |
5 | 7 | spec.version = Diffcrypt::VERSION |
6 | | - spec.authors = ["Marc Qualie"] |
7 | | - spec.email = ["marc@marcqualie.com"] |
| 8 | + spec.authors = ['Marc Qualie'] |
| 9 | + spec.email = ['marc@marcqualie.com'] |
8 | 10 |
|
9 | | - spec.summary = %q{TODO: Write a short summary, because RubyGems requires one.} |
10 | | - spec.description = %q{TODO: Write a longer description or delete this line.} |
11 | | - spec.homepage = "TODO: Put your gem's website or public repo URL here." |
12 | | - spec.license = "MIT" |
13 | | - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") |
| 11 | + spec.summary = 'Diffable encrypted files' |
| 12 | + spec.description = 'Diffable encrypted files' |
| 13 | + spec.homepage = 'https://github.com/marcqualie/diffcrypt' |
| 14 | + spec.license = 'MIT' |
| 15 | + spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') |
14 | 16 |
|
15 | | - spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" |
| 17 | + # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" |
16 | 18 |
|
17 | | - spec.metadata["homepage_uri"] = spec.homepage |
18 | | - spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." |
19 | | - spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." |
| 19 | + spec.metadata['homepage_uri'] = spec.homepage |
| 20 | + spec.metadata['source_code_uri'] = 'https://github.com/marcqualie/diffcrypt' |
| 21 | + # spec.metadata['changelog_uri'] = "TODO: Put your gem's CHANGELOG.md URL here." |
20 | 22 |
|
21 | 23 | # Specify which files should be added to the gem when it is released. |
22 | 24 | # The `git ls-files -z` loads the files in the RubyGem that have been added into git. |
23 | | - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do |
| 25 | + spec.files = Dir.chdir(File.expand_path(__dir__)) do |
24 | 26 | `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } |
25 | 27 | end |
26 | | - spec.bindir = "exe" |
27 | | - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } |
28 | | - spec.require_paths = ["lib"] |
| 28 | + spec.bindir = 'exe' |
| 29 | + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } |
| 30 | + spec.require_paths = ['lib'] |
| 31 | + |
| 32 | + spec.add_runtime_dependency 'activesupport', '~> 6.0.0' |
29 | 33 | end |
0 commit comments