bundler-install_dash_docs 0.1.0-universal-darwin → 0.1.1-universal-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/bundler/install_dash_docs/bundler_plugin.rb +18 -0
- data/lib/bundler/install_dash_docs/cli.rb +0 -2
- data/lib/bundler/install_dash_docs/version.rb +1 -1
- data/lib/bundler/install_dash_docs.rb +1 -0
- data/plugins.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d128363fd286e119d7f8f884ffa5d0a5861d0b99e9544be024a7edcfe7b81eaf
|
4
|
+
data.tar.gz: 102436bc68c25d633d1c63eb9e464b9347696313263a1f7d2ec88d7f67eb0f36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93f41cc53478e5c6bd40bda2330cbb5720dc23e689f5a671725fcffe1d8651eedbd0419121506a9785d4a8644b9b10d39de32f69ad20b30e3567616db306ea6b
|
7
|
+
data.tar.gz: 7ad1bf0574d2c2aee764e0e1c4071a37c75e94baa86bc2f1e5a63a43c52de7d7ccd13775289957445c4fe66bf3b0adfa84d294fc78ca7353bc4ba2884129ed74
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.1] - 2022-03-05
|
4
|
+
|
5
|
+
- Probably fixed the issues getting the bundler plugin system to work with this gem.
|
6
|
+
|
3
7
|
## [0.1.0] - 2022-03-04
|
4
8
|
|
5
9
|
- Initial release. Invokes `dash-install://` for gems in the lockfile
|
10
|
+
- Broken: cannot execute as a bundler plugin because bundler uses `exec`, but Thor uses `start`.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -25,7 +25,9 @@ You probably want to install this at the system level, so it's available for any
|
|
25
25
|
|
26
26
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
27
27
|
|
28
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To
|
28
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To test the bundler plugin command, after installing it on the local machine with `rake`, `bundle plugin install bundler-install_dash_docs` will work. Even if the plugin isn't installed, `bundle install_dash_docs` will work, because it uses the Thor CLI executable from your PATH directly.
|
29
|
+
|
30
|
+
To release a new version, update the version number with `gem bump`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
29
31
|
|
30
32
|
## Contributing
|
31
33
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "bundler"
|
2
|
+
|
3
|
+
module Bundler
|
4
|
+
module InstallDashDocs
|
5
|
+
##
|
6
|
+
# Glue between Bundler Plugin system and Thor executable provided by the gem
|
7
|
+
class BundlerPlugin < ::Bundler::Plugin::API
|
8
|
+
command "install_dash_docs"
|
9
|
+
|
10
|
+
def exec(command_name, args)
|
11
|
+
# I do not know why https://bundler.io/v2.3/guides/bundler_plugins.html
|
12
|
+
# tells you to create a gem, use a Thor command, and then doesn't include docs
|
13
|
+
# on using that Thor command. However, this seems to be correct
|
14
|
+
CLI.start(args)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -4,8 +4,6 @@ require "bundler"
|
|
4
4
|
module Bundler
|
5
5
|
module InstallDashDocs
|
6
6
|
class CLI < ::Thor
|
7
|
-
::Bundler::Plugin::API.command("install_dash_docs", self)
|
8
|
-
|
9
7
|
desc "install", "Install docsets for all gems in this bundle into Dash.app"
|
10
8
|
method_option :quiet, type: :boolean, default: false, aliases: "-q", desc: "Supresses normal output of the gem names and versions"
|
11
9
|
method_option :dry_run, type: :boolean, default: false, aliases: "-n", desc: "Print out what would be performed, but do not install docsets in Dash"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "install_dash_docs/version"
|
4
|
+
require_relative "install_dash_docs/bundler_plugin"
|
4
5
|
require_relative "install_dash_docs/cli"
|
5
6
|
require_relative "install_dash_docs/dash"
|
6
7
|
require_relative "install_dash_docs/dash_install_url"
|
data/plugins.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-install_dash_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- Dan Jackson
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- bundler-install_dash_docs.gemspec
|
58
58
|
- exe/bundler-install_dash_docs
|
59
59
|
- lib/bundler/install_dash_docs.rb
|
60
|
+
- lib/bundler/install_dash_docs/bundler_plugin.rb
|
60
61
|
- lib/bundler/install_dash_docs/cli.rb
|
61
62
|
- lib/bundler/install_dash_docs/dash.rb
|
62
63
|
- lib/bundler/install_dash_docs/dash_install_url.rb
|