flipper-cloud 0.13.0 → 0.14.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24cde6e1e2aacceb9aed8c8154c9d48be2c7c594
|
4
|
+
data.tar.gz: 421f3876406f2f4502e690fad56e531c4c7ee142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb7a3e043e48c6104f7d67628d400f22576ec8405ca79072fc43c6f6640178a289abd80d546fda6bd67efd40f0768acc479352f3fb5c659353caaaa95459ccfa
|
7
|
+
data.tar.gz: a9b468da4f4d6b75336f0c57710c11bc0d502f5b9a77beb4c7e63ebf29630d875dedc5d8f7c54d836fc330eadf9f9ad834266cc8b3a284195656870da9cb2593
|
@@ -47,8 +47,8 @@ module Flipper
|
|
47
47
|
# configuration.local_adapter = Flipper::Adapters::ActiveRecord.new
|
48
48
|
attr_accessor :local_adapter
|
49
49
|
|
50
|
-
# Public:
|
51
|
-
# sync with cloud (default:
|
50
|
+
# Public: The Integer or Float number of seconds between attempts to bring
|
51
|
+
# the local in sync with cloud (default: 10).
|
52
52
|
attr_accessor :sync_interval
|
53
53
|
|
54
54
|
def initialize(options = {})
|
@@ -56,7 +56,7 @@ module Flipper
|
|
56
56
|
@instrumenter = options.fetch(:instrumenter, Instrumenters::Noop)
|
57
57
|
@read_timeout = options.fetch(:read_timeout, 5)
|
58
58
|
@open_timeout = options.fetch(:open_timeout, 5)
|
59
|
-
@sync_interval = options.fetch(:sync_interval,
|
59
|
+
@sync_interval = options.fetch(:sync_interval, 10)
|
60
60
|
@local_adapter = options.fetch(:local_adapter) { Adapters::Memory.new }
|
61
61
|
@debug_output = options[:debug_output]
|
62
62
|
@adapter_block = ->(adapter) { adapter }
|
data/lib/flipper/version.rb
CHANGED
@@ -29,16 +29,16 @@ RSpec.describe Flipper::Cloud::Configuration do
|
|
29
29
|
end
|
30
30
|
|
31
31
|
it "can set sync_interval" do
|
32
|
-
instance = described_class.new(required_options.merge(sync_interval:
|
33
|
-
expect(instance.sync_interval).to eq(
|
32
|
+
instance = described_class.new(required_options.merge(sync_interval: 1))
|
33
|
+
expect(instance.sync_interval).to eq(1)
|
34
34
|
end
|
35
35
|
|
36
36
|
it "passes sync_interval into sync adapter" do
|
37
37
|
# The initial sync of http to local invokes this web request.
|
38
38
|
stub_request(:get, /featureflipper\.com/).to_return(status: 200, body: "{}")
|
39
39
|
|
40
|
-
instance = described_class.new(required_options.merge(sync_interval:
|
41
|
-
expect(instance.adapter.synchronizer.interval).to be(
|
40
|
+
instance = described_class.new(required_options.merge(sync_interval: 1))
|
41
|
+
expect(instance.adapter.synchronizer.interval).to be(1)
|
42
42
|
end
|
43
43
|
|
44
44
|
it "can set debug_output" do
|
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.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-27 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.
|
19
|
+
version: 0.14.0
|
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
|
+
version: 0.14.0
|
27
27
|
description: FeatureFlipper.com adapter for Flipper
|
28
28
|
email:
|
29
29
|
- nunemaker@gmail.com
|