restpack-web 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.31"
3
+ VERSION = "0.1.32"
4
4
  end
5
5
  end
data/lib/restpack-web.rb CHANGED
@@ -2,4 +2,5 @@ require 'restpack-web/version'
2
2
  require 'restpack-web/context'
3
3
  require 'restpack-web/app'
4
4
 
5
- require 'restpack-web/rails/controller'
5
+ require 'restpack-web/rails/controller'
6
+ require 'restpack-web/sinatra/app'
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.31
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