提交 701ab978 编写于 作者: R Rafael Mendonça França

Merge pull request #30110 from yhirano55/add_git_source

Add git_source to Gemfile for plugin generator
* Add git_source to `Gemfile` for plugin generator.
*Yoshiyuki Hirano*
* Add `--skip-action-cable` option to the plugin generator.
*bogdanvlviv*
......
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
<% if options[:skip_gemspec] -%>
<%= '# ' if options.dev? || options.edge? -%>gem 'rails', '<%= Array(rails_version_specifier).join("', '") %>'
......
......@@ -82,6 +82,11 @@ def test_generating_test_files_in_full_mode
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
end
def test_inclusion_of_git_source
run_generator [destination_root]
assert_file "Gemfile", /git_source/
end
def test_inclusion_of_a_debugger
run_generator [destination_root, "--full"]
if defined?(JRUBY_VERSION) || RUBY_ENGINE == "rbx"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册