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 +4 -4
- data/lib/ft_gem/controllers/helpers.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d0cac9f684fdf3498e1595711000f5aead7150b01839bc82b098287bd3a17d8
|
4
|
+
data.tar.gz: 4fbb772d8412d1aecaeecb52c2be5a153014448da8f3fa5e43144a620c57b515
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|