restpack-web 0.1.27 → 0.1.28

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,17 @@
1
+ module RestPack
2
+ module Rails
3
+ module Controller
4
+ def self.included(base)
5
+ base.send(:before_filter, :include_restpack)
6
+ end
7
+
8
+ def include_restpack
9
+ @restpack = request.env[:restpack]
10
+ @domain = @restpack[:domain]
11
+ @application = @restpack[:application]
12
+ @channel = @restpack[:channel]
13
+ @user = @restpack[:user]
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.27"
3
+ VERSION = "0.1.28"
4
4
  end
5
5
  end
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.27
4
+ version: 0.1.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -88,6 +88,7 @@ files:
88
88
  - Rakefile
89
89
  - lib/restpack-web.rb
90
90
  - lib/restpack-web/app.rb
91
+ - lib/restpack-web/rails/controller.rb
91
92
  - lib/restpack-web/version.rb
92
93
  - restpack-web.gemspec
93
94
  - spec/restpack_web_spec.rb