ft_gem 3.0.4 → 3.0.5

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: b7dfadb7d33cb5aab88f64db606b2449d28ff73441bb6da4c411e6444699a1f7
4
- data.tar.gz: ca94db65bb3d3877918b09d24565290105d371539c28f919003de2ce2dee8628
3
+ metadata.gz: 68bdb58cfef614b3853118221d9825607a21b8c63a9b26b2e5040458ec960bf3
4
+ data.tar.gz: 17a71e2f5035a2d69a447f28c3cd202d0ab8f5259115f67333c1b3110e2bd040
5
5
  SHA512:
6
- metadata.gz: 91b7cdd50948cb3da68817381db6e01afb0df3d3acc8437e26c8d9db06d9358a79af4f3f97b4c7aee5b6d0a06f020db72dd4ce0f9cf524ce7ea337ff05608a89
7
- data.tar.gz: e432b4e04d564231402a6c5c17bd3e606a6c306b7f78d80153dbb6c958a0fa4192fac32e869ac719a38c798250770838109edd269446a4d292dbb6b54c8e114c
6
+ metadata.gz: 612aa07bb3a986bf68397a5c47418ef138df30aec281a33565fa1419bc964862811c23209a8aab3e14b21a8c60f9d7806ff72485aac50457e2a927c40a5fbe53
7
+ data.tar.gz: 7eaa9d57cc4f58b45e34747f177203f40fdb2426e3797e8fe88b76be069f4357edd2c3a6216c2cc97ea42f97a66052d76cbcb4fa19c92593da52ecb7c4ec1095
@@ -2,7 +2,7 @@ module FtShared
2
2
  class <<self
3
3
  def fetch(name:)
4
4
  Rails.cache.fetch("feature-toggle-#{name}", expires_in: 1.minute) do
5
- JSON.parse(HTTP.timeout(1).headers(authentication_header).get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/status", params: { name: name }).body.to_s)['data']
5
+ JSON.parse(HTTP.headers(authentication_header).get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/status", params: { name: name }).body.to_s)['data']
6
6
  end
7
7
  rescue StandardError => e
8
8
  Rails.logger.error "FtHelper::fetch error #{e.backtrace}"
@@ -11,7 +11,7 @@ module FtShared
11
11
 
12
12
  def all_toggles
13
13
  Rails.cache.fetch('all-feature-toggles', expires_in: 1.minute) do
14
- JSON.parse(HTTP.timeout(1).headers(authentication_header).get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/"))['data']
14
+ JSON.parse(HTTP.headers(authentication_header).get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/"))['data']
15
15
  end
16
16
  rescue StandardError => e
17
17
  Rails.logger.error "FtHelper::all_toggles error #{e.backtrace}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ft_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto