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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa5bd7124be03e440d8d842d81046670798a55f3
4
- data.tar.gz: 570dcfc1ad945220b79fe272dc0f9abbd116bbf3
3
+ metadata.gz: dcf06013df7ab46d417b1d5b394079ae4b0f8623
4
+ data.tar.gz: 16ae2fd9287b1a4f040f319928ddfb6e7859faa3
5
5
  SHA512:
6
- metadata.gz: 6d4eca4dc250876db316172b596341e8d6acfc8ac8959fc11dff057bc3cffc28d7f55a1609adad40aff0ec9cc3226b8ed9c74ec438ed485db15e2aa7f03e7c17
7
- data.tar.gz: 77a312dc19cdeeb23367391af1192fc05e987de9cfdd04c32a409a772b34df5068f6f03024c6ab0132ee22b37ca29dd7740b612c53f570668e7565b52e781acb
6
+ metadata.gz: 4a77704c48e925caf6cd1162f066b826c2c7792510fe7f37d5a9ef33bdb1bd57db6833d2be8f38df940b6314d9411f463db53a4babdee7aaaee174ada5d1ed30
7
+ data.tar.gz: 759f1a194dccf10b22f8385f3cd059f380ca065e71af0105f2a27143855743e05737efe38eb45f3a4734473b86fe088f1ce7a70d629c4af971d02683102f9114
@@ -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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Poff
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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