flipper-cloud 0.16.1 → 0.19.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 +5 -5
- data/flipper-cloud.gemspec +0 -1
- data/lib/flipper/cloud/configuration.rb +4 -0
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/cloud/configuration_spec.rb +5 -0
- data/spec/flipper/cloud_spec.rb +8 -0
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ebdf8b29d3d86554ff8dbd738fd5db46e2dbcd0ba9d38dd49034e0f8edaf53df
|
4
|
+
data.tar.gz: fe909fb2d4f21488ff0ad6db407a3936bbb7ca7df0c37b039e75fe960e67f846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c191a3745be5f3155e38607d90d01fbd780581544cb57dc7b0e0a8d7363447e8ef73451f30fc44d68ba1948aff1be46c64dab8dbb7e990545a873d85522d1a
|
7
|
+
data.tar.gz: 8b5072a46b285d9240ee7d3b65f137acd6de37fb1c920cfe6f5f0f9fd794f7da73d36f8e407214a37825f3c60a519931c626d622c9136147ce5bbd6721883573
|
data/flipper-cloud.gemspec
CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.authors = ['John Nunemaker']
|
11
11
|
gem.email = ['nunemaker@gmail.com']
|
12
12
|
gem.summary = 'FeatureFlipper.com adapter for Flipper'
|
13
|
-
gem.description = 'FeatureFlipper.com adapter for Flipper'
|
14
13
|
gem.license = 'MIT'
|
15
14
|
gem.homepage = 'https://github.com/jnunemaker/flipper'
|
16
15
|
|
@@ -22,6 +22,9 @@ module Flipper
|
|
22
22
|
# Public: net/http open timeout for all http requests (default: 5).
|
23
23
|
attr_accessor :open_timeout
|
24
24
|
|
25
|
+
# Public: net/http write timeout for all http requests (default: 5).
|
26
|
+
attr_accessor :write_timeout
|
27
|
+
|
25
28
|
# Public: IO stream to send debug output too. Off by default.
|
26
29
|
#
|
27
30
|
# # for example, this would send all http request information to STDOUT
|
@@ -55,6 +58,7 @@ module Flipper
|
|
55
58
|
@instrumenter = options.fetch(:instrumenter, Instrumenters::Noop)
|
56
59
|
@read_timeout = options.fetch(:read_timeout, 5)
|
57
60
|
@open_timeout = options.fetch(:open_timeout, 5)
|
61
|
+
@write_timeout = options.fetch(:write_timeout, 5)
|
58
62
|
@sync_interval = options.fetch(:sync_interval, 10)
|
59
63
|
@local_adapter = options.fetch(:local_adapter) { Adapters::Memory.new }
|
60
64
|
@debug_output = options[:debug_output]
|
data/lib/flipper/version.rb
CHANGED
@@ -28,6 +28,11 @@ RSpec.describe Flipper::Cloud::Configuration do
|
|
28
28
|
expect(instance.open_timeout).to eq(5)
|
29
29
|
end
|
30
30
|
|
31
|
+
it "can set write_timeout" do
|
32
|
+
instance = described_class.new(required_options.merge(write_timeout: 5))
|
33
|
+
expect(instance.write_timeout).to eq(5)
|
34
|
+
end
|
35
|
+
|
31
36
|
it "can set sync_interval" do
|
32
37
|
instance = described_class.new(required_options.merge(sync_interval: 1))
|
33
38
|
expect(instance.sync_interval).to eq(1)
|
data/spec/flipper/cloud_spec.rb
CHANGED
@@ -96,4 +96,12 @@ RSpec.describe Flipper::Cloud do
|
|
96
96
|
.with(hash_including(open_timeout: 1))
|
97
97
|
described_class.new('asdf', open_timeout: 1)
|
98
98
|
end
|
99
|
+
|
100
|
+
if RUBY_VERSION >= '2.6.0'
|
101
|
+
it 'can set write_timeout' do
|
102
|
+
expect(Flipper::Adapters::Http::Client).to receive(:new)
|
103
|
+
.with(hash_including(open_timeout: 1))
|
104
|
+
described_class.new('asdf', open_timeout: 1)
|
105
|
+
end
|
106
|
+
end
|
99
107
|
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.
|
4
|
+
version: 0.19.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:
|
11
|
+
date: 2020-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flipper
|
@@ -16,15 +16,15 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.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.
|
27
|
-
description:
|
26
|
+
version: 0.19.0
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- nunemaker@gmail.com
|
30
30
|
executables: []
|
@@ -62,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
|
66
|
-
rubygems_version: 2.4.5.4
|
65
|
+
rubygems_version: 3.0.3
|
67
66
|
signing_key:
|
68
67
|
specification_version: 4
|
69
68
|
summary: FeatureFlipper.com adapter for Flipper
|