restpack_service 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restpack_service/loader.rb +8 -2
- data/lib/restpack_service/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8f25c6d2b3445aa4fafd86cf08cf766721be9e0
|
4
|
+
data.tar.gz: 582b0cca1c9b5bfbda450c1a59b3114f9f07e443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baa342c2c21a2efd04b61e0c1326bf103225bfd1aae350b174689f54972091691cf76d5af08a4abaa2bdd62d083fa0d4c6ba059128b603a88a867755cd130de4
|
7
|
+
data.tar.gz: 72ae6f22cfe27fa51bbd513865ef506160e2065895a733ce597151d17835f365941d25dace7a6d06985f9c5d704708f59d4a68c95b2a66d2f0046e2379a09a33
|
@@ -24,11 +24,17 @@ module RestPack::Service
|
|
24
24
|
|
25
25
|
def self.require_service_module(module_name, service_path, restpack_namespace)
|
26
26
|
require_all "#{service_path}/#{module_name.downcase}"
|
27
|
-
|
27
|
+
|
28
|
+
existing_proxy_module = Object.const_get(module_name.capitalize)
|
29
|
+
|
30
|
+
proxy_module = existing_proxy_module || Module.new
|
28
31
|
proxy_module.module_eval do
|
29
32
|
include Object.const_get("#{restpack_namespace}::Service::#{module_name.capitalize}")
|
30
33
|
end
|
31
|
-
|
34
|
+
|
35
|
+
unless existing_proxy_module
|
36
|
+
Object.const_set module_name.capitalize, proxy_module
|
37
|
+
end
|
32
38
|
end
|
33
39
|
|
34
40
|
def self.get_service_path(load_caller, restpack_service_name)
|