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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6b60c4cfdeed04d8af27669bbf2cc1b3869568d
4
- data.tar.gz: 67aa8ef924ba8a4dd3c7d6e0403b4ffcfe463264
3
+ metadata.gz: 141a720a1e4f1252f5f716bdd24301c18444634f
4
+ data.tar.gz: 6461aee635cdd966d8bee5869379cb578ca83fbf
5
5
  SHA512:
6
- metadata.gz: dc9c905b98da029bb2127eb2415220993009dc04773d9ef49945c36c4cbc9c00b23215744b5499b92250c435934bb024695a20269e10e5dec2ac1c46f9f2f20e
7
- data.tar.gz: 79fdbe0ca929a26268717b6d4e1ba2ccb2c743df3b2b73f6c6e7ce54eceefa755be143f18a3e54d120365c2e14e76ccf2f903dd76a1f0b25ab947b76d0229f83
6
+ metadata.gz: 5d7dcdac2eb34225dd5613f6c95a5773a8bdfd83cc10d98de511f05c70c456d0c71d49c7ad03a7a7b9f65c9b7e92f2342bb0e8a62d111d59aea18e5822f0423e
7
+ data.tar.gz: d3a01e58ca60105b95b68a28cc302e0a1cdc7356b42fadc91a58eec560ee3b3e422549f168cdb22bd23d1c26785d3037cc3093c4ce040bcd4eadd50ac20fbbdd
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/version_tmp
17
17
  tmp
18
18
  .sass-cache
19
19
  log
20
+ flipper.pstore
data/Gemfile CHANGED
@@ -3,7 +3,6 @@ gemspec
3
3
 
4
4
  gem 'rake', '~> 10.0.3'
5
5
  gem 'shotgun', '~> 0.9'
6
- gem 'flipper-redis', '~> 0.7.0.beta1'
7
6
  gem 'rspec', '~> 2.12'
8
7
  gem 'rack-test', '~> 0.6.1'
9
8
  gem 'activesupport', '~> 3.2.13', '< 4.3'
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-redis"
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::Redis.new(Redis.new(port: ENV["GH_REDIS_PORT"]))
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.beta1'
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 enabled_gates
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
 
@@ -1,5 +1,5 @@
1
1
  module Flipper
2
2
  module UI
3
- VERSION = "0.2.0.beta4"
3
+ VERSION = "0.2.0.beta5"
4
4
  end
5
5
  end
@@ -36,7 +36,7 @@
36
36
  <%= feature.key %></a>
37
37
  </td>
38
38
  <td class="feature-enabled-gates">
39
- <%= feature.enabled_gate_names %>
39
+ <%= feature.pretty_enabled_gate_names %>
40
40
  </td>
41
41
  </tr>
42
42
  <% end %>
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.beta4
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-24 00:00:00.000000000 Z
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.beta1
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.beta1
60
+ version: 0.7.0.beta3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: erubis
63
63
  requirement: !ruby/object:Gem::Requirement