ft_gem 3.0.8 → 3.0.9

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: 4d22871290e12fb14c621ae222de3500796389f2a56fd91ac46dfe7ffe8c20af
4
- data.tar.gz: f129a502bb305a943a5de0ea1f43879c9ef049d85191910424f5dff29f52f053
3
+ metadata.gz: 58fbec10bcb730b69f3f8f4289ec9eb5f21437f47cc545bd2050616c19e66d19
4
+ data.tar.gz: 27096da6d9084cdcfa3a6f86ef891d1d01684a37d513019a72f653ce526365ab
5
5
  SHA512:
6
- metadata.gz: 4ffa06bbb1a1c7cf663b60708c6e0a27677c7865eeb3f623a47be2cc465cb9f623995523122c5cb5488fe30739e96a856efa48c38c531a1810189bb711707896
7
- data.tar.gz: dd5a39000125c3d15b598f5ac2dd65c22578b031459f16214301af66ff5edfa4d3ab375e0c5029e2e9d0fa6054cfd72dad517083a8f40713d03f83e8a530ae8f
6
+ metadata.gz: 968d5f9103a0ef28d7e2bc7adeca1a88735de32726802eb27fd00d8fa97b3d386424a599dc6e9b64d8f6c621654e701a371f0564d3157eb4102473ff4e293a0b
7
+ data.tar.gz: 718da1efc3697fbc481792eb7bc2d5d3ca335db5bf2eab24a4f0ec9f27351cbc35df2b81ad1b8d5b6ae6d2aceb1c887b862cdba4d2b7e4b193e456037e188ff6
@@ -1,7 +1,7 @@
1
1
  class FtShared
2
2
  def fetch(name:)
3
3
  Rails.cache.fetch("feature-toggle-#{name}", expires_in: 1.minute) do
4
- JSON.parse(HTTParty.get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/status", {query: { name: name },headers:authentication_header}).to_s)['data']
4
+ JSON.parse(HTTParty.get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/status", {query: { name: name },headers:authentication_header}).to_json)['data']
5
5
  end
6
6
  rescue StandardError => e
7
7
  Rails.logger.error "FtHelper::fetch error #{e.backtrace}"
@@ -10,7 +10,7 @@ class FtShared
10
10
 
11
11
  def all_toggles
12
12
  Rails.cache.fetch('all-feature-toggles', expires_in: 1.minute) do
13
- JSON.parse(HTTParty.get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/",{headers:authentication_header}).to_s)['data']
13
+ JSON.parse(HTTParty.get("#{ENV['SITE_URL']}/service/ft/api/v1/feature-toggles/",{headers:authentication_header}).to_json)['data']
14
14
  end
15
15
  rescue StandardError => e
16
16
  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.8
4
+ version: 3.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto