flipper-cloud 0.26.0.rc1 → 0.26.0.rc2

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: d9e4a729d720d4feabbe8a3f7f1f1c702e108e3809a63b306c89f0abfc6a8c8d
4
- data.tar.gz: 9d86849582da02516dcdc3552e38c380161014056b30404c241597d6af929bf3
3
+ metadata.gz: 237f86d236d564cb69735a00ad88c5d833b152f9e6f9a64bd50529ba2c39dd0d
4
+ data.tar.gz: 11e612037550a9e83b763d0d2c80d2f5191b4a52c9288f2f61e9dbf6640d38f5
5
5
  SHA512:
6
- metadata.gz: 66fc9ed14732f2c4d64aebfdc0e835ad064349f40f595bd13604f6f1b8f8843cc587cb3e9ab83b615f4e6667869c595516e6f737722781df41c09ad51135ea06
7
- data.tar.gz: 143fae6cb5e465e27971e59ced3c5e8059ac2bec561ddab55d4cd6d9efdacc4f158bf6a5cebc52aba131c75ca56264e856fdf502924e3a78624caf905c20b2f6
6
+ metadata.gz: caa1819e0815fe2ba4a3fad0be799664dce53d86abd66e729f9c14cc870061478718396b610ef0f3221f25334fa83a7d970d3059c09289fa3767b87efeef49be
7
+ data.tar.gz: ac5113e292581c9842154cdfed2ddbc3d23aa66934845a530aa59b8d2e08a765c057fd8b757cd1bd526a5f11946debb0ea6a69732939f4f79183e998f047e9de
@@ -4,6 +4,18 @@
4
4
  require_relative "./cloud_setup"
5
5
  require 'bundler/setup'
6
6
  require 'flipper/cloud'
7
+ require "active_support/notifications"
8
+ require "active_support/isolated_execution_state"
9
+
10
+ ActiveSupport::Notifications.subscribe(/poller\.flipper/) do |*args|
11
+ p args: args
12
+ end
13
+
14
+ Flipper.configure do |config|
15
+ config.default {
16
+ Flipper::Cloud.new(local_adapter: config.adapter, instrumenter: ActiveSupport::Notifications)
17
+ }
18
+ end
7
19
 
8
20
  # Check every second to see if the feature is enabled
9
21
  threads = []
@@ -164,7 +164,11 @@ module Flipper
164
164
  end
165
165
 
166
166
  def poller
167
- Flipper::Adapters::Poll::Poller.get(@url + @token, interval: sync_interval, remote_adapter: http_adapter).tap(&:start)
167
+ Flipper::Adapters::Poll::Poller.get(@url + @token, {
168
+ interval: sync_interval,
169
+ remote_adapter: http_adapter,
170
+ instrumenter: instrumenter,
171
+ }).tap(&:start)
168
172
  end
169
173
 
170
174
  def poll_adapter
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.26.0.rc1'.freeze
2
+ VERSION = '0.26.0.rc2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0.rc1
4
+ version: 0.26.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flipper
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.26.0.rc1
19
+ version: 0.26.0.rc2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.26.0.rc1
26
+ version: 0.26.0.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: brow
29
29
  requirement: !ruby/object:Gem::Requirement