examples/simple.rb in unleash-3.2.5 vs examples/simple.rb in unleash-4.0.0
- old
+ new
@@ -5,26 +5,27 @@
puts ">> START simple.rb"
# Unleash.configure do |config|
# config.url = 'http://unleash.herokuapp.com/api'
+# config.custom_http_headers = { 'Authorization': '943ca9171e2c884c545c5d82417a655fb77cec970cc3b78a8ff87f4406b495d0' }
# config.app_name = 'simple-test'
# config.refresh_interval = 2
# config.metrics_interval = 2
# config.retry_limit = 2
# end
# @unleash = Unleash::Client.new
# or:
@unleash = Unleash::Client.new(
- url: 'https://app.unleash-hosted.com/demo/api',
+ url: 'http://unleash.herokuapp.com/api',
+ custom_http_headers: { 'Authorization': '943ca9171e2c884c545c5d82417a655fb77cec970cc3b78a8ff87f4406b495d0' },
app_name: 'simple-test',
instance_id: 'local-test-cli',
refresh_interval: 2,
metrics_interval: 2,
- retry_limit: 2,
- custom_http_headers: {'Authorization': '943ca9171e2c884c545c5d82417a655fb77cec970cc3b78a8ff87f4406b495d0'},
+ retry_limit: 2
)
# feature_name = "AwesomeFeature"
feature_name = "4343443"
unleash_context = Unleash::Context.new