flipper-active_record 0.25.0 → 0.25.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: 4432d45cbc87e12df5a8de40225e97a2d7c9b04f67f9e7ee640b9bd13ec24ba7
4
- data.tar.gz: 8027fea6e1bc7cc2bddfcbd72f1ec7624354186739ff57856b5c534f6f94bc65
3
+ metadata.gz: c34f40bdfae35dbaa6a0d1573e54cf55d29af2820c2b9deacbdddaa6db7af5f8
4
+ data.tar.gz: 12d80ba4b9dfe24482cf28ae26467becf691c75400fc31ff71adced263d6d755
5
5
  SHA512:
6
- metadata.gz: 738c9be60a2aa4f9e66f20bbe5d18e02ea9c57491136cd9f567fa48baa4ced3e6d44ab45e9d7ff4a3eead067d147556e1afc0c40205158910e2162843dd21921
7
- data.tar.gz: c37ce69fbf80ec2fe653c53d9128ea02dc660524e419ac0fd91a2fdf7b4835f1f1c2652803b49d12dbad11ec9a60a1f0dfc96684e52ef16916adf2b5d235fbed
6
+ metadata.gz: 588963466a5baaa11b6e6662ac26dd75eb7b1e407165acbf933fdf5744c830da5f64bd2f07dcde9635a1957e1602f114bbf8c926996986b2b8e3fd2b52f9b8d0
7
+ data.tar.gz: ebad584501d82c15d4ceae25e1457db6e1d4b6cf7768e2d5ff4fb103e94e9332fb771d19639203053e79cb0c659c7cdcd7a58f20f6ac25a551354a01caa5bd3a
@@ -112,7 +112,7 @@ module Flipper
112
112
  .on(features[:key].eq(gates[:feature_key]))
113
113
  .project(features[:key].as('feature_key'), gates[:key], gates[:value])
114
114
  rows = @feature_class.connection.select_all rows_query
115
- db_gates = rows.map { |row| Gate.new(row) }
115
+ db_gates = rows.map { |row| @gate_class.new(row) }
116
116
  grouped_db_gates = db_gates.group_by(&:feature_key)
117
117
  result = Hash.new { |hash, key| hash[key] = default_config }
118
118
  features = grouped_db_gates.keys.map { |key| Flipper::Feature.new(key, self) }
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.25.0'.freeze
2
+ VERSION = '0.25.1'.freeze
3
3
  end
@@ -1,5 +1 @@
1
- require 'active_support/lazy_load_hooks'
2
-
3
- ActiveSupport.on_load(:active_record) do
4
- require 'flipper/adapters/active_record'
5
- end
1
+ require 'flipper/adapters/active_record'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-08-19 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: 0.25.0
19
+ version: 0.25.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: 0.25.0
26
+ version: 0.25.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '8'
47
- description:
47
+ description:
48
48
  email:
49
49
  - nunemaker@gmail.com
50
50
  executables: []
@@ -68,7 +68,7 @@ licenses:
68
68
  - MIT
69
69
  metadata:
70
70
  changelog_uri: https://github.com/jnunemaker/flipper/blob/master/Changelog.md
71
- post_install_message:
71
+ post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
74
74
  - lib
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.1.2
87
- signing_key:
86
+ rubygems_version: 3.3.7
87
+ signing_key:
88
88
  specification_version: 4
89
89
  summary: ActiveRecord adapter for Flipper
90
90
  test_files: