flipper-cloud 0.24.0 → 0.25.1
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 +4 -4
- data/lib/flipper/cloud/configuration.rb +0 -9
- data/lib/flipper/cloud.rb +4 -10
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/cloud/middleware_spec.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e99c6ea7145a5bdc0446fba174af926f054a4aca04e9b0cc6009a33d8edb28e2
|
4
|
+
data.tar.gz: 1947b9f303453761afff3c6e23426d02e34b1d4d6b522086317650caea42a7cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df07c7b73f9dc18669292f4f0b31859b0e129f5f9a4047398f209d6d97d91c185e63c5e24653badd0dadb082ca93991c1984f3e29d6c7f99804d8d5cb445c283
|
7
|
+
data.tar.gz: 7147eec8d248cf86fce6e47f6a0155d37be62dd99dcd1abda3c1f27413d855a427468c1caa8f31ae93292d99b01cb327777f84e37f540a7a5ae0c44476964c1a
|
@@ -73,11 +73,6 @@ module Flipper
|
|
73
73
|
raise ArgumentError, "Flipper::Cloud token is missing. Please set FLIPPER_CLOUD_TOKEN or provide the token (e.g. Flipper::Cloud.new(token: 'token'))."
|
74
74
|
end
|
75
75
|
|
76
|
-
if ENV["FLIPPER_CLOUD_SYNC_METHOD"]
|
77
|
-
warn "FLIPPER_CLOUD_SYNC_METHOD is deprecated and has no effect."
|
78
|
-
end
|
79
|
-
self.sync_method = options[:sync_method] if options[:sync_method]
|
80
|
-
|
81
76
|
@read_timeout = options.fetch(:read_timeout) { ENV.fetch("FLIPPER_CLOUD_READ_TIMEOUT", 5).to_f }
|
82
77
|
@open_timeout = options.fetch(:open_timeout) { ENV.fetch("FLIPPER_CLOUD_OPEN_TIMEOUT", 5).to_f }
|
83
78
|
@write_timeout = options.fetch(:write_timeout) { ENV.fetch("FLIPPER_CLOUD_WRITE_TIMEOUT", 5).to_f }
|
@@ -152,10 +147,6 @@ module Flipper
|
|
152
147
|
sync_secret ? :webhook : :poll
|
153
148
|
end
|
154
149
|
|
155
|
-
def sync_method=(_)
|
156
|
-
warn "Flipper::Cloud: sync_method is deprecated and has no effect."
|
157
|
-
end
|
158
|
-
|
159
150
|
private
|
160
151
|
|
161
152
|
def app_adapter
|
data/lib/flipper/cloud.rb
CHANGED
@@ -15,14 +15,7 @@ module Flipper
|
|
15
15
|
# options - The Hash of options. See Flipper::Cloud::Configuration.
|
16
16
|
# block - The block that configuration will be yielded to allowing you to
|
17
17
|
# customize this cloud instance and its adapter.
|
18
|
-
def self.new(options = {}
|
19
|
-
if options.is_a?(String)
|
20
|
-
warn "`Flipper::Cloud.new(token)` is deprecated. Use `Flipper::Cloud.new(token: token)` " +
|
21
|
-
"or set the `FLIPPER_CLOUD_TOKEN` environment variable.\n" +
|
22
|
-
caller[0]
|
23
|
-
options = deprecated_options.merge(token: options)
|
24
|
-
end
|
25
|
-
|
18
|
+
def self.new(options = {})
|
26
19
|
configuration = Configuration.new(options)
|
27
20
|
yield configuration if block_given?
|
28
21
|
DSL.new(configuration)
|
@@ -40,8 +33,9 @@ module Flipper
|
|
40
33
|
builder.use Flipper::Cloud::Middleware, env_key: env_key
|
41
34
|
builder.run app
|
42
35
|
klass = self
|
43
|
-
|
44
|
-
|
36
|
+
app = builder.to_app
|
37
|
+
app.define_singleton_method(:inspect) { klass.inspect } # pretty rake routes output
|
38
|
+
app
|
45
39
|
end
|
46
40
|
|
47
41
|
# Private: Configure Flipper to use Cloud by default
|
data/lib/flipper/version.rb
CHANGED
@@ -267,7 +267,7 @@ RSpec.describe Flipper::Cloud::Middleware do
|
|
267
267
|
|
268
268
|
describe 'Inspecting the built Rack app' do
|
269
269
|
it 'returns a String' do
|
270
|
-
expect(Flipper::Cloud.app(flipper).inspect).to
|
270
|
+
expect(Flipper::Cloud.app(flipper).inspect).to eq("Flipper::Cloud")
|
271
271
|
end
|
272
272
|
end
|
273
273
|
|
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.25.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-19 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.25.1
|
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.25.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: brow
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.4.1
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- nunemaker@gmail.com
|
44
44
|
executables: []
|
@@ -73,7 +73,7 @@ licenses:
|
|
73
73
|
- MIT
|
74
74
|
metadata:
|
75
75
|
changelog_uri: https://github.com/jnunemaker/flipper/blob/master/Changelog.md
|
76
|
-
post_install_message:
|
76
|
+
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
79
|
- lib
|
@@ -88,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
91
|
+
rubygems_version: 3.3.7
|
92
|
+
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: FlipperCloud.io adapter for Flipper
|
95
95
|
test_files:
|