fflags 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +6 -0
- data/_config.yml +1 -0
- data/lib/fflags.rb +2 -4
- data/lib/fflags/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0df01caac26c438d0a6d82b77c14100a71fec4ace3f2528c1157722b17eb0c86
|
4
|
+
data.tar.gz: 400a25988a371d531849540a4e1768ed166647e6969e449085915cd8251e59bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bffe38347c23de96e913ec1b4b168e3e628b32ed80f976eed9536f17e4e0ae2e8e40ef446eaf0ab4a5e51b6e06d829e52ed0a0224b8ccaab9eae88a69ee81c5c
|
7
|
+
data.tar.gz: 20177dca418c97cbf1e3f3882cb2b40f6431c356b809e57e85e1116bbdcf47195bfbeb49118f810ef5ab367bbd45ec356c46249c77a32de06a1eda731876a807
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<img src="https://user-images.githubusercontent.com/3461316/55052025-69ae7900-5092-11e9-8cb2-bccfb540fcd1.png">
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<br />
|
6
|
+
|
1
7
|
[![CircleCI](https://circleci.com/gh/faizalzakaria/fflags/tree/master.svg?style=svg)](https://circleci.com/gh/faizalzakaria/fflags/tree/master)
|
2
8
|
[![Maintainability](https://api.codeclimate.com/v1/badges/2c8af5d2a0560570a5b7/maintainability)](https://codeclimate.com/github/faizalzakaria/fflags/maintainability)
|
3
9
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/2c8af5d2a0560570a5b7/test_coverage)](https://codeclimate.com/github/faizalzakaria/fflags/test_coverage)
|
data/_config.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
theme: jekyll-theme-cayman
|
data/lib/fflags.rb
CHANGED
@@ -119,13 +119,11 @@ module FFlags
|
|
119
119
|
api.reset
|
120
120
|
end
|
121
121
|
|
122
|
+
# NOTE: This method will be deprecated soon.
|
122
123
|
def method_missing(method_name, *args)
|
123
124
|
flag_name = method_name[0..-2]
|
124
125
|
|
125
|
-
if !method_name.to_s.end_with?('?')
|
126
|
-
!all.include?(flag_name)
|
127
|
-
return super
|
128
|
-
end
|
126
|
+
return super if !method_name.to_s.end_with?('?')
|
129
127
|
|
130
128
|
api.enabled?(flag_name)
|
131
129
|
end
|
data/lib/fflags/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fflags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Faizal Zakaria
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- LICENSE.txt
|
126
126
|
- README.md
|
127
127
|
- Rakefile
|
128
|
+
- _config.yml
|
128
129
|
- fflags.gemspec
|
129
130
|
- lib/fflags.rb
|
130
131
|
- lib/fflags/api.rb
|
@@ -150,8 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
151
|
- !ruby/object:Gem::Version
|
151
152
|
version: '0'
|
152
153
|
requirements: []
|
153
|
-
|
154
|
-
rubygems_version: 2.6.11
|
154
|
+
rubygems_version: 3.0.2
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Feature flags that can be override on the fly.
|