phenomenal_rails 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/phenomenal_rails/feature.rb +5 -1
- data/lib/phenomenal_rails/loader.rb +1 -0
- data/lib/phenomenal_rails/middleware.rb +5 -1
- data/lib/phenomenal_rails/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/log/development.log +106 -0
- data/spec/dummy/log/production.log +53 -0
- metadata +10 -2
@@ -3,8 +3,12 @@ class Phenomenal::Feature
|
|
3
3
|
@@middleware=middleware
|
4
4
|
end
|
5
5
|
|
6
|
+
def self.middleware
|
7
|
+
@@middleware
|
8
|
+
end
|
9
|
+
|
6
10
|
def activation_condition(&block)
|
7
|
-
|
11
|
+
Phenomenal::Feature.middleware.add_condition(self,&block)
|
8
12
|
nil
|
9
13
|
end
|
10
14
|
end
|
@@ -8,7 +8,11 @@ class PhenomenalRails::Middleware
|
|
8
8
|
def add_condition(feature,&block)
|
9
9
|
@activation_conditions.push([feature,block])
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
|
+
def clear_activition_conditions
|
13
|
+
@activation_conditions.clear
|
14
|
+
end
|
15
|
+
|
12
16
|
def call(env)
|
13
17
|
before_call(env)
|
14
18
|
@app.call(env)
|
File without changes
|
File without changes
|
@@ -0,0 +1,106 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:29:26 +0200
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
Processing by ApplicationController#home as HTML
|
6
|
+
Rendered shared/_partial1.html.haml (0.9ms)
|
7
|
+
Rendered text template (0.0ms)
|
8
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (10.5ms)
|
9
|
+
Rendered shared/_partial4.html.haml (0.9ms)
|
10
|
+
Rendered pages/home.html.haml within layouts/application (42.4ms)
|
11
|
+
Completed 200 OK in 58ms (Views: 57.0ms | ActiveRecord: 0.0ms)
|
12
|
+
|
13
|
+
|
14
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:29:34 +0200
|
15
|
+
Processing by ApplicationController#home as HTML
|
16
|
+
Rendered shared/_partial1.html.haml (0.1ms)
|
17
|
+
Rendered text template (0.0ms)
|
18
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (1.3ms)
|
19
|
+
Rendered shared/_partial4.html.haml (0.1ms)
|
20
|
+
Rendered pages/home.html.haml within layouts/application (8.6ms)
|
21
|
+
Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
|
22
|
+
|
23
|
+
|
24
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:29:36 +0200
|
25
|
+
Processing by ApplicationController#home as HTML
|
26
|
+
Rendered shared/_partial1.html.haml (0.1ms)
|
27
|
+
Rendered text template (0.0ms)
|
28
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.8ms)
|
29
|
+
Rendered shared/_partial4.html.haml (0.1ms)
|
30
|
+
Rendered pages/home.html.haml within layouts/application (6.7ms)
|
31
|
+
Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
|
32
|
+
|
33
|
+
|
34
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:29:37 +0200
|
35
|
+
Processing by ApplicationController#home as HTML
|
36
|
+
Parameters: {"activated"=>"true"}
|
37
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.9ms)
|
38
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.7ms)
|
39
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.7ms)
|
40
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.7ms)
|
41
|
+
Rendered pages/home.html.haml within layouts/application (10.3ms)
|
42
|
+
Completed 200 OK in 15ms (Views: 14.6ms | ActiveRecord: 0.0ms)
|
43
|
+
|
44
|
+
|
45
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:29:41 +0200
|
46
|
+
Processing by ApplicationController#home as HTML
|
47
|
+
Parameters: {"activated"=>"true"}
|
48
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.8ms)
|
49
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.8ms)
|
50
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.8ms)
|
51
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.7ms)
|
52
|
+
Rendered pages/home.html.haml within layouts/application (9.3ms)
|
53
|
+
Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.0ms)
|
54
|
+
|
55
|
+
|
56
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:29:42 +0200
|
57
|
+
Processing by ApplicationController#home as HTML
|
58
|
+
Parameters: {"activated"=>"true"}
|
59
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.9ms)
|
60
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.7ms)
|
61
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.7ms)
|
62
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.7ms)
|
63
|
+
Rendered pages/home.html.haml within layouts/application (8.4ms)
|
64
|
+
Completed 200 OK in 13ms (Views: 12.7ms | ActiveRecord: 0.0ms)
|
65
|
+
|
66
|
+
|
67
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:29:48 +0200
|
68
|
+
Processing by ApplicationController#home as HTML
|
69
|
+
Rendered shared/_partial1.html.haml (0.1ms)
|
70
|
+
Rendered text template (0.0ms)
|
71
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.8ms)
|
72
|
+
Rendered shared/_partial4.html.haml (0.1ms)
|
73
|
+
Rendered pages/home.html.haml within layouts/application (6.8ms)
|
74
|
+
Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
|
75
|
+
|
76
|
+
|
77
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:29:49 +0200
|
78
|
+
Processing by ApplicationController#home as HTML
|
79
|
+
Parameters: {"activated"=>"true"}
|
80
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.9ms)
|
81
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.8ms)
|
82
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.7ms)
|
83
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.7ms)
|
84
|
+
Rendered pages/home.html.haml within layouts/application (8.6ms)
|
85
|
+
Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)
|
86
|
+
|
87
|
+
|
88
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:29:50 +0200
|
89
|
+
Processing by ApplicationController#home as HTML
|
90
|
+
Parameters: {"activated"=>"true"}
|
91
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.9ms)
|
92
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.8ms)
|
93
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.7ms)
|
94
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.7ms)
|
95
|
+
Rendered pages/home.html.haml within layouts/application (8.8ms)
|
96
|
+
Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)
|
97
|
+
|
98
|
+
|
99
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:29:51 +0200
|
100
|
+
Processing by ApplicationController#home as HTML
|
101
|
+
Rendered shared/_partial1.html.haml (0.1ms)
|
102
|
+
Rendered text template (0.0ms)
|
103
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.8ms)
|
104
|
+
Rendered shared/_partial4.html.haml (0.1ms)
|
105
|
+
Rendered pages/home.html.haml within layouts/application (7.0ms)
|
106
|
+
Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:30:14 +0200
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
Processing by ApplicationController#home as HTML
|
6
|
+
Rendered shared/_partial1.html.haml (0.9ms)
|
7
|
+
Rendered text template (0.0ms)
|
8
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.8ms)
|
9
|
+
Rendered shared/_partial4.html.haml (0.9ms)
|
10
|
+
Rendered pages/home.html.haml within layouts/application (17.3ms)
|
11
|
+
Completed 200 OK in 28ms (Views: 27.7ms | ActiveRecord: 0.0ms)
|
12
|
+
|
13
|
+
|
14
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:30:16 +0200
|
15
|
+
Processing by ApplicationController#home as HTML
|
16
|
+
Parameters: {"activated"=>"true"}
|
17
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.8ms)
|
18
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.7ms)
|
19
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.1ms)
|
20
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.7ms)
|
21
|
+
Rendered pages/home.html.haml within layouts/application (6.9ms)
|
22
|
+
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
|
23
|
+
|
24
|
+
|
25
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:30:17 +0200
|
26
|
+
Processing by ApplicationController#home as HTML
|
27
|
+
Rendered shared/_partial1.html.haml (0.1ms)
|
28
|
+
Rendered text template (0.0ms)
|
29
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.1ms)
|
30
|
+
Rendered shared/_partial4.html.haml (0.1ms)
|
31
|
+
Rendered pages/home.html.haml within layouts/application (3.9ms)
|
32
|
+
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
|
33
|
+
|
34
|
+
|
35
|
+
Started GET "/?activated=true" for 127.0.0.1 at 2012-05-20 15:30:18 +0200
|
36
|
+
Processing by ApplicationController#home as HTML
|
37
|
+
Parameters: {"activated"=>"true"}
|
38
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial1.html.haml (0.1ms)
|
39
|
+
Rendered app_phenomenal/persistent_feature/test_context/views/shared/_partial2.html.haml (0.1ms)
|
40
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.1ms)
|
41
|
+
Rendered app_phenomenal/test_feature/views/shared/_partial4.html.haml (0.1ms)
|
42
|
+
Rendered pages/home.html.haml within layouts/application (4.7ms)
|
43
|
+
Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)
|
44
|
+
|
45
|
+
|
46
|
+
Started GET "/" for 127.0.0.1 at 2012-05-20 15:30:19 +0200
|
47
|
+
Processing by ApplicationController#home as HTML
|
48
|
+
Rendered shared/_partial1.html.haml (0.1ms)
|
49
|
+
Rendered text template (0.0ms)
|
50
|
+
Rendered app_phenomenal/persistent_feature/views/shared/_partial3.html.haml (0.1ms)
|
51
|
+
Rendered shared/_partial4.html.haml (0.1ms)
|
52
|
+
Rendered pages/home.html.haml within layouts/application (4.0ms)
|
53
|
+
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phenomenal_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -114,6 +114,10 @@ files:
|
|
114
114
|
- spec/dummy/config/locales/en.yml
|
115
115
|
- spec/dummy/config/routes.rb
|
116
116
|
- spec/dummy/config.ru
|
117
|
+
- spec/dummy/db/development.sqlite3
|
118
|
+
- spec/dummy/db/production.sqlite3
|
119
|
+
- spec/dummy/log/development.log
|
120
|
+
- spec/dummy/log/production.log
|
117
121
|
- spec/dummy/public/404.html
|
118
122
|
- spec/dummy/public/422.html
|
119
123
|
- spec/dummy/public/500.html
|
@@ -177,6 +181,10 @@ test_files:
|
|
177
181
|
- spec/dummy/config/locales/en.yml
|
178
182
|
- spec/dummy/config/routes.rb
|
179
183
|
- spec/dummy/config.ru
|
184
|
+
- spec/dummy/db/development.sqlite3
|
185
|
+
- spec/dummy/db/production.sqlite3
|
186
|
+
- spec/dummy/log/development.log
|
187
|
+
- spec/dummy/log/production.log
|
180
188
|
- spec/dummy/public/404.html
|
181
189
|
- spec/dummy/public/422.html
|
182
190
|
- spec/dummy/public/500.html
|