sinatra-pages 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.markdown +13 -13
  2. metadata +1 -1
data/README.markdown CHANGED
@@ -4,7 +4,7 @@ This is a [Sinatra Extension][1] that renders any page located under the *views/
4
4
  ### Installation
5
5
  In order to install this gem, you just need to install the gem from your command line like this:
6
6
 
7
- $sudo gem install sinatra-pages
7
+ $sudo gem install sinatra-pages
8
8
 
9
9
  You should take into account that this library have the following dependencies:
10
10
 
@@ -14,25 +14,25 @@ You should take into account that this library have the following dependencies:
14
14
  ### Usage
15
15
  Before plug in this extension, you should create the following file structure inside your application.
16
16
 
17
- app/
18
- |- config.ru
19
- |- views/
20
- |- home.haml
21
- |- layout.haml
22
- |- not_found.haml
17
+ app/
18
+ |- config.ru
19
+ |- views/
20
+ |- home.haml
21
+ |- layout.haml
22
+ |- not_found.haml
23
23
 
24
24
  Then, you just need to plug it in inside your *config.ru* file.
25
25
 
26
- require 'sinatra'
27
- require 'sinatra/pages'
26
+ require 'sinatra'
27
+ require 'sinatra/pages'
28
28
 
29
- map '/' do
30
- run Sinatra::Pages
31
- end
29
+ map '/' do
30
+ run Sinatra::Pages
31
+ end
32
32
 
33
33
  Finally, you should test your application by executing the following command on your command line.
34
34
 
35
- $app/rackup config.ru
35
+ $app/rackup config.ru
36
36
 
37
37
  In order to verify if you application is working, open your web browser with the address that will appear after the execution described above.
38
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Javier Cicchelli