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 +4 -4
- data/lib/flipper/adapters/sequel.rb +5 -5
- data/lib/flipper/version.rb +11 -1
- data/spec/flipper/adapters/sequel_spec.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c3153929efcca2243eb2310e331feefb0e4c826e934b62eda06487c39dfd12
|
4
|
+
data.tar.gz: e71bf6a9d743a3c320133565d69b091baef466fcfc3ded98337063e05247d2e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
108
|
-
.select_append(
|
109
|
-
.select_append(
|
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
|
127
|
-
# thing - The Flipper::Type being
|
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)
|
data/lib/flipper/version.rb
CHANGED
@@ -1,3 +1,13 @@
|
|
1
1
|
module Flipper
|
2
|
-
VERSION = '1.
|
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
|
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.
|
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:
|
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.
|
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.
|
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/
|
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.
|
89
|
+
rubygems_version: 3.5.3
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Sequel feature flag adapter for Flipper
|