restpack-web 0.1.1 → 0.1.2

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.
@@ -12,18 +12,18 @@ module RestPack
12
12
  end
13
13
 
14
14
  def call(env)
15
- env["restpack"] ||= {}
15
+ restpack = env[:restpack] ||= {}
16
16
  host = env["SERVER_NAME"]
17
17
 
18
- env["restpack"][:host] = host
18
+ restpack[:host] = host
19
19
  begin #TODO: GJ: cache should handle errors gracefully
20
20
  channel = @core_cache.get_channel(host)
21
21
  domain = channel.get_domain_by_identifier(host)
22
22
 
23
- env["restpack"][:channel] = channel
24
- env["restpack"][:application] = domain.application
25
- env["restpack"][:domain] = domain
26
- rescue Exception => e
23
+ restpack[:channel] = channel
24
+ restpack[:application] = domain.application
25
+ restpack[:domain] = domain
26
+ rescue Exception => e
27
27
  p e.message
28
28
  p e.backtrace.inspect
29
29
  end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: