flipper-sequel 1.1.1 → 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: ffe7effe10bea4582183432f2f61211d564e4d1db3a786b4b1101ff972508c67
4
- data.tar.gz: 15321d06dad56ed1fe663303b805c6674ca2d2e3e89a48f38928a88934e11ad5
3
+ metadata.gz: 62c3153929efcca2243eb2310e331feefb0e4c826e934b62eda06487c39dfd12
4
+ data.tar.gz: e71bf6a9d743a3c320133565d69b091baef466fcfc3ded98337063e05247d2e3
5
5
  SHA512:
6
- metadata.gz: 373447d1765b192ff19edee5e0f9be282072b21f8c65017c5149dc3b5245df3f987be038d28d2883336f86850f81242cbbeffcac123c4dca49729e535c910d67
7
- data.tar.gz: 0f6f26af4dfd0156e664207fb9f228ae616bdf27ded4e571a167543a19ef60171c774afe723e96e72f832a2cc7b87d7f8faabb59bae801dfcc95b97234b0d047
6
+ metadata.gz: 8b9a2b202ca953bec0fd0f54ceb1ade767f5982b36a935509fa15683b55c35f42dbecbec3cf3312c7e3ce04c3cc741ae41ccaad22748350d8f4a3faf49292f2d
7
+ data.tar.gz: 63b4cf2c6f95f7cc3830b65af76dcf63e5fa1a3f3eefb3633db02c0792c15ee7c072eee0fe4baf90fc2f1c08fdac7e9f5c4bcc58dff7016f6f43ebcc1996c5a2
@@ -7,7 +7,7 @@ flipper_sequel_files = ->(file) { file =~ /sequel/ }
7
7
  Gem::Specification.new do |gem|
8
8
  gem.authors = ['John Nunemaker']
9
9
  gem.email = 'support@flippercloud.io'
10
- gem.summary = 'Sequel adapter for Flipper'
10
+ gem.summary = 'Sequel feature flag adapter for Flipper'
11
11
  gem.license = 'MIT'
12
12
  gem.homepage = 'https://www.flippercloud.io/docs/adapters/sequel'
13
13
 
@@ -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.1'.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.1
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-09 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.1
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.1
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,10 +86,10 @@ 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
- summary: Sequel adapter for Flipper
92
+ summary: Sequel feature flag adapter for Flipper
93
93
  test_files:
94
94
  - spec/flipper/adapters/sequel_spec.rb
95
95
  - spec/flipper/model/sequel_spec.rb