eight_ball 1.0.0 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +4 -4
- data/README.md +1 -1
- data/eight_ball.gemspec +3 -1
- data/lib/eight_ball/version.rb +1 -1
- metadata +4 -7
- data/.github/CODEOWNERS +0 -7
- data/examples/http_provider.rb +0 -8
- data/examples/static_provider.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eabee3041028eda40c2773fbbf543c90acf5b96a3433b061e7955bd9ef617742
|
4
|
+
data.tar.gz: 044cfffe29fa8f4f6aca313dd720f2a86f9c497f6450c13c0a043715232dd0a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02996ea7f5974cebd0611b8bf3cc204e1cbbce2576df86434e53550b732b3897dcb6da9877ef0857bd7c1a3c4a8a375333d5c371e735f07e21b27c31bc6e5e57'
|
7
|
+
data.tar.gz: 0d1d97fa17de0e9fcf0e3c81d9b0d4cc2130dc5b00bd820038ec2eefc46cb262d9398ca2df3343b3becd6f4152d6163fdc37884ec5a06d8ff8ed84461a420810
|
data/.travis.yml
CHANGED
@@ -3,11 +3,11 @@ language: ruby
|
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
5
|
- 2.5.0
|
6
|
-
before_install: gem install bundler -v 1.17.
|
6
|
+
before_install: gem install bundler -v 1.17.2
|
7
7
|
deploy:
|
8
8
|
provider: rubygems
|
9
9
|
api_key:
|
10
|
-
secure:
|
10
|
+
secure: DdePL5PDqSp2n3/pr45Vh75f1ImntBhR16T75Rke1O0Z2WiBMJZcHFFPQMs6cuf3H/8mdWF/lzexxM0U2U9J7eXs5WZILxougA3NAnJeC3GU6Nbpv7FvR73bJeb+W6Dcq5e6yjmQMU5cmt0LAOitvBoYjnIIRNnxnTyOaHkr2QcNNTuAOOGnmLx/SYsIrFqgjesC5Xi5QfEDFSFAPzEbb9Uq9m2vUTDx1OeXHb/6sXDZUrrTKyOdag2iqNMwrGztjZh5bSMjZmWuQjymzYU4xJRqjdUexYTfreFNde6e7Nm+5gjM0smo89rKUOUxd7FK9WLD0/uuMmkLFnyEQHa8ZMn8y17VNnaC9h3KEdJ1SVpvvzcrJ5Y7rRZxpc6Z+Q1+kwyjhz5enTZRDqoxL1j/8QO5uf3Wg6i0DNR5VqK0a+8h3CznQMdnb2e+beSZgvzj6vJLn6L7SIJ/EhU9EH4QouCDMsyrVeZWOrbzKwvO7PMd55azRlux/wYydSnxBKTZgPm3HXQ18rPoHb+OxCFDOtnK/BPJvxjosu/kbmktO/xMsAtMVzQ7qKSUSZYXc7Aw+YUALnHYO3TStfDToHH46lo0eRN/O/SzFe54WAd4oblYoglwf9htdc+59bhAfG4B4gM3J/k9TCXEoi8iKREjy4d8kVRdSImpKoGM4kx0Xyk=
|
11
11
|
gem: eight_ball
|
12
12
|
on:
|
13
13
|
tags: true
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eight_ball (1.0.
|
4
|
+
eight_ball (1.0.4)
|
5
5
|
plissken (~> 1.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
ruby-progressbar
|
30
30
|
mocha (1.7.0)
|
31
31
|
metaclass (~> 0.0.1)
|
32
|
-
plissken (1.
|
32
|
+
plissken (1.3.0)
|
33
33
|
pry (0.12.2)
|
34
34
|
coderay (~> 1.1.0)
|
35
35
|
method_source (~> 0.9.0)
|
@@ -51,7 +51,7 @@ GEM
|
|
51
51
|
term-ansicolor (1.7.0)
|
52
52
|
tins (~> 1.0)
|
53
53
|
tins (1.20.2)
|
54
|
-
yard (0.9.
|
54
|
+
yard (0.9.20)
|
55
55
|
|
56
56
|
PLATFORMS
|
57
57
|
ruby
|
@@ -69,4 +69,4 @@ DEPENDENCIES
|
|
69
69
|
simplecov-console (~> 0.4)
|
70
70
|
|
71
71
|
BUNDLED WITH
|
72
|
-
1.17.
|
72
|
+
1.17.2
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# EightBall
|
2
|
-
[![Build Status](https://travis-ci.
|
2
|
+
[![Build Status](https://travis-ci.org/rewindio/eight_ball.svg?branch=dev)](https://travis-ci.org/rewindio/eight_ball)
|
3
3
|
|
4
4
|
EightBall is a feature toggle querying gem
|
5
5
|
|
data/eight_ball.gemspec
CHANGED
@@ -15,7 +15,9 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.homepage = 'https://github.com/rewindio/eight_ball'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
|
-
spec.
|
18
|
+
spec.required_ruby_version = '>= 2.5.0'
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|.github|examples)/}) }
|
19
21
|
spec.bindir = 'exe'
|
20
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
23
|
spec.require_paths = ['lib']
|
data/lib/eight_ball/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eight_ball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rewind.io
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plissken
|
@@ -157,7 +157,6 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
-
- ".github/CODEOWNERS"
|
161
160
|
- ".gitignore"
|
162
161
|
- ".travis.yml"
|
163
162
|
- CHANGELOG.md
|
@@ -169,8 +168,6 @@ files:
|
|
169
168
|
- bin/console
|
170
169
|
- bin/setup
|
171
170
|
- eight_ball.gemspec
|
172
|
-
- examples/http_provider.rb
|
173
|
-
- examples/static_provider.rb
|
174
171
|
- lib/eight_ball.rb
|
175
172
|
- lib/eight_ball/conditions/always.rb
|
176
173
|
- lib/eight_ball/conditions/base.rb
|
@@ -196,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
193
|
requirements:
|
197
194
|
- - ">="
|
198
195
|
- !ruby/object:Gem::Version
|
199
|
-
version:
|
196
|
+
version: 2.5.0
|
200
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
198
|
requirements:
|
202
199
|
- - ">="
|
@@ -204,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
201
|
version: '0'
|
205
202
|
requirements: []
|
206
203
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.7.
|
204
|
+
rubygems_version: 2.7.7
|
208
205
|
signing_key:
|
209
206
|
specification_version: 4
|
210
207
|
summary: The most cost efficient way to flag features
|
data/.github/CODEOWNERS
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# Each line is a file pattern followed by one or more owners.
|
2
|
-
|
3
|
-
# These owners will be the default owners for everything in
|
4
|
-
# the repo. Unless a later match takes precedence, members of
|
5
|
-
# @rewindio/codeowners will be requested for review when someone
|
6
|
-
# opens a pull request.
|
7
|
-
* @MarcMorinville-Rewind @jhuff078 @smandegar
|
data/examples/http_provider.rb
DELETED
data/examples/static_provider.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'eight_ball'
|
2
|
-
|
3
|
-
# Create a Feature programatically
|
4
|
-
enabled_for = EightBall::Conditions::Range.new min: 1, max: 10, parameter: 'account_id'
|
5
|
-
disabled_for = EightBall::Conditions::List.new values: [2, 3]
|
6
|
-
feature = EightBall::Feature.new 'Feature1', enabled_for, disabled_for
|
7
|
-
|
8
|
-
# Tell EightBall about the Features
|
9
|
-
EightBall.provider = EightBall::Providers::Static.new feature
|
10
|
-
|
11
|
-
# Away you go
|
12
|
-
EightBall.enabled? 'Feature1', account_id: 4 # true
|
13
|
-
EightBall.enabled? 'Feature1', account_id: 2 # false
|