feature_gate 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: 6185eca27fa85dcd189393c552a18406692e6b29
4
- data.tar.gz: f781afb28fedc00e244aa27942634efdcff84072
3
+ metadata.gz: 255bbc8862c9ffe2ee0423555cb80fda831609ee
4
+ data.tar.gz: 0f4de315061a2d378a224915a6282c1a4d60b60a
5
5
  SHA512:
6
- metadata.gz: c2a2f446101714d40edc315736e9ac659fa00f8af885e12f6c79dc040911f26aa96fd505277e9530bc5def0bfd876c67c5605570aaec990c5fe470b4970e2051
7
- data.tar.gz: 8dd76bd9844de3280bd086ae1947b4f54d03384ff8c0ddd127b120afa9c12720dd14c13fab1f748d36a71540b43468c40b956e0646264708ae968287ade7a653
6
+ metadata.gz: 0794de4ccd8bc0b87a78d43637bc2175b219e201c9fd099134fef35bde34cf06989105951144bdad61e47ece2d42de266b2f645e0e5706a8ca2a41a61f568f40
7
+ data.tar.gz: db1220d039ea0eed0db994a4b0578077e473527a5a85327c4bf0bec7e5bdb749a55ecd77158a83c7894ef5c405f1bdf37e279574500d52cd4c7d743438798f55
@@ -2,12 +2,12 @@ class GatedFeature < ActiveRecord::Base
2
2
  validates :name, presence: true
3
3
  validates :gated, inclusion: { in: [true, false] }
4
4
 
5
- def turn_on!
5
+ def deploy_feature!
6
6
  self.gated = false
7
7
  save!
8
8
  end
9
9
 
10
- def turn_off!
10
+ def gate_feature!
11
11
  self.gated = true
12
12
  save!
13
13
  end
data/lib/feature_gate.rb CHANGED
@@ -24,14 +24,14 @@ module FeatureGate
24
24
  end
25
25
  end
26
26
 
27
- def self.turn_on!(name)
27
+ def self.open!(name)
28
28
  gated_feature = GatedFeature.find_by_name!(name)
29
- gated_feature.turn_on!
29
+ gated_feature.deploy_feature!
30
30
  end
31
31
 
32
- def self.turn_off!(name)
32
+ def self.close!(name)
33
33
  gated_feature = GatedFeature.find_by_name!(name)
34
- gated_feature.turn_on!
34
+ gated_feature.gate_feature!
35
35
  end
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  module FeatureGate
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_gate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiffany Huang