restpack-web 0.1.48 → 0.1.50

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module RestPack
29
29
  env[:restpack][:application] = domain.application
30
30
  env[:restpack][:domain] = domain
31
31
  env[:restpack][:configurations] = @core_cache.configurations
32
- env[:restpack][:services] = @core_cache.services
32
+ env[:restpack][:services] = @core_cache.get_configuration_value('services', [])
33
33
 
34
34
  add_user env
35
35
 
@@ -23,6 +23,10 @@ module RestPack
23
23
  def is_authenticated?
24
24
  @user.present?
25
25
  end
26
+
27
+ def get_service(name)
28
+ @services.find { |s| s.name == name.to_s }
29
+ end
26
30
 
27
31
  def home_domain
28
32
  @application.home_domain || "www.#{root_domain}"
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.48"
3
+ VERSION = "0.1.50"
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.48
4
+ version: 0.1.50
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: