restpack-web 0.1.20 → 0.1.21
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.
- data/lib/restpack-web/app.rb +7 -1
- data/lib/restpack-web/version.rb +1 -1
- metadata +2 -2
data/lib/restpack-web/app.rb
CHANGED
@@ -10,6 +10,8 @@ module RestPack
|
|
10
10
|
options[:core_domain] ||= ENV['RESTPACK_CORE_SERVICE']
|
11
11
|
options[:access_key] ||= ENV['RESTPACK_ACCESS_KEY']
|
12
12
|
|
13
|
+
p "RestPack options: #{options}"
|
14
|
+
|
13
15
|
@core_cache = RestPack::Core::Client::Cache.create(options[:core_domain], options[:access_key])
|
14
16
|
end
|
15
17
|
|
@@ -17,10 +19,13 @@ module RestPack
|
|
17
19
|
env[:restpack] ||= {}
|
18
20
|
begin #TODO: GJ: cache should handle errors gracefully
|
19
21
|
host = env["SERVER_NAME"]
|
22
|
+
p "host: #{host}"
|
20
23
|
env[:restpack][:host] = host
|
21
24
|
|
22
25
|
channel = @core_cache.get_channel(host)
|
26
|
+
p "channel: #{channel}"
|
23
27
|
domain = channel.get_domain_by_host(host)
|
28
|
+
p "domain: #{domain}"
|
24
29
|
|
25
30
|
env[:restpack][:channel] = channel
|
26
31
|
env[:restpack][:application] = domain.application
|
@@ -32,7 +37,8 @@ module RestPack
|
|
32
37
|
|
33
38
|
rescue Exception => e
|
34
39
|
p "---"
|
35
|
-
p e.message
|
40
|
+
p e.message
|
41
|
+
p "===="
|
36
42
|
p e.backtrace.inspect
|
37
43
|
p "---"
|
38
44
|
end
|
data/lib/restpack-web/version.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.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack-auto-session-domain
|