ft_gem 2.0.2 → 2.0.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: de21f3a4f9788e9978a4eb30017164a5cb6081bf5fac2def01bb6767be5f018d
4
- data.tar.gz: 4b5a6756df4f871cb3499fb74914dbd797451e35c90de1aa2eb6b72a3cfd3901
3
+ metadata.gz: 8d0cac9f684fdf3498e1595711000f5aead7150b01839bc82b098287bd3a17d8
4
+ data.tar.gz: 4fbb772d8412d1aecaeecb52c2be5a153014448da8f3fa5e43144a620c57b515
5
5
  SHA512:
6
- metadata.gz: bedea550528901f6c9087b3d33341073faba0185d823d3764d68b04edf809ab0a2578a7a0e89b6e7202d30b8256016ace4cba83b5b36779baea0918e751ed0b5
7
- data.tar.gz: 10f5f1c3a724a2f4ff133d346e3ff2c2e919c8a20c8fe3d42ba40b8a4a5a722c54a959704bc96bb6c8406caae19fd8b6251c9918cb666415470ebf7c3d19fffd
6
+ metadata.gz: 95b3070a5d1053a677151130c64f44f37a7d50ee2ade35d2c941991bf28fc747a0f33a22abb70cd1dc0453c153b3dc83877788219a691be7b9a9816b008f3c41
7
+ data.tar.gz: 92217f76fa5b30b852921bba82966b33a2d8c56b89334af037977d250cb83f1d78fa8d6781418add7a67286df456c833d92f3925319902aa170a24eb7bdd5c11
@@ -13,7 +13,7 @@ module FtGem
13
13
  client_percentage = toggles[index].split(' ')[1]
14
14
  toggle_percentage = toggles[index].split(' ')[2]
15
15
  client_percentage.to_i <= toggle_percentage.to_i
16
- rescue StandardError
16
+ rescue StandardError => e
17
17
  Rails.logger.error "FtGem::feature_toggle_status error #{e.backtrace}"
18
18
  false
19
19
  end
@@ -23,7 +23,7 @@ module FtGem
23
23
  toggle_percentage = data['feature_toggle']['toggle_percentage']
24
24
  client_percentage = data['feature_toggle']['client_percentage']
25
25
  cookies[TOGGLE_COOKIE_NAME] = "#{cookies[TOGGLE_COOKIE_NAME]}|#{name} #{client_percentage} #{toggle_percentage}"
26
- rescue StandardError
26
+ rescue StandardError => e
27
27
  Rails.logger.error "FtGem::add_feature_toggle error #{e.backtrace}"
28
28
  nil
29
29
  end
@@ -36,7 +36,7 @@ module FtGem
36
36
  client_percentage = toggles[index].split(' ')[1]
37
37
  toggles[index] = "#{name} #{client_percentage} #{toggle_percentage}"
38
38
  cookies[TOGGLE_COOKIE_NAME] = toggles.join('|')
39
- rescue StandardError
39
+ rescue StandardError => e
40
40
  Rails.logger.error "FTApiGem::update_feature_toggle error #{e.backtrace}"
41
41
  nil
42
42
  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: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto