Sha256: 9a6d47484b08b79857d0cb34c04162b0188c393118eb5aed36c815dd6c6e9adf

Contents?: true

Size: 800 Bytes

Versions: 3

Compression:

Stored size: 800 Bytes

Contents

# Clean up the app a bit
run 'rm -r test'
run 'rm -r doc'
run 'rm -r README.rdoc'
run 'rm -r vendor'

# Add our eastwood dependency
gem 'eastwood'

# Mount the eastwood app
route "mount Eastwood::Engine => '/eastwood'"

# Create a couple of test routes
route "match '/foo'        => 'bar#baz', :as => 'match'"
route "match '/foo/:id'    => 'bar#baz', :as => 'match_with_segment'"

# Create the eastwood initializer
initializer 'eastwood.rb', <<-CODE
Eastwood.configure do |config|
  config.hash :home, '#/home'
  config.hash :user, '#/users/:id'
  config.hash :post, '#/users/:id/posts/:slug'

  config.path :about, '/about/:topic'

  config.url :google, 'http://www.google.com/search'

  config.export :string  => 'foo',
                :float   => 123.45,
                :boolean => true
end
CODE

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eastwood-0.5.1 spec/support/rails_template.rb
eastwood-0.5.0 spec/support/rails_template.rb
eastwood-0.4.0 spec/support/rails_template.rb