-
-
Save invalidusrname/c82915bc3596f265bda71a67006d20fe to your computer and use it in GitHub Desktop.
Installs the Dash docs for all the Ruby Gems in your Gemfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Prerequisites: | |
# gem install bundler | |
# bundle install | |
dependencies = `bundle show | grep '*' | awk '{print $2, $3}' | sed -e 's/(//' -e 's/)//'`.split("\n") | |
dependencies.each do |dependency| | |
(gem_name, version) = dependency.split | |
next if gem_name =~ /rails-assets/ | |
puts "Installing docs for #{gem_name} #{version} " | |
system "open 'dash-install://repo_name=Ruby Docsets&entry_name=#{gem_name}&version=#{version}'" | |
sleep 3 | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment