Permalink
Browse files

add_development_dependency 'bundler'

  • Loading branch information...
1 parent 203c314 commit 30c673e27758e4da33cb977af5bbde2840afc057 slivu committed May 14, 2013
Showing with 9 additions and 17 deletions.
  1. +3 −0 Rakefile
  2. +4 −17 docs/Deploy.md
  3. +2 −0 e.gemspec
View
@@ -1,4 +1,5 @@
require 'rake'
+require 'bundler/gem_helper'
require './test/setup'
Dir['./test/**/test__*.rb'].each { |f| require f }
@@ -53,3 +54,5 @@ task :overhead do
require './test/overhead/run'
end
task default: :test
+
+Bundler::GemHelper.install_tasks
View
@@ -159,11 +159,10 @@ app = E.new(true)
this will automount `Pages` controller but not `News`
-## Roots
+## Mount Root
-To mount a controller/slice into a specific root, pass it as argument:
-
+To mount a controller/slice into a specific root, pass it as a `String`:
```ruby
module Forum
@@ -175,24 +174,12 @@ module Forum
end
end
-app = Forum.mount '/forum'
-app.run
-
-# or
-app = E.new
-app.mount Forum, '/forum'
-app.run
-```
-
-If controller/slice should serve multiple roots, pass them all as arguments:
-
-```ruby
-app = Forum.mount '/forum', '/Forums'
+app = Forum.mount('/forum')
app.run
# or
app = E.new
-app.mount Forum, '/forum', '/Forums'
+app.mount(Forum, '/forum')
app.run
```
View
@@ -15,6 +15,8 @@ Gem::Specification.new do |s|
s.add_dependency 'rack', '~> 1.5'
s.add_dependency 'tilt', '~> 1.3'
+
+ s.add_development_dependency 'bundler'
s.require_paths = ['lib']
s.files = Dir['**/{*,.[a-z]*}'].reject {|e| e =~ /\.(gem|lock)\Z/}

0 comments on commit 30c673e

Please sign in to comment.