togglr-sdk 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ce77fe1dca77a6a4840f6a9b7494259a6119890f06658f48f1799522fe68a11
4
- data.tar.gz: f6a5983a3162431cdd6a28f6b167c503f75bf6ded57a50150d39da6c98ba205c
3
+ metadata.gz: 7118d53fbaa99402e2608cb3d578bad7857e84733a40422587ccdfe77f0a949a
4
+ data.tar.gz: 5a82d84d5bae9a2d155886fe7ccf2f5b586ffc96b360e92981fbf3bebb5bf374
5
5
  SHA512:
6
- metadata.gz: 7cbd5ebbb7b93e9d34786b85da6197e313a09d3597b67a27122fd14a064c07746ac960106260ae6ff402dffceabb63d10e1485ba76a0893b0842995c03fc90a2
7
- data.tar.gz: 1a5bc74155bed8a7998df7cac99269918f562a132e7298152a2c248ccc1d1ccd70d1f096b78e4254238bd782cd622362d0284876b100f80ed85ad0681cdc56ed
6
+ metadata.gz: 2eb7c4cd3fb86962e390ae4aa68f1f83541f29e26f263c518f263f9db30017fd2af44f1b5359f51aa4f3cf485a187eb6b77c050f6c37f0715419d70d3239d443
7
+ data.tar.gz: 75690626b692e42b4aff885dc914360bdfd6b9979464fdd1dd2284009c4b638b988124888aa29610c1d05cd82fbd33d0a2228ad7b077d633007203e10c0e92d5
data/lib/togglr/client.rb CHANGED
@@ -239,15 +239,15 @@ module Togglr
239
239
  private
240
240
 
241
241
  def convert_feature_health(api_health)
242
- FeatureHealth.new(
243
- feature_key: api_health.feature_key,
244
- environment_key: api_health.environment_key,
245
- enabled: api_health.enabled || false,
246
- auto_disabled: api_health.auto_disabled || false,
247
- error_rate: api_health.error_rate || 0,
248
- threshold: api_health.threshold || 0,
249
- last_error_at: api_health.last_error_at
250
- )
242
+ FeatureHealth.new({
243
+ 'feature_key' => api_health.feature_key,
244
+ 'environment_key' => api_health.environment_key,
245
+ 'enabled' => api_health.enabled,
246
+ 'auto_disabled' => api_health.auto_disabled,
247
+ 'error_rate' => api_health.error_rate,
248
+ 'threshold' => api_health.threshold,
249
+ 'last_error_at' => api_health.last_error_at
250
+ })
251
251
  end
252
252
  end
253
253
  end
@@ -1,3 +1,3 @@
1
1
  module Togglr
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: togglr-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman