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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d4473f7c614ad41d5c5e4d2e1df559278c20a200
4
- data.tar.gz: 6b61fdfd07f57f0a580a4b51d74f9a028e95e6ed
2
+ SHA256:
3
+ metadata.gz: 0df01caac26c438d0a6d82b77c14100a71fec4ace3f2528c1157722b17eb0c86
4
+ data.tar.gz: 400a25988a371d531849540a4e1768ed166647e6969e449085915cd8251e59bc
5
5
  SHA512:
6
- metadata.gz: b0a4880777a7f39c28b1dfa8b9148a336289e1d75414e115d9f3317c19250d6cfe3e65b06c35366f8ecba0205cff072837ef60b52ca42bc11ba384c2569c3b55
7
- data.tar.gz: a3b7fc42322093bedfb9ae164fabb37f47eda40951ef7a6ba6805cb2b91710c92ea5e9b3f64824a830c9081e4a4d0e89ce5369633adbe1b15b1db0e2c4e63e35
6
+ metadata.gz: bffe38347c23de96e913ec1b4b168e3e628b32ed80f976eed9536f17e4e0ae2e8e40ef446eaf0ab4a5e51b6e06d829e52ed0a0224b8ccaab9eae88a69ee81c5c
7
+ data.tar.gz: 20177dca418c97cbf1e3f3882cb2b40f6431c356b809e57e85e1116bbdcf47195bfbeb49118f810ef5ab367bbd45ec356c46249c77a32de06a1eda731876a807
@@ -5,3 +5,6 @@ Metrics/ModuleLength:
5
5
  Metrics/BlockLength:
6
6
  Exclude:
7
7
  - "**/*_spec.rb"
8
+
9
+ Naming/AccessorMethodName:
10
+ Enabled: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fflags (0.4.3)
4
+ fflags (0.4.4)
5
5
  redis (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -64,4 +64,4 @@ DEPENDENCIES
64
64
  simplecov
65
65
 
66
66
  BUNDLED WITH
67
- 1.16.1
67
+ 1.17.3
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)
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-cayman
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FFlags
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '0.4.4'.freeze
3
3
  end
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.3
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: 2018-01-08 00:00:00.000000000 Z
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
- rubyforge_project:
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.