Skip to content

Commit

Permalink
Remove deprecated groups syntax
Browse files Browse the repository at this point in the history
Note that `group` syntax is still available. This gets removed because
it is not officially supported by Bundler.

Fix #83
  • Loading branch information
Prem Sichanugrist committed Mar 20, 2015
1 parent 493a3e4 commit ec731b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
10 changes: 0 additions & 10 deletions lib/appraisal/gemfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ def group(*names, &block)
@groups[names].run(&block)
end

# :nodoc:
def groups(*names, &block)
$stderr.puts <<-WARNING.gsub(/\n\s+/, " ").strip
Warning: `#groups` is deprecated and will be removed in 2.0.0.
Please use `#group` instead.
WARNING

group(*names, &block)
end

def platforms(*names, &block)
@platforms[names] ||= Platform.new(names)
@platforms[names].run(&block)
Expand Down
18 changes: 0 additions & 18 deletions spec/appraisal/gemfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,6 @@
GEMFILE
end

it 'supports groups syntax, but with deprecation warning' do
gemfile = Appraisal::Gemfile.new

warning = capture(:stderr) do
gemfile.groups :development, :test do
gem "one"
end
end

expect(gemfile.to_s).to eq <<-GEMFILE.strip_heredoc.strip
group :development, :test do
gem "one"
end
GEMFILE

expect(warning).to match(/deprecated/)
end

it 'supports platform syntax' do
gemfile = Appraisal::Gemfile.new

Expand Down

0 comments on commit ec731b5

Please sign in to comment.