sssmoke 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/sssmoke +9 -1
  2. data/lib/sssmoke/version.rb +1 -1
  3. metadata +1 -2
  4. data/config.ru +0 -16
@@ -1,4 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
+ require 'sinatra'
2
3
 
3
- exec 'rackup'
4
+ set :views, Dir.pwd
4
5
 
6
+ get '/' do
7
+ erb :index
8
+ end
9
+
10
+ get '/:page' do |page|
11
+ erb page.to_sym
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Sssmoke
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sssmoke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -57,7 +57,6 @@ files:
57
57
  - README.md
58
58
  - Rakefile
59
59
  - bin/sssmoke
60
- - config.ru
61
60
  - index.erb
62
61
  - lib/sssmoke.rb
63
62
  - lib/sssmoke/version.rb
data/config.ru DELETED
@@ -1,16 +0,0 @@
1
- # my_app.rb
2
- require 'sinatra/base'
3
-
4
- class Frontend < Sinatra::Base
5
- set :views, settings.root
6
-
7
- get '/' do
8
- erb :index
9
- end
10
-
11
- get '/:page' do |page|
12
- erb page.to_sym
13
- end
14
- end
15
-
16
- run Frontend