flipper-ui 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/flipper/ui/middleware.rb +5 -3
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/ui_spec.rb +9 -0
- 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: 202203ace97b82120717995526f54c178fd19127
|
|
4
|
+
data.tar.gz: 0c0cd56dbc0dcb987dccf5e3fd7fc811abc49b08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/flipper/version.rb
CHANGED
data/spec/flipper/ui_spec.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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.
|
|
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.
|
|
60
|
+
version: 0.7.1
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: erubis
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|