flippant 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb2f65a02966b9232561570498e893b0905ca3685b6e826b79376d7ede5c76d5
4
- data.tar.gz: e6c8c1487f5ef80b0f467305076c36aca091fbcd38d1953fe4e03de6ea8dcb87
3
+ metadata.gz: afb493f8315fc85ca9bc0b02c7ebcdde853b15a27155828e1e5c219dfd0efd3d
4
+ data.tar.gz: c4e916ae56b4dd6704fc5b448d906d41348ce4a1008b21f3d2f2d33a83fbb101
5
5
  SHA512:
6
- metadata.gz: afc9ead23ec2566f9750802e73c6895a8ac99aa75b7f6bd9295b7c48d0aecd5b3d839eacf83ed30637c09a8f1c2cff34c0e82623a3edd3d2b0d7892de0093bc8
7
- data.tar.gz: dcb7abfe21f01a19d900c3933ec43d5b62a6a2be34f6c054b6ed6abc0ed9f8aa82567306730e52500fb86fba05b5d18e0ae83754cf433c96d8110c63b47748c3
6
+ metadata.gz: f6670a2bf379c4f95cd372951ec816e6a8f0d05844d67911d3d25a2583efcc0ceed78793bddc82c27407a9cbdaf04ba4ff483a58e8e82d6ddb1cb01d15478534
7
+ data.tar.gz: 1379c06e9d410471c4ab4200caffb11c0f7e7480bb1d7ff9014e65b51be69450b1a6185e60e4423ff9d92171b8eeef77bc09af7244e8273e6e6bc86ce4702383
@@ -1,3 +1,9 @@
1
+ ## v0.9.1 2019-02-01
2
+
3
+ * [Flippant::Adapter::Postgres] - Pool is no longer initialized to
4
+ `ActiveModel::Base.connection_pool` to prevent an issue where the pool
5
+ was being set before Active Model has a connection
6
+
1
7
  ## v0.9.0 2018-03-20
2
8
 
3
9
  ### Enhancements
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "json"
4
+ require "forwardable"
4
5
 
5
6
  module Flippant
6
7
  autoload :Error, "flippant/errors"
@@ -8,10 +8,9 @@ module Flippant
8
8
  class Postgres
9
9
  DEFAULT_TABLE = "flippant_features"
10
10
 
11
- attr_reader :pool, :table
11
+ attr_reader :table
12
12
 
13
- def initialize(pool: ActiveRecord::Base.connection_pool, table: DEFAULT_TABLE)
14
- @pool = pool
13
+ def initialize(table: DEFAULT_TABLE)
15
14
  @table = table
16
15
  end
17
16
 
@@ -157,6 +156,10 @@ module Flippant
157
156
  end
158
157
  end
159
158
 
159
+ def pool
160
+ ActiveRecord::Base.connection_pool
161
+ end
162
+
160
163
  def transaction(&block)
161
164
  conn do |client|
162
165
  client.transaction(&block)
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "redis"
4
+ require "forwardable"
4
5
 
5
6
  module Flippant
6
7
  module Adapter
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flippant
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flippant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Selbert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -132,7 +132,6 @@ files:
132
132
  - ".gitignore"
133
133
  - ".rspec"
134
134
  - ".rubocop.yml"
135
- - ".tool-versions"
136
135
  - ".travis.yml"
137
136
  - CHANGELOG.md
138
137
  - Gemfile
@@ -172,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
171
  - !ruby/object:Gem::Version
173
172
  version: '0'
174
173
  requirements: []
175
- rubyforge_project:
176
- rubygems_version: 2.7.3
174
+ rubygems_version: 3.0.2
177
175
  signing_key:
178
176
  specification_version: 4
179
177
  summary: Fast feature toggling for applications
@@ -1 +0,0 @@
1
- ruby 2.5.0