restpack-web 0.1.26 → 0.1.27

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,8 +12,6 @@ module RestPack
12
12
 
13
13
  raise "missing configuration" unless options[:core_domain] || options[:access_key]
14
14
 
15
- p "RestPack options: #{options}"
16
-
17
15
  @core_cache = RestPack::Core::Client::Cache.create(options[:core_domain], options[:access_key])
18
16
  end
19
17
 
@@ -21,13 +19,10 @@ module RestPack
21
19
  env[:restpack] ||= {}
22
20
  begin #TODO: GJ: cache should handle errors gracefully
23
21
  host = env["SERVER_NAME"]
24
- p "host: #{host}"
25
22
  env[:restpack][:host] = host
26
-
23
+
27
24
  channel = @core_cache.get_channel(host)
28
- p "channel: #{channel}"
29
25
  domain = channel.get_domain_by_host(host)
30
- p "domain: #{domain}"
31
26
 
32
27
  env[:restpack][:channel] = channel
33
28
  env[:restpack][:application] = domain.application
@@ -79,10 +74,5 @@ module RestPack
79
74
  env[:restpack][:application_domains] = domains
80
75
  end
81
76
  end
82
-
83
-
84
-
85
-
86
-
87
77
  end
88
78
  end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.26"
3
+ VERSION = "0.1.27"
4
4
  end
5
5
  end
data/lib/restpack-web.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  require 'restpack-web/version'
2
- require 'restpack-web/app'
2
+ require 'restpack-web/app'
3
+ require 'restpack-web/rails/controller'
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.26
4
+ version: 0.1.27
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: