api_recipes 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_recipes.rb +4 -3
- data/lib/api_recipes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6c660a507389c702d45be8f603b3836aa36173a71e74d0def460c7827b4e20
|
4
|
+
data.tar.gz: 69573a634db4da03e59902f147cd725a1035ddf7ba6f082b215943fddc784582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bfb47fbd9ac54c246068a42f768bdbfd9382ad2604d403c4ff1ffbae8d925136020b8fee18e39c0200dcc4ec2bfe3cb92fc594e2c4a6f8a8ef3d22bc6260c07
|
7
|
+
data.tar.gz: 42e766ed0288f8487a0645006d5d054f072884043e563f9e0e89aaf670d02223efff7c790d028991655674e47151e12da9c725668914f5356b32586ac3e2dce4
|
data/lib/api_recipes.rb
CHANGED
@@ -42,16 +42,17 @@ module ApiRecipes
|
|
42
42
|
def self._aprcps_define_global_endpoints
|
43
43
|
configuration.endpoints_configs.each do |endpoint_name, endpoint_configs|
|
44
44
|
unless method_defined? endpoint_name
|
45
|
-
unless _aprcps_storage[endpoint_name]
|
46
|
-
_aprcps_storage[endpoint_name] = Endpoint.new endpoint_name, endpoint_configs
|
47
|
-
end
|
48
45
|
define_singleton_method endpoint_name do
|
46
|
+
unless _aprcps_storage[endpoint_name]
|
47
|
+
_aprcps_storage[endpoint_name] = Endpoint.new endpoint_name, endpoint_configs
|
48
|
+
end
|
49
49
|
_aprcps_storage[endpoint_name]
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
|
55
56
|
def self._aprcps_storage
|
56
57
|
unless Thread.current[:api_recipes]
|
57
58
|
Thread.current[:api_recipes] = {}
|
data/lib/api_recipes/version.rb
CHANGED