flipper-cloud 0.24.1 → 0.25.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
  SHA256:
3
- metadata.gz: da84cb1704e31fac9f950282867da74412c73f1cc7a0a2fdebe1cab70b1caffa
4
- data.tar.gz: e356bef8598889a5d8905737d8201da58b1f4d8d607dd48d26a8695ce0558adc
3
+ metadata.gz: 7502697176d9e926cf7cf93c18ed11d4f15fa342287dbe2cd757aaf70b62ddfc
4
+ data.tar.gz: f1efff2fbcc4ebb9c1b0e09cfea3ca68f653a494566a7e52a7b7d5088c7cac72
5
5
  SHA512:
6
- metadata.gz: fa9efb9eca7fb3e058ad85cb19ddc405ac445ee2f49f1bcd368976cee7758dda4b3446baaeac4a1f1a110240d625126708fb5e85afe5706fb92a276780662151
7
- data.tar.gz: 330335221574998e0c76452cb728881e360828fc61ff38057ba6c6d3f20a9e3e1b958452746c1104c1b4f3f40b79ea590073935cc7de918758fb0aef5b26e538
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 = {}, deprecated_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)
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.24.1'.freeze
2
+ VERSION = '0.25.0'.freeze
3
3
  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.24.1
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-04-13 00:00:00.000000000 Z
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.24.1
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.24.1
26
+ version: 0.25.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: brow
29
29
  requirement: !ruby/object:Gem::Requirement