flipper-cloud 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f846c7db09b2df8c65257c78965be8cfc0936b39
4
- data.tar.gz: efcbc426bf2c190a5da0b2fc8144862d535e6625
3
+ metadata.gz: 24cde6e1e2aacceb9aed8c8154c9d48be2c7c594
4
+ data.tar.gz: 421f3876406f2f4502e690fad56e531c4c7ee142
5
5
  SHA512:
6
- metadata.gz: ed91984a5cde4991d3194a747f2cc5be0d0e0ea5e8c9bac5e109408af4a5b83b4dbada8c18d33673df3805439b80ab341d9ba26b8dc4cd70c1f04c4758f1935f
7
- data.tar.gz: 61f69c7ad4210b411939ad7a7e68cbd9b2ab25c23980f01000f2717626a31e950c96ba3f6caa39cbb3fee0d3d71b22ced04d76ade3bc2a2ef8ead36a1db0c4ce
6
+ metadata.gz: cb7a3e043e48c6104f7d67628d400f22576ec8405ca79072fc43c6f6640178a289abd80d546fda6bd67efd40f0768acc479352f3fb5c659353caaaa95459ccfa
7
+ data.tar.gz: a9b468da4f4d6b75336f0c57710c11bc0d502f5b9a77beb4c7e63ebf29630d875dedc5d8f7c54d836fc330eadf9f9ad834266cc8b3a284195656870da9cb2593
@@ -22,7 +22,7 @@ Flipper.configure do |config|
22
22
  Flipper::Cloud.new(token) do |cloud|
23
23
  cloud.debug_output = STDOUT
24
24
  cloud.local_adapter = Flipper::Adapters::Redis.new(redis)
25
- cloud.sync_interval = 10_000
25
+ cloud.sync_interval = 10
26
26
  end
27
27
  end
28
28
  end
@@ -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: Number of milliseconds between attempts to bring the local in
51
- # sync with cloud (default: 10_000 aka 10 seconds).
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, 10_000)
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 }
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.13.0'.freeze
2
+ VERSION = '0.14.0'.freeze
3
3
  end
@@ -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: 1_000))
33
- expect(instance.sync_interval).to eq(1_000)
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: 1_000))
41
- expect(instance.adapter.synchronizer.interval).to be(1_000)
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.13.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-04 00:00:00.000000000 Z
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.13.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.13.0
26
+ version: 0.14.0
27
27
  description: FeatureFlipper.com adapter for Flipper
28
28
  email:
29
29
  - nunemaker@gmail.com