-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundler-install_dash_docs.gemspec
49 lines (40 loc) · 2.38 KB
/
bundler-install_dash_docs.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
# frozen_string_literal: true
require_relative "lib/bundler/install_dash_docs/version"
Gem::Specification.new do |spec|
spec.name = "bundler-install_dash_docs"
spec.version = Bundler::InstallDashDocs::VERSION
spec.authors = ["Dan Jackson"]
spec.email = ["[email protected]"]
spec.summary = "Bundler plugin to install gem documentation into the macOS documentation browser Dash https://kapeli.com/dash"
spec.description = <<-EOF
Bundler plugin that can be installed system-wide (`gem install bundler-install_dash_docs`) or on a per-project basis
(`bundle plugin install bundler-install_dash_docs`).
Once installed, primary command is `bundle install_dash_docs install`
This will read your Gemfile.lock, and use the Dash.app (v3.1.0 and later) custom url scheme `dash-install:` to
request that Dash.app install the matching documentation for each gem at the specific version. It currently takes ~2 seconds
per gem, so its a long process for large projects.
I'd love to do more, but Dash.app does not yet support anything more interesting (removing older versions? updating a search profile?).
EOF
spec.homepage = "https://github.com/e28eta/bundler-install_dash_docs"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.6.0"
spec.platform = "universal-darwin" # Dash.app is macOS-only, this plugin is broken on other platforms
spec.requirements << "Dash.app, v3.1.0 or later, from https://kapeli.com/dash"
spec.metadata["rubygems_mfa_required"] = "true"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/e28eta/bundler-install_dash_docs"
spec.metadata["changelog_uri"] = "https://github.com/e28eta/bundler-install_dash_docs/blob/main/CHANGELOG.md"
spec.metadata["funding_uri"] = "https://github.com/sponsors/e28eta"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "addressable", "~> 2.2"
spec.add_dependency "thor", "~> 1.2"
end