flipper-sequel 1.1.2 → 1.2.0

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: ab44afc3ddcb2da7238cc0a81a03f2994499ad6755d6c1443a1f233e2cb1b4fe
4
- data.tar.gz: 48c11cad3f5717ce2fb0abae379cde194d3660a3d0b691f7dec795eb2f17e31f
3
+ metadata.gz: 62c3153929efcca2243eb2310e331feefb0e4c826e934b62eda06487c39dfd12
4
+ data.tar.gz: e71bf6a9d743a3c320133565d69b091baef466fcfc3ded98337063e05247d2e3
5
5
  SHA512:
6
- metadata.gz: 3661db4ae72e837e3a15b2d31e75ed1592a3972c639dd14af68c72c73bd5385981e0e727df3a0eef8dcb061383e74a7dd4bac04a96fed19fc1a6c5701ea9e36b
7
- data.tar.gz: '09dd7a5ada4cd1ff7cc3a9a93ba91c4b353cffc5e1311ce96b212d506b53e2999eb0410c2d8dc0f4aebad508425dccc49b0851b6b709d71b04973f356f830125'
6
+ metadata.gz: 8b9a2b202ca953bec0fd0f54ceb1ade767f5982b36a935509fa15683b55c35f42dbecbec3cf3312c7e3ce04c3cc741ae41ccaad22748350d8f4a3faf49292f2d
7
+ data.tar.gz: 63b4cf2c6f95f7cc3830b65af76dcf63e5fa1a3f3eefb3633db02c0792c15ee7c072eee0fe4baf90fc2f1c08fdac7e9f5c4bcc58dff7016f6f43ebcc1996c5a2
@@ -104,9 +104,9 @@ module Flipper
104
104
  def get_all
105
105
  feature_table = @feature_class.table_name.to_sym
106
106
  gate_table = @gate_class.table_name.to_sym
107
- features_sql = @feature_class.select(:key.qualify(feature_table).as(:feature_key))
108
- .select_append(:key.qualify(gate_table))
109
- .select_append(:value.qualify(gate_table))
107
+ features_sql = @feature_class.select(::Sequel.qualify(feature_table, :key).as(:feature_key))
108
+ .select_append(::Sequel.qualify(gate_table, :key))
109
+ .select_append(::Sequel.qualify(gate_table, :value))
110
110
  .left_join(@gate_class.table_name.to_sym, feature_key: :key)
111
111
  .sql
112
112
 
@@ -123,8 +123,8 @@ module Flipper
123
123
  # Public: Enables a gate for a given thing.
124
124
  #
125
125
  # feature - The Flipper::Feature for the gate.
126
- # gate - The Flipper::Gate to disable.
127
- # thing - The Flipper::Type being disabled for the gate.
126
+ # gate - The Flipper::Gate to enable.
127
+ # thing - The Flipper::Type being enabled for the gate.
128
128
  #
129
129
  # Returns true.
130
130
  def enable(feature, gate, thing)
@@ -1,3 +1,13 @@
1
1
  module Flipper
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.2.0'.freeze
3
+
4
+ REQUIRED_RUBY_VERSION = '2.6'.freeze
5
+ NEXT_REQUIRED_RUBY_VERSION = '3.0'.freeze
6
+
7
+ REQUIRED_RAILS_VERSION = '5.2'.freeze
8
+ NEXT_REQUIRED_RAILS_VERSION = '6.1.0'.freeze
9
+
10
+ def self.deprecated_ruby_version?
11
+ Gem::Version.new(RUBY_VERSION) < Gem::Version.new(NEXT_REQUIRED_RUBY_VERSION)
12
+ end
3
13
  end
@@ -32,7 +32,7 @@ RSpec.describe Flipper::Adapters::Sequel do
32
32
  Flipper.configuration = nil
33
33
  Flipper.instance = nil
34
34
 
35
- load 'flipper/adapters/sequel.rb'
35
+ silence { load 'flipper/adapters/sequel.rb' }
36
36
  end
37
37
 
38
38
  it 'configures itself' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.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: 2023-12-12 00:00:00.000000000 Z
11
+ date: 2024-01-11 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: 1.1.2
19
+ version: 1.2.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: 1.1.2
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sequel
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ metadata:
70
70
  homepage_uri: https://www.flippercloud.io
71
71
  source_code_uri: https://github.com/flippercloud/flipper
72
72
  bug_tracker_uri: https://github.com/flippercloud/flipper/issues
73
- changelog_uri: https://github.com/flippercloud/flipper/blob/main/Changelog.md
73
+ changelog_uri: https://github.com/flippercloud/flipper/releases/tag/v1.2.0
74
74
  post_install_message:
75
75
  rdoc_options: []
76
76
  require_paths:
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.4.10
89
+ rubygems_version: 3.5.3
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Sequel feature flag adapter for Flipper