flipper-cloud 0.24.1 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flipper/cloud/configuration.rb +0 -9
- data/lib/flipper/cloud.rb +1 -8
- 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: 7502697176d9e926cf7cf93c18ed11d4f15fa342287dbe2cd757aaf70b62ddfc
|
4
|
+
data.tar.gz: f1efff2fbcc4ebb9c1b0e09cfea3ca68f653a494566a7e52a7b7d5088c7cac72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c1509933e50811a1d366228639e7a3ddf9d6549778eb228da64e477e16561deb4190635d1c9c0993d284635aaba379e7fd735ba796f78ae5666fa95241dc13c
|
7
|
+
data.tar.gz: ef398dc3057a49a886899b61c3f5290fe13e3f6d8adeb48922ade8ba8d3520f3b4b96f3ba861da0642056b0a84bf8137717b9c4b00f3dd8c1e8af156516920e3
|
@@ -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)
|
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.
|
4
|
+
version: 0.25.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: 2022-
|
11
|
+
date: 2022-06-09 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.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.25.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: brow
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|