Method: Shoes.setup

Defined in:
shoes-core/lib/shoes/dsl/setup.rb

.setup(&block) ⇒ Object

Deprecated.

To ease the upgrade path from Shoes 3 we warn users they need to install and require gems themselves.

Examples:

Shoes.setup do
  # This runs, but gem doesn't do anything anymore!
  gem 'bluecloth =2.0.6'
  gem 'metaid'
end

Parameters:

  • block (Proc)

    The block that describes the gems that are needed



17
18
19
20
21
# File 'shoes-core/lib/shoes/dsl/setup.rb', line 17

def setup(&block)
  Shoes.logger.warn "The Shoes.setup method is deprecated, you need to install gems yourself.\n" \
                    "You can do this using the 'gem install' command or bundler and a Gemfile."
  DeprecatedShoesGemSetup.new.instance_eval(&block)
end