unleash 3.2.2 → 3.2.5

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: da9995687fc28b71318711bd1575d9f5493fb9514cc3f276966323e4a73e15f8
4
- data.tar.gz: e4a29a197e0faeaeaf093bb5a67103ed36aba352facf9633a6845739b17ff58c
3
+ metadata.gz: f1535ef477a380d94767952c3d4a660ab029bf78100f7d30246ff211517172f2
4
+ data.tar.gz: b357d2bda18a9b1378988d4467b78cbe02129b519578272da7fd0259cada97d0
5
5
  SHA512:
6
- metadata.gz: a7831894183515cbe05fb10520542b93d8a8cd521eab6ff33e9c7a4f88540519b479a76fb360a085b4f1ee059be1d03d0b531eb0daa4ff3db0147380b6f5db52
7
- data.tar.gz: 93ce839564b8ef8af502ca148bd3e369f5463d32cd42af1d947be5d751dda88c52d8da71ee5a456658de899afe7fff159655f7f8579cf8030c81ff62655f1804
6
+ metadata.gz: e1fe0ae8b8ff86fdbe3c0d9a68b0d559112a9d568bcb8762f946d191b33ee8bdcd25bad63983d6b507269534309690fc2f858c5989b287004e5df2a3b8755e36
7
+ data.tar.gz: 8e05aeb05427eaa6e0391703aa524902c3094be21c176a374093ec5263b2a2fcc4b9bce4ab2fb9627d18ecf822dfbd1f8cfecaaba8a9517ae96f9efd687ab1a8
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /vendor
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
data/README.md CHANGED
@@ -21,7 +21,7 @@ Leverage the [Unleash Server](https://github.com/Unleash/unleash) for powerful f
21
21
  Add this line to your application's Gemfile:
22
22
 
23
23
  ```ruby
24
- gem 'unleash', '~> 3.2.2'
24
+ gem 'unleash', '~> 3.2.5'
25
25
  ```
26
26
 
27
27
  And then execute:
data/examples/simple.rb CHANGED
@@ -17,13 +17,13 @@ puts ">> START simple.rb"
17
17
  # or:
18
18
 
19
19
  @unleash = Unleash::Client.new(
20
- url: 'http://unleash.herokuapp.com/api',
20
+ url: 'https://app.unleash-hosted.com/demo/api',
21
21
  app_name: 'simple-test',
22
22
  instance_id: 'local-test-cli',
23
23
  refresh_interval: 2,
24
24
  metrics_interval: 2,
25
25
  retry_limit: 2,
26
- log_level: Logger::DEBUG
26
+ custom_http_headers: {'Authorization': '943ca9171e2c884c545c5d82417a655fb77cec970cc3b78a8ff87f4406b495d0'},
27
27
  )
28
28
 
29
29
  # feature_name = "AwesomeFeature"
@@ -60,7 +60,7 @@ module Unleash
60
60
  Unleash.logger.debug "Unleash::Client.get_variant for feature: #{feature} with context #{context}"
61
61
 
62
62
  if Unleash.configuration.disable_client
63
- Unleash.logger.debug "unleash_client is disabled! Always returning #{default_variant} for feature #{feature}!"
63
+ Unleash.logger.debug "unleash_client is disabled! Always returning #{fallback_variant} for feature #{feature}!"
64
64
  return fallback_variant || Unleash::FeatureToggle.disabled_variant
65
65
  end
66
66
 
@@ -78,8 +78,8 @@ module Unleash
78
78
  self.instance_id = SecureRandom.uuid
79
79
  self.disable_client = false
80
80
  self.disable_metrics = false
81
- self.refresh_interval = 15
82
- self.metrics_interval = 10
81
+ self.refresh_interval = 10
82
+ self.metrics_interval = 30
83
83
  self.timeout = 30
84
84
  self.retry_limit = 1
85
85
  self.backup_file = nil
@@ -48,7 +48,7 @@ module Unleash
48
48
  self.etag = response['ETag']
49
49
  response_hash = JSON.parse(response.body)
50
50
 
51
- if response_hash['version'] == 1
51
+ if response_hash['version'] >= 1
52
52
  features = response_hash['features']
53
53
  else
54
54
  raise NotImplemented, "Version of features provided by unleash server" \
@@ -1,3 +1,3 @@
1
1
  module Unleash
2
- VERSION = "3.2.2".freeze
2
+ VERSION = "3.2.5".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unleash
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renato Arruda
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 2021-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: murmurhash3
@@ -175,7 +175,7 @@ homepage: https://github.com/unleash/unleash-client-ruby
175
175
  licenses:
176
176
  - Apache-2.0
177
177
  metadata: {}
178
- post_install_message:
178
+ post_install_message:
179
179
  rdoc_options: []
180
180
  require_paths:
181
181
  - lib
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubygems_version: 3.2.3
194
- signing_key:
194
+ signing_key:
195
195
  specification_version: 4
196
196
  summary: Unleash feature toggle client.
197
197
  test_files: []