ft_gem 3.2.1 → 3.2.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: 35400c0fa6a2f7640b62ae165101ed26afac0c10bcacdca9bc4d0adcef9b827b
4
- data.tar.gz: c34b83cdd99f07730de5c3942cd6bcbf21ad49b72d48160824ade5f9f6e80880
3
+ metadata.gz: 0a388bf5a96a2c5baec8e883e0438dbd0e7ec62f55fe37187e7e2c4034b25b58
4
+ data.tar.gz: e1d8d9f3ced0ec3429fc2ceae552a29f8ffee33ee88f760e6f0d2f7e313ed820
5
5
  SHA512:
6
- metadata.gz: 545f3a715845a5e452e6340d3d737fe23afb3843020490855c563a2e57a1e55802216ba9f05a312f2a709ee5e9ec5ee36d21aeba292f1414344afb64a6e8c4a4
7
- data.tar.gz: c3eaf501b6837dffd80b1fd2d2455b66da2571333259c2d16e53e45c5afe7cb6203f60b283372cd20fc53fba6b20e41a05a267bfd6998d11da7f1383799fe85b
6
+ metadata.gz: 329f36b475d2d6ada6f46e271f4808a06d0d93698f234b1e7d8c35919acf4bf2d39afd021f2e83350d9b20826e35154e18b14a4a8b672640123fdc4f984bccb4
7
+ data.tar.gz: 4bd56b5a27dee8f04b3fe4668f6b323f80258ba45e2d73a20e810afe25da44aca06fea7cfca5ee084dc91990ca9ac0df3e6126510bb443497e30067526c31d29
@@ -12,9 +12,10 @@ module FtGem
12
12
  return false if index.nil?
13
13
 
14
14
  whitelisted = FtShared.new.whitelisted?(url: url, whitelist_urls: toggles[index.to_i]['attributes']['whitelist-urls'])
15
+ return false unless whitelisted
15
16
 
16
- return true && whitelisted if FtGem::Services::BetaService.public_beta?(cookie: Base64.decode64(cookies[PUBLICBETA_COOKIE_NAME]),toggles: toggles, index: index)
17
- return true && whitelisted if FtGem::Services::BetaService.private_beta?(user_id: user_id, toggles: toggles, index: index)
17
+ return true if FtGem::Services::BetaService.public_beta?(cookie: "false",toggles: toggles, index: index)
18
+ return true if FtGem::Services::BetaService.private_beta?(user_id: user_id, toggles: toggles, index: index)
18
19
 
19
20
  update_feature_toggles(toggles: toggles)
20
21
  decoded_cookie = Base64.decode64(cookies[TOGGLE_COOKIE_NAME])
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.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto