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 +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: 23ae0e737e5b9b7eaa316fa060c1dd189dbcf93da6876a3d1919834b48bab5ca
|
4
|
+
data.tar.gz: c4fa4b1ca1d0be2ab963c357ec1a6e87e3c60fd6d641272f6ff9f7f7d5ad226c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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.1
|
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
|
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
|
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:
|
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
|
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
|
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/
|
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.
|
89
|
+
rubygems_version: 3.5.3
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Sequel feature flag adapter for Flipper
|