exe/solargraph-rails-init in solargraph-rails-init-0.2.0 vs exe/solargraph-rails-init in solargraph-rails-init-0.2.1
- old
+ new
@@ -44,11 +44,14 @@
@options[:sgr]
end
def install_sgr
exec_cmd "gem install solargraph-rails --pre", title: "Installing `solargraph-rails` gem..."
+ exec_cmd "bundle add annotate", title: "Adding `annotate` gem to Gemfile..."
+ exec_cmd "rails g annotate:install", title: "Initializing `annotate` gem..."
+ exec_cmd "rake annotate_models", title: "Annotating models..."
- puts "Add `solargraph-rails` plugin to #{SOLARGRAPH_YML}"
+ puts "Adding `solargraph-rails` plugin to #{SOLARGRAPH_YML}..."
h = YAML.load_file(SOLARGRAPH_YML)
h['plugins'] ||= []
h['plugins'] << 'solargraph-rails' unless h['plugins'].include?('solargraph-rails')
File.open(SOLARGRAPH_YML, "w") do |file|