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 +4 -4
- data/examples/cloud/threaded.rb +12 -0
- data/lib/flipper/cloud/configuration.rb +5 -1
- data/lib/flipper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237f86d236d564cb69735a00ad88c5d833b152f9e6f9a64bd50529ba2c39dd0d
|
4
|
+
data.tar.gz: 11e612037550a9e83b763d0d2c80d2f5191b4a52c9288f2f61e9dbf6640d38f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa1819e0815fe2ba4a3fad0be799664dce53d86abd66e729f9c14cc870061478718396b610ef0f3221f25334fa83a7d970d3059c09289fa3767b87efeef49be
|
7
|
+
data.tar.gz: ac5113e292581c9842154cdfed2ddbc3d23aa66934845a530aa59b8d2e08a765c057fd8b757cd1bd526a5f11946debb0ea6a69732939f4f79183e998f047e9de
|
data/examples/cloud/threaded.rb
CHANGED
@@ -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,
|
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
|
data/lib/flipper/version.rb
CHANGED
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.
|
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
|
+
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.
|
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.
|
26
|
+
version: 0.26.0.rc2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: brow
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|