ft_gem 3.2.2 → 3.2.3

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: 0a388bf5a96a2c5baec8e883e0438dbd0e7ec62f55fe37187e7e2c4034b25b58
4
- data.tar.gz: e1d8d9f3ced0ec3429fc2ceae552a29f8ffee33ee88f760e6f0d2f7e313ed820
3
+ metadata.gz: b333c05567a5be9cc6d934ba301abc34c0b20d71423b4c9bd74b2b4785b0f5ba
4
+ data.tar.gz: 67b80f508437e2ffaa342eefac5685091d684dc98662e2340fc98bdb80f61c24
5
5
  SHA512:
6
- metadata.gz: 329f36b475d2d6ada6f46e271f4808a06d0d93698f234b1e7d8c35919acf4bf2d39afd021f2e83350d9b20826e35154e18b14a4a8b672640123fdc4f984bccb4
7
- data.tar.gz: 4bd56b5a27dee8f04b3fe4668f6b323f80258ba45e2d73a20e810afe25da44aca06fea7cfca5ee084dc91990ca9ac0df3e6126510bb443497e30067526c31d29
6
+ metadata.gz: 7938240f6c14e58801e9ab5f5d2075db179e7655395a1592b700e45596ebac80c886df56279009e852918ea1a01ebcffe5471c0312cbafd8582092e3d60b5f26
7
+ data.tar.gz: 764fbf30382d7ca98d72c0427ea2c4f5f60fdcd2ef9b6dfa977c1e8cfeb56a44af208151cc239388e3973c878eac2b587bdd9e010da47ab7ee30e9f7a2f58c71
@@ -14,7 +14,7 @@ module FtGem
14
14
  whitelisted = FtShared.new.whitelisted?(url: url, whitelist_urls: toggles[index.to_i]['attributes']['whitelist-urls'])
15
15
  return false unless whitelisted
16
16
 
17
- return true if FtGem::Services::BetaService.public_beta?(cookie: "false",toggles: toggles, index: index)
17
+ return true if FtGem::Services::BetaService.public_beta?(cookie: cookies[PUBLICBETA_COOKIE_NAME], toggles: toggles, index: index)
18
18
  return true if FtGem::Services::BetaService.private_beta?(user_id: user_id, toggles: toggles, index: index)
19
19
 
20
20
  update_feature_toggles(toggles: toggles)
@@ -11,13 +11,13 @@ module FtGem
11
11
  attributes['status'] == "privatebeta" && attributes['beta-users'].split(",").include?(user_id.to_s)
12
12
  end
13
13
 
14
- def self.public_beta?(cookie: "", toggles: nil, index: "")
14
+ def self.public_beta?(cookie: nil, toggles: nil, index: "")
15
15
  return false unless toggles.present?
16
16
 
17
17
  attributes = toggles.dig(index.to_i, 'attributes')
18
18
 
19
19
  Rails.logger.info("########### PUBLIC BETA cookie: #{cookie}, status: #{attributes['status']} ################")
20
- attributes['status'] == "publicbeta" && cookie == "true"
20
+ attributes['status'] == "publicbeta" && cookie.present?
21
21
  end
22
22
  end
23
23
  end
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.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto