summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-07-19 13:12:06 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-07-19 13:12:51 -0500
commit1b7955e96e56f24d03b2438267144c06f1d32c78 (patch)
treeb589de54518a80b06087ec7bb61233cf08d8c8ea
parentde3f2d2b4e81de6f0d6b9657756472b8c2a3e246 (diff)
downloadbundler-1b7955e96e56f24d03b2438267144c06f1d32c78.tar.gz
[CLI] Deprecate init --gemspec
-rw-r--r--lib/bundler/cli.rb2
-rw-r--r--spec/commands/init_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index e40f0fa7e1..9691ad6f12 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -117,7 +117,7 @@ module Bundler
Gemfile to a gem with a gemspec, the --gemspec option will automatically add each
dependency listed in the gemspec file to the newly created Gemfile.
D
- method_option "gemspec", :type => :string, :banner => "Use the specified .gemspec to create the Gemfile"
+ deprecated_option "gemspec", :type => :string, :banner => "Use the specified .gemspec to create the Gemfile"
def init
require "bundler/cli/init"
Init.new(options.dup).run
diff --git a/spec/commands/init_spec.rb b/spec/commands/init_spec.rb
index abcdd6ab92..0441e62e13 100644
--- a/spec/commands/init_spec.rb
+++ b/spec/commands/init_spec.rb
@@ -47,7 +47,7 @@ RSpec.describe "bundle init" do
end
end
- context "given --gemspec option" do
+ context "given --gemspec option", :bundler => "< 2" do
let(:spec_file) { tmp.join("test.gemspec") }
it "should generate from an existing gemspec" do
@@ -116,7 +116,7 @@ RSpec.describe "bundle init" do
end
end
- context "given --gemspec option" do
+ context "given --gemspec option", :bundler => "< 2" do
let(:spec_file) { tmp.join("test.gemspec") }
before do