flipper-ui 0.7.0 → 0.7.1

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: f04d7d42e6fa127babd819816e0f2f038efb4daa
4
- data.tar.gz: 3b942e2dffe413b76d7f16e407c1cfb569cfc95c
3
+ metadata.gz: 202203ace97b82120717995526f54c178fd19127
4
+ data.tar.gz: 0c0cd56dbc0dcb987dccf5e3fd7fc811abc49b08
5
5
  SHA512:
6
- metadata.gz: 6e18c89a421a1cb92b55e0112909251db0f1f1aedb1a6a4af80c289866ee68267f25e73d82654e8a97c99abf44abd910457d7431039e365642c489ef2d3c3146
7
- data.tar.gz: 0856b28dafda69f91dd985387d5eb8ab2583b9aeaa5743ba2b99840aef76dd9254946fbc9f71ee0f0b2c5544084d1b42ec46e7e92a0368910a34c2ebf1b0099a
6
+ metadata.gz: 9ac961b493d9383460cdf4c74f8e946fcffb9754944dc0d3cb254b943019541dab25c4b34b36ed2fa523bd95f90bb7b6d98e2e779ae9252425da6d7a33989df3
7
+ data.tar.gz: dabd238ea9c100d340a565f29e4f41b1baecda6ffaaa7e7c7110f8d63e621d7e81e542cf066c8c3b569709afa6e8123c90286b2bf5df623ffdd9c62290e744a1
@@ -36,9 +36,6 @@ module Flipper
36
36
 
37
37
  @action_collection = ActionCollection.new
38
38
 
39
- # Static Assets/Files
40
- @action_collection.add UI::Actions::File
41
-
42
39
  # UI
43
40
  @action_collection.add UI::Actions::Features
44
41
  @action_collection.add UI::Actions::AddFeature
@@ -49,6 +46,11 @@ module Flipper
49
46
  @action_collection.add UI::Actions::PercentageOfTimeGate
50
47
  @action_collection.add UI::Actions::PercentageOfActorsGate
51
48
  @action_collection.add UI::Actions::Gate
49
+
50
+ # Static Assets/Files
51
+ @action_collection.add UI::Actions::File
52
+
53
+ # Catch all redirect to features
52
54
  @action_collection.add UI::Actions::Home
53
55
  end
54
56
 
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -32,4 +32,13 @@ describe Flipper::UI do
32
32
  }.to raise_error(Flipper::UI::RequestMethodNotSupported)
33
33
  end
34
34
  end
35
+
36
+ # See https://github.com/jnunemaker/flipper/issues/80
37
+ it "can route features with names that match static directories" do
38
+ post "features/refactor-images/actors",
39
+ {"value" => "User:6", "operation" => "enable", "authenticity_token" => "a"},
40
+ "rack.session" => {:csrf => "a"}
41
+ last_response.status.should be(302)
42
+ last_response.headers["Location"].should eq("/features/refactor-images")
43
+ end
35
44
  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.7.0
4
+ version: 0.7.1
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-06-21 00:00:00.000000000 Z
11
+ date: 2015-08-27 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.1
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.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: erubis
63
63
  requirement: !ruby/object:Gem::Requirement