restpack-web 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/sinatra/app.rb +18 -0
- data/lib/restpack-web/version.rb +1 -1
- data/lib/restpack-web.rb +2 -1
- metadata +2 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
module RestPack
|
2
|
+
module Web
|
3
|
+
module Sinatra
|
4
|
+
module App
|
5
|
+
def self.included(base)
|
6
|
+
base.use RestPack::Web::App
|
7
|
+
base.use Rack::AutoSessionDomain
|
8
|
+
base.enable :sessions
|
9
|
+
base.set :session_secret, 'secret' #TODO: GJ: from restpack config
|
10
|
+
|
11
|
+
base.before do
|
12
|
+
@restpack = RestPack::Web::Context.new(env)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/restpack-web/version.rb
CHANGED
data/lib/restpack-web.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restpack-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.32
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- lib/restpack-web/app.rb
|
107
107
|
- lib/restpack-web/context.rb
|
108
108
|
- lib/restpack-web/rails/controller.rb
|
109
|
+
- lib/restpack-web/sinatra/app.rb
|
109
110
|
- lib/restpack-web/version.rb
|
110
111
|
- restpack-web.gemspec
|
111
112
|
- spec/restpack_web_spec.rb
|