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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41b256b43696edaa5735f827046946ee0ee438ec69fc90387cfc3c9a841828b8
4
- data.tar.gz: dcab748e71d294af415263f5e1c6a5c2c55374f782d34ec3e389069aaa132431
3
+ metadata.gz: 2f6c660a507389c702d45be8f603b3836aa36173a71e74d0def460c7827b4e20
4
+ data.tar.gz: 69573a634db4da03e59902f147cd725a1035ddf7ba6f082b215943fddc784582
5
5
  SHA512:
6
- metadata.gz: 42963a27d5644ea0e1b6afc22f393cfe5f9db95a8d2bfa83beffaeca7ee8bd59995c227c124b1ab0df059b950d175a74175fa05bde1c8a88f01b294c514bc4ba
7
- data.tar.gz: 0b5ea14d92e44fc67ea5b8af1d1debd654b43974c5b98c88c8ba45555567fb2980387a6fa5e2ed3dd9ff964b7981cd976c40005c65b3f51f6c181a60ac6f0607
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] = {}
@@ -1,3 +1,3 @@
1
1
  module ApiRecipes
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Verlato