flipper-sequel 1.1.2 → 1.2.1

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: 23ae0e737e5b9b7eaa316fa060c1dd189dbcf93da6876a3d1919834b48bab5ca
4
+ data.tar.gz: c4fa4b1ca1d0be2ab963c357ec1a6e87e3c60fd6d641272f6ff9f7f7d5ad226c
5
5
  SHA512:
6
- metadata.gz: 3661db4ae72e837e3a15b2d31e75ed1592a3972c639dd14af68c72c73bd5385981e0e727df3a0eef8dcb061383e74a7dd4bac04a96fed19fc1a6c5701ea9e36b
7
- data.tar.gz: '09dd7a5ada4cd1ff7cc3a9a93ba91c4b353cffc5e1311ce96b212d506b53e2999eb0410c2d8dc0f4aebad508425dccc49b0851b6b709d71b04973f356f830125'
6
+ metadata.gz: 1976b0ac10b42fc3a79f05e76b7b78c61f1760a4506737f150a302e265413d57ad331637b12bcd79275dd84b3dc8fb5be9136c1f919cfffb87125103aa2ef7fd
7
+ data.tar.gz: 4e49cdd88ef9a0ea278601d354ca23ad84b75e626e44122f00c801483d582794f64c879b92ddac042e634bd6756119979122c06da547dc7eca601ef2beb3037f
@@ -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.1'.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.1
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-15 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.1
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.1
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.1
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