poff 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/poff.rb +1 -10
- data/lib/poff/feature.rb +11 -0
- data/lib/poff/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcf06013df7ab46d417b1d5b394079ae4b0f8623
|
4
|
+
data.tar.gz: 16ae2fd9287b1a4f040f319928ddfb6e7859faa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a77704c48e925caf6cd1162f066b826c2c7792510fe7f37d5a9ef33bdb1bd57db6833d2be8f38df940b6314d9411f463db53a4babdee7aaaee174ada5d1ed30
|
7
|
+
data.tar.gz: 759f1a194dccf10b22f8385f3cd059f380ca065e71af0105f2a27143855743e05737efe38eb45f3a4734473b86fe088f1ce7a70d629c4af971d02683102f9114
|
data/lib/poff.rb
CHANGED
@@ -1,11 +1,2 @@
|
|
1
1
|
require "poff/version"
|
2
|
-
|
3
|
-
module Poff
|
4
|
-
def self.enabled?(flag)
|
5
|
-
if !const_defined?("FeatureFlags")
|
6
|
-
puts "FeatureFlags variable was not defined. Please run rails generate poff:initializer"
|
7
|
-
return false
|
8
|
-
end
|
9
|
-
FeatureFlags.has_key?(flag) && FeatureFlags[flag] == :on
|
10
|
-
end
|
11
|
-
end
|
2
|
+
require "poff/feature"
|
data/lib/poff/feature.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
module Poff
|
2
|
+
module Feature
|
3
|
+
def self.enabled?(flag)
|
4
|
+
if !const_defined?("FeatureFlags")
|
5
|
+
puts "FeatureFlags variable was not defined. Please run rails generate poff:initializer"
|
6
|
+
return false
|
7
|
+
end
|
8
|
+
FeatureFlags.has_key?(flag) && FeatureFlags[flag] == :on
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/poff/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Bedra
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- lib/generators/poff/initializer_generator.rb
|
69
69
|
- lib/generators/poff/templates/poff.rb
|
70
70
|
- lib/poff.rb
|
71
|
+
- lib/poff/feature.rb
|
71
72
|
- lib/poff/version.rb
|
72
73
|
- poff.gemspec
|
73
74
|
homepage: https://github.com/abedra/poff
|