flippant 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/flippant.rb +1 -0
- data/lib/flippant/adapters/postgres.rb +6 -3
- data/lib/flippant/adapters/redis.rb +1 -0
- data/lib/flippant/version.rb +1 -1
- metadata +3 -5
- data/.tool-versions +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb493f8315fc85ca9bc0b02c7ebcdde853b15a27155828e1e5c219dfd0efd3d
|
4
|
+
data.tar.gz: c4e916ae56b4dd6704fc5b448d906d41348ce4a1008b21f3d2f2d33a83fbb101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6670a2bf379c4f95cd372951ec816e6a8f0d05844d67911d3d25a2583efcc0ceed78793bddc82c27407a9cbdaf04ba4ff483a58e8e82d6ddb1cb01d15478534
|
7
|
+
data.tar.gz: 1379c06e9d410471c4ab4200caffb11c0f7e7480bb1d7ff9014e65b51be69450b1a6185e60e4423ff9d92171b8eeef77bc09af7244e8273e6e6bc86ce4702383
|
data/CHANGELOG.md
CHANGED
data/lib/flippant.rb
CHANGED
@@ -8,10 +8,9 @@ module Flippant
|
|
8
8
|
class Postgres
|
9
9
|
DEFAULT_TABLE = "flippant_features"
|
10
10
|
|
11
|
-
attr_reader :
|
11
|
+
attr_reader :table
|
12
12
|
|
13
|
-
def initialize(
|
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)
|
data/lib/flippant/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
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
|
data/.tool-versions
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby 2.5.0
|