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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1a717f260611d80b88a09d2c79ed3adff7dc9cb
4
- data.tar.gz: 8f1955994f64a5b072224966dadcc11838f0ed50
3
+ metadata.gz: d8f25c6d2b3445aa4fafd86cf08cf766721be9e0
4
+ data.tar.gz: 582b0cca1c9b5bfbda450c1a59b3114f9f07e443
5
5
  SHA512:
6
- metadata.gz: 54399ef7a7039deff285a647b6d64c36a0b18c8f8208a3798bdabba255e1eea7673775255974efa70e4098bd170118d0fe1ae6e16266c2fc1485467d637218b1
7
- data.tar.gz: 9b562157b7cb48c8dc6b1c67506b210947afc75ba7d94e09fae33e8f000f15c5b23d984ac48bc30cb4188667f17133d708003daf01df723527346cf6978fc855
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
- proxy_module = Module.new
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
- Object.const_set module_name.capitalize, proxy_module
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)
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Service
3
- VERSION = "0.0.40"
3
+ VERSION = "0.0.41"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce