flipper-cloud 0.24.1 → 0.25.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da84cb1704e31fac9f950282867da74412c73f1cc7a0a2fdebe1cab70b1caffa
4
- data.tar.gz: e356bef8598889a5d8905737d8201da58b1f4d8d607dd48d26a8695ce0558adc
3
+ metadata.gz: 193205e4bd1287667b1e1866f642d19e38d67a9988ea598afff55fd19fc2caec
4
+ data.tar.gz: 47b28d2121045c223d7cd4f45f5fe9ed230014ee2fa0a6c2de0029559a4344a0
5
5
  SHA512:
6
- metadata.gz: fa9efb9eca7fb3e058ad85cb19ddc405ac445ee2f49f1bcd368976cee7758dda4b3446baaeac4a1f1a110240d625126708fb5e85afe5706fb92a276780662151
7
- data.tar.gz: 330335221574998e0c76452cb728881e360828fc61ff38057ba6c6d3f20a9e3e1b958452746c1104c1b4f3f40b79ea590073935cc7de918758fb0aef5b26e538
6
+ metadata.gz: 39da089e9a29e0d250e75ed763d562008cf6f91b2315e5f5f8ec67e3895043ac1748dea5b70dac2454cf6cfcf96faadab999b6617509192051db2240edd61c2b
7
+ data.tar.gz: 7d4d635b005a1a719a09105f7101c739e6b6684f8d9e3a5910a96c443d7ffc7902553f3b4068153b4d3e40f4f63ff236bcc449b330bed73cf90ecbae6761e89a
@@ -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.2'.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.2
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-04-13 00:00:00.000000000 Z
11
+ date: 2022-08-25 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.2
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.2
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.1.2
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: