flipper-ui 0.2.0.beta4 → 0.2.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +0 -1
- data/examples/basic.ru +2 -2
- data/flipper-ui.gemspec +1 -1
- data/lib/flipper/ui/decorators/feature.rb +1 -7
- data/lib/flipper/ui/version.rb +1 -1
- data/lib/flipper/ui/views/features.erb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 141a720a1e4f1252f5f716bdd24301c18444634f
|
4
|
+
data.tar.gz: 6461aee635cdd966d8bee5869379cb578ca83fbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d7dcdac2eb34225dd5613f6c95a5773a8bdfd83cc10d98de511f05c70c456d0c71d49c7ad03a7a7b9f65c9b7e92f2342bb0e8a62d111d59aea18e5822f0423e
|
7
|
+
data.tar.gz: d3a01e58ca60105b95b68a28cc302e0a1cdc7356b42fadc91a58eec560ee3b3e422549f168cdb22bd23d1c26785d3037cc3093c4ce040bcd4eadd50ac20fbbdd
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/examples/basic.ru
CHANGED
@@ -12,7 +12,7 @@ lib_path = root_path.join("lib")
|
|
12
12
|
$:.unshift(lib_path)
|
13
13
|
|
14
14
|
require "flipper-ui"
|
15
|
-
require "flipper
|
15
|
+
require "flipper/adapters/pstore"
|
16
16
|
|
17
17
|
Flipper.register(:admins) { |actor|
|
18
18
|
actor.respond_to?(:admin?) && actor.admin?
|
@@ -28,7 +28,7 @@ require "active_support/notifications"
|
|
28
28
|
require "flipper/instrumentation/log_subscriber"
|
29
29
|
Flipper::Instrumentation::LogSubscriber.logger = $logger
|
30
30
|
|
31
|
-
adapter = Flipper::Adapters::
|
31
|
+
adapter = Flipper::Adapters::PStore.new
|
32
32
|
flipper = Flipper.new(adapter, instrumenter: ActiveSupport::Notifications)
|
33
33
|
|
34
34
|
# You can uncomment these to get some default data:
|
data/flipper-ui.gemspec
CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |gem|
|
|
18
18
|
|
19
19
|
gem.add_dependency 'rack', '~> 1.4', '< 1.7'
|
20
20
|
gem.add_dependency 'rack-protection', '~> 1.5.3'
|
21
|
-
gem.add_dependency 'flipper', '~> 0.7.0.
|
21
|
+
gem.add_dependency 'flipper', '~> 0.7.0.beta3'
|
22
22
|
gem.add_dependency 'erubis', '~> 2.7.0'
|
23
23
|
end
|
@@ -41,13 +41,7 @@ module Flipper
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def
|
45
|
-
feature.gates.select { |gate|
|
46
|
-
gate.enabled?(feature.gate_values[gate.key])
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
def enabled_gate_names
|
44
|
+
def pretty_enabled_gate_names
|
51
45
|
enabled_gates.map { |gate| Util.titleize(gate.key) }.sort.join(', ')
|
52
46
|
end
|
53
47
|
|
data/lib/flipper/ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.beta5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.7.0.
|
53
|
+
version: 0.7.0.beta3
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.7.0.
|
60
|
+
version: 0.7.0.beta3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: erubis
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|