simple_feature_flags 1.1.0 → 1.1.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: 3caaf6b1bc76049e0debeb5a1d5b549bd1853328fb7bf8833469be0c3de666ca
4
- data.tar.gz: 3e3a2f901936c0f6bad14a0a1efe75b171a1feb64de2e728c8bfadeda777262c
3
+ metadata.gz: 64a488fbf34e74246e7256a469d99a257b6f20171f9e0f57c0f5186388937cc0
4
+ data.tar.gz: 224dde8807aaf6aec346641e05106de0de0a88b3f0ba388e05bc51af93270664
5
5
  SHA512:
6
- metadata.gz: dadda81140cd5cc53845d1e0b2396df2258a87a779b9e770e9699e66f81fcb0f8acdd66887cf53d4186f225700e5e76ea5c2e15f10097443c68191201247eb59
7
- data.tar.gz: 2e52191291340ce433c6e65ebfd71fd6cebbb1e1e77dc9893086fe0b7412f91753a756074a699fdfc2065a93158c892cdea87610a11a8bb953a22a260239e6af
6
+ metadata.gz: 4596a45fc389a9235700db3b76260735f8a2ce71b0eb5bec19d8efb621ed842dc149c86246ab4701a5ee3d6205d99eb1f175a294e65ec028c8dc81373141391d
7
+ data.tar.gz: a938f338faf71ff1048b88ca280f5800d530298873398840ced76231cad1a57501cfd58a424888769074e1a80657f758f5796403f7dda526581ca12a082752d1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_feature_flags (1.1.0)
4
+ simple_feature_flags (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -367,9 +367,9 @@ In case you'd like to remove flags programmatically
367
367
  ```ruby
368
368
  FEATURE_FLAGS.remove(:feature_name)
369
369
 
370
- FEATURE_FLAGS.active?(:feature_active_partially) #=> false
371
- FEATURE_FLAGS.active_partially?(:feature_active_partially) #=> false
372
- FEATURE_FLAGS.active_globally?(:feature_active_partially) #=> false
370
+ FEATURE_FLAGS.active?(:feature_name) #=> false
371
+ FEATURE_FLAGS.active_partially?(:feature_name) #=> false
372
+ FEATURE_FLAGS.active_globally?(:feature_name) #=> false
373
373
  ```
374
374
 
375
375
 
@@ -182,11 +182,10 @@ module SimpleFeatureFlags
182
182
  def add(feature, description, active = 'false')
183
183
  return false if exists?(feature)
184
184
 
185
- active = case active
186
- when true, 'true'
187
- 'true'
188
- when 'globally', :globally
185
+ active = if ACTIVE_GLOBALLY.include?(active)
189
186
  'globally'
187
+ elsif ACTIVE_PARTIALLY.include?(active)
188
+ 'partially'
190
189
  else
191
190
  'false'
192
191
  end
@@ -184,11 +184,10 @@ module SimpleFeatureFlags
184
184
  def add(feature, description, active = 'false')
185
185
  return false if exists?(feature)
186
186
 
187
- active = case active
188
- when true, 'true'
189
- 'true'
190
- when 'globally', :globally
187
+ active = if ACTIVE_GLOBALLY.include?(active)
191
188
  'globally'
189
+ elsif ACTIVE_PARTIALLY.include?(active)
190
+ 'partially'
192
191
  else
193
192
  'false'
194
193
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleFeatureFlags
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_feature_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Espago
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-08-17 00:00:00.000000000 Z
12
+ date: 2021-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler