nacelle 0.4.1 → 0.5.0

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- nacelle (0.4.1)
4
+ nacelle (0.4.2)
5
5
  cells (~> 3.0)
6
6
  rails
7
7
  sprockets-rails
@@ -9,75 +9,76 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (6.1.4.4)
13
- actionpack (= 6.1.4.4)
14
- activesupport (= 6.1.4.4)
12
+ actioncable (6.1.7.3)
13
+ actionpack (= 6.1.7.3)
14
+ activesupport (= 6.1.7.3)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailbox (6.1.4.4)
18
- actionpack (= 6.1.4.4)
19
- activejob (= 6.1.4.4)
20
- activerecord (= 6.1.4.4)
21
- activestorage (= 6.1.4.4)
22
- activesupport (= 6.1.4.4)
17
+ actionmailbox (6.1.7.3)
18
+ actionpack (= 6.1.7.3)
19
+ activejob (= 6.1.7.3)
20
+ activerecord (= 6.1.7.3)
21
+ activestorage (= 6.1.7.3)
22
+ activesupport (= 6.1.7.3)
23
23
  mail (>= 2.7.1)
24
- actionmailer (6.1.4.4)
25
- actionpack (= 6.1.4.4)
26
- actionview (= 6.1.4.4)
27
- activejob (= 6.1.4.4)
28
- activesupport (= 6.1.4.4)
24
+ actionmailer (6.1.7.3)
25
+ actionpack (= 6.1.7.3)
26
+ actionview (= 6.1.7.3)
27
+ activejob (= 6.1.7.3)
28
+ activesupport (= 6.1.7.3)
29
29
  mail (~> 2.5, >= 2.5.4)
30
30
  rails-dom-testing (~> 2.0)
31
- actionpack (6.1.4.4)
32
- actionview (= 6.1.4.4)
33
- activesupport (= 6.1.4.4)
31
+ actionpack (6.1.7.3)
32
+ actionview (= 6.1.7.3)
33
+ activesupport (= 6.1.7.3)
34
34
  rack (~> 2.0, >= 2.0.9)
35
35
  rack-test (>= 0.6.3)
36
36
  rails-dom-testing (~> 2.0)
37
37
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
38
- actiontext (6.1.4.4)
39
- actionpack (= 6.1.4.4)
40
- activerecord (= 6.1.4.4)
41
- activestorage (= 6.1.4.4)
42
- activesupport (= 6.1.4.4)
38
+ actiontext (6.1.7.3)
39
+ actionpack (= 6.1.7.3)
40
+ activerecord (= 6.1.7.3)
41
+ activestorage (= 6.1.7.3)
42
+ activesupport (= 6.1.7.3)
43
43
  nokogiri (>= 1.8.5)
44
- actionview (6.1.4.4)
45
- activesupport (= 6.1.4.4)
44
+ actionview (6.1.7.3)
45
+ activesupport (= 6.1.7.3)
46
46
  builder (~> 3.1)
47
47
  erubi (~> 1.4)
48
48
  rails-dom-testing (~> 2.0)
49
49
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
50
- activejob (6.1.4.4)
51
- activesupport (= 6.1.4.4)
50
+ activejob (6.1.7.3)
51
+ activesupport (= 6.1.7.3)
52
52
  globalid (>= 0.3.6)
53
- activemodel (6.1.4.4)
54
- activesupport (= 6.1.4.4)
55
- activerecord (6.1.4.4)
56
- activemodel (= 6.1.4.4)
57
- activesupport (= 6.1.4.4)
58
- activestorage (6.1.4.4)
59
- actionpack (= 6.1.4.4)
60
- activejob (= 6.1.4.4)
61
- activerecord (= 6.1.4.4)
62
- activesupport (= 6.1.4.4)
63
- marcel (~> 1.0.0)
53
+ activemodel (6.1.7.3)
54
+ activesupport (= 6.1.7.3)
55
+ activerecord (6.1.7.3)
56
+ activemodel (= 6.1.7.3)
57
+ activesupport (= 6.1.7.3)
58
+ activestorage (6.1.7.3)
59
+ actionpack (= 6.1.7.3)
60
+ activejob (= 6.1.7.3)
61
+ activerecord (= 6.1.7.3)
62
+ activesupport (= 6.1.7.3)
63
+ marcel (~> 1.0)
64
64
  mini_mime (>= 1.1.0)
65
- activesupport (6.1.4.4)
65
+ activesupport (6.1.7.3)
66
66
  concurrent-ruby (~> 1.0, >= 1.0.2)
67
67
  i18n (>= 1.6, < 2)
68
68
  minitest (>= 5.1)
69
69
  tzinfo (~> 2.0)
70
70
  zeitwerk (~> 2.3)
71
- addressable (2.8.0)
72
- public_suffix (>= 2.0.2, < 5.0)
71
+ addressable (2.8.1)
72
+ public_suffix (>= 2.0.2, < 6.0)
73
73
  appraisal (2.4.1)
74
74
  bundler
75
75
  rake
76
76
  thor (>= 0.14.0)
77
77
  builder (3.2.4)
78
78
  byebug (11.1.3)
79
- capybara (3.35.3)
79
+ capybara (3.38.0)
80
80
  addressable
81
+ matrix
81
82
  mini_mime (>= 0.1.3)
82
83
  nokogiri (~> 1.8)
83
84
  rack (>= 1.6.0)
@@ -88,74 +89,88 @@ GEM
88
89
  actionpack (>= 3.0)
89
90
  railties (>= 3.0)
90
91
  uber (~> 0.0.8)
91
- concurrent-ruby (1.1.9)
92
+ concurrent-ruby (1.2.2)
92
93
  crass (1.0.6)
94
+ date (3.3.3)
93
95
  diff-lcs (1.5.0)
94
- erubi (1.10.0)
95
- globalid (1.0.0)
96
+ erubi (1.12.0)
97
+ globalid (1.1.0)
96
98
  activesupport (>= 5.0)
97
- i18n (1.8.11)
99
+ i18n (1.12.0)
98
100
  concurrent-ruby (~> 1.0)
99
- loofah (2.13.0)
101
+ loofah (2.19.1)
100
102
  crass (~> 1.0.2)
101
103
  nokogiri (>= 1.5.9)
102
- mail (2.7.1)
104
+ mail (2.8.1)
103
105
  mini_mime (>= 0.1.1)
106
+ net-imap
107
+ net-pop
108
+ net-smtp
104
109
  marcel (1.0.2)
110
+ matrix (0.4.2)
105
111
  method_source (1.0.0)
106
112
  mini_mime (1.1.2)
107
- mini_portile2 (2.6.1)
108
- minitest (5.15.0)
113
+ mini_portile2 (2.8.1)
114
+ minitest (5.18.0)
115
+ net-imap (0.3.4)
116
+ date
117
+ net-protocol
118
+ net-pop (0.1.2)
119
+ net-protocol
120
+ net-protocol (0.2.1)
121
+ timeout
122
+ net-smtp (0.3.3)
123
+ net-protocol
109
124
  nio4r (2.5.8)
110
- nokogiri (1.12.5)
111
- mini_portile2 (~> 2.6.1)
125
+ nokogiri (1.14.2)
126
+ mini_portile2 (~> 2.8.0)
112
127
  racc (~> 1.4)
113
- public_suffix (4.0.6)
114
- racc (1.6.0)
115
- rack (2.2.3)
116
- rack-test (1.1.0)
117
- rack (>= 1.0, < 3)
118
- rails (6.1.4.4)
119
- actioncable (= 6.1.4.4)
120
- actionmailbox (= 6.1.4.4)
121
- actionmailer (= 6.1.4.4)
122
- actionpack (= 6.1.4.4)
123
- actiontext (= 6.1.4.4)
124
- actionview (= 6.1.4.4)
125
- activejob (= 6.1.4.4)
126
- activemodel (= 6.1.4.4)
127
- activerecord (= 6.1.4.4)
128
- activestorage (= 6.1.4.4)
129
- activesupport (= 6.1.4.4)
128
+ public_suffix (5.0.1)
129
+ racc (1.6.2)
130
+ rack (2.2.6.4)
131
+ rack-test (2.1.0)
132
+ rack (>= 1.3)
133
+ rails (6.1.7.3)
134
+ actioncable (= 6.1.7.3)
135
+ actionmailbox (= 6.1.7.3)
136
+ actionmailer (= 6.1.7.3)
137
+ actionpack (= 6.1.7.3)
138
+ actiontext (= 6.1.7.3)
139
+ actionview (= 6.1.7.3)
140
+ activejob (= 6.1.7.3)
141
+ activemodel (= 6.1.7.3)
142
+ activerecord (= 6.1.7.3)
143
+ activestorage (= 6.1.7.3)
144
+ activesupport (= 6.1.7.3)
130
145
  bundler (>= 1.15.0)
131
- railties (= 6.1.4.4)
146
+ railties (= 6.1.7.3)
132
147
  sprockets-rails (>= 2.0.0)
133
148
  rails-dom-testing (2.0.3)
134
149
  activesupport (>= 4.2.0)
135
150
  nokogiri (>= 1.6)
136
- rails-html-sanitizer (1.4.2)
137
- loofah (~> 2.3)
138
- railties (6.1.4.4)
139
- actionpack (= 6.1.4.4)
140
- activesupport (= 6.1.4.4)
151
+ rails-html-sanitizer (1.5.0)
152
+ loofah (~> 2.19, >= 2.19.1)
153
+ railties (6.1.7.3)
154
+ actionpack (= 6.1.7.3)
155
+ activesupport (= 6.1.7.3)
141
156
  method_source
142
- rake (>= 0.13)
157
+ rake (>= 12.2)
143
158
  thor (~> 1.0)
144
159
  rake (13.0.6)
145
- regexp_parser (2.2.0)
146
- rspec (3.10.0)
147
- rspec-core (~> 3.10.0)
148
- rspec-expectations (~> 3.10.0)
149
- rspec-mocks (~> 3.10.0)
150
- rspec-core (3.10.1)
151
- rspec-support (~> 3.10.0)
152
- rspec-expectations (3.10.1)
160
+ regexp_parser (2.7.0)
161
+ rspec (3.12.0)
162
+ rspec-core (~> 3.12.0)
163
+ rspec-expectations (~> 3.12.0)
164
+ rspec-mocks (~> 3.12.0)
165
+ rspec-core (3.12.1)
166
+ rspec-support (~> 3.12.0)
167
+ rspec-expectations (3.12.2)
153
168
  diff-lcs (>= 1.2.0, < 2.0)
154
- rspec-support (~> 3.10.0)
155
- rspec-mocks (3.10.2)
169
+ rspec-support (~> 3.12.0)
170
+ rspec-mocks (3.12.4)
156
171
  diff-lcs (>= 1.2.0, < 2.0)
157
- rspec-support (~> 3.10.0)
158
- rspec-support (3.10.3)
172
+ rspec-support (~> 3.12.0)
173
+ rspec-support (3.12.0)
159
174
  sprockets (3.7.2)
160
175
  concurrent-ruby (~> 1.0)
161
176
  rack (> 1, < 3)
@@ -163,8 +178,9 @@ GEM
163
178
  actionpack (>= 5.2)
164
179
  activesupport (>= 5.2)
165
180
  sprockets (>= 3.0.0)
166
- thor (1.1.0)
167
- tzinfo (2.0.4)
181
+ thor (1.2.1)
182
+ timeout (0.3.2)
183
+ tzinfo (2.0.6)
168
184
  concurrent-ruby (~> 1.0)
169
185
  uber (0.0.15)
170
186
  websocket-driver (0.7.5)
@@ -172,7 +188,7 @@ GEM
172
188
  websocket-extensions (0.1.5)
173
189
  xpath (3.2.0)
174
190
  nokogiri (~> 1.8)
175
- zeitwerk (2.5.2)
191
+ zeitwerk (2.6.7)
176
192
 
177
193
  PLATFORMS
178
194
  ruby
@@ -181,7 +197,7 @@ DEPENDENCIES
181
197
  appraisal
182
198
  bundler
183
199
  byebug
184
- capybara (~> 3.35.0)
200
+ capybara
185
201
  nacelle!
186
202
  rails (~> 6.1.0)
187
203
  rake
@@ -189,4 +205,4 @@ DEPENDENCIES
189
205
  sprockets (~> 3.0)
190
206
 
191
207
  BUNDLED WITH
192
- 2.2.32
208
+ 2.4.10
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- nacelle (0.4.1)
4
+ nacelle (0.4.2)
5
5
  cells (~> 3.0)
6
6
  rails
7
7
  sprockets-rails
@@ -9,74 +9,80 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (7.0.0)
13
- actionpack (= 7.0.0)
14
- activesupport (= 7.0.0)
12
+ actioncable (7.0.4.3)
13
+ actionpack (= 7.0.4.3)
14
+ activesupport (= 7.0.4.3)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailbox (7.0.0)
18
- actionpack (= 7.0.0)
19
- activejob (= 7.0.0)
20
- activerecord (= 7.0.0)
21
- activestorage (= 7.0.0)
22
- activesupport (= 7.0.0)
17
+ actionmailbox (7.0.4.3)
18
+ actionpack (= 7.0.4.3)
19
+ activejob (= 7.0.4.3)
20
+ activerecord (= 7.0.4.3)
21
+ activestorage (= 7.0.4.3)
22
+ activesupport (= 7.0.4.3)
23
23
  mail (>= 2.7.1)
24
- actionmailer (7.0.0)
25
- actionpack (= 7.0.0)
26
- actionview (= 7.0.0)
27
- activejob (= 7.0.0)
28
- activesupport (= 7.0.0)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.0.4.3)
28
+ actionpack (= 7.0.4.3)
29
+ actionview (= 7.0.4.3)
30
+ activejob (= 7.0.4.3)
31
+ activesupport (= 7.0.4.3)
29
32
  mail (~> 2.5, >= 2.5.4)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
30
36
  rails-dom-testing (~> 2.0)
31
- actionpack (7.0.0)
32
- actionview (= 7.0.0)
33
- activesupport (= 7.0.0)
37
+ actionpack (7.0.4.3)
38
+ actionview (= 7.0.4.3)
39
+ activesupport (= 7.0.4.3)
34
40
  rack (~> 2.0, >= 2.2.0)
35
41
  rack-test (>= 0.6.3)
36
42
  rails-dom-testing (~> 2.0)
37
43
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
38
- actiontext (7.0.0)
39
- actionpack (= 7.0.0)
40
- activerecord (= 7.0.0)
41
- activestorage (= 7.0.0)
42
- activesupport (= 7.0.0)
44
+ actiontext (7.0.4.3)
45
+ actionpack (= 7.0.4.3)
46
+ activerecord (= 7.0.4.3)
47
+ activestorage (= 7.0.4.3)
48
+ activesupport (= 7.0.4.3)
43
49
  globalid (>= 0.6.0)
44
50
  nokogiri (>= 1.8.5)
45
- actionview (7.0.0)
46
- activesupport (= 7.0.0)
51
+ actionview (7.0.4.3)
52
+ activesupport (= 7.0.4.3)
47
53
  builder (~> 3.1)
48
54
  erubi (~> 1.4)
49
55
  rails-dom-testing (~> 2.0)
50
56
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (7.0.0)
52
- activesupport (= 7.0.0)
57
+ activejob (7.0.4.3)
58
+ activesupport (= 7.0.4.3)
53
59
  globalid (>= 0.3.6)
54
- activemodel (7.0.0)
55
- activesupport (= 7.0.0)
56
- activerecord (7.0.0)
57
- activemodel (= 7.0.0)
58
- activesupport (= 7.0.0)
59
- activestorage (7.0.0)
60
- actionpack (= 7.0.0)
61
- activejob (= 7.0.0)
62
- activerecord (= 7.0.0)
63
- activesupport (= 7.0.0)
60
+ activemodel (7.0.4.3)
61
+ activesupport (= 7.0.4.3)
62
+ activerecord (7.0.4.3)
63
+ activemodel (= 7.0.4.3)
64
+ activesupport (= 7.0.4.3)
65
+ activestorage (7.0.4.3)
66
+ actionpack (= 7.0.4.3)
67
+ activejob (= 7.0.4.3)
68
+ activerecord (= 7.0.4.3)
69
+ activesupport (= 7.0.4.3)
64
70
  marcel (~> 1.0)
65
71
  mini_mime (>= 1.1.0)
66
- activesupport (7.0.0)
72
+ activesupport (7.0.4.3)
67
73
  concurrent-ruby (~> 1.0, >= 1.0.2)
68
74
  i18n (>= 1.6, < 2)
69
75
  minitest (>= 5.1)
70
76
  tzinfo (~> 2.0)
71
- addressable (2.8.0)
72
- public_suffix (>= 2.0.2, < 5.0)
77
+ addressable (2.8.1)
78
+ public_suffix (>= 2.0.2, < 6.0)
73
79
  appraisal (2.4.1)
74
80
  bundler
75
81
  rake
76
82
  thor (>= 0.14.0)
77
83
  builder (3.2.4)
78
84
  byebug (11.1.3)
79
- capybara (3.36.0)
85
+ capybara (3.38.0)
80
86
  addressable
81
87
  matrix
82
88
  mini_mime (>= 0.1.3)
@@ -89,73 +95,86 @@ GEM
89
95
  actionpack (>= 3.0)
90
96
  railties (>= 3.0)
91
97
  uber (~> 0.0.8)
92
- concurrent-ruby (1.1.9)
98
+ concurrent-ruby (1.2.2)
93
99
  crass (1.0.6)
100
+ date (3.3.3)
94
101
  diff-lcs (1.5.0)
95
- erubi (1.10.0)
96
- globalid (1.0.0)
102
+ erubi (1.12.0)
103
+ globalid (1.1.0)
97
104
  activesupport (>= 5.0)
98
- i18n (1.8.11)
105
+ i18n (1.12.0)
99
106
  concurrent-ruby (~> 1.0)
100
- loofah (2.13.0)
107
+ loofah (2.19.1)
101
108
  crass (~> 1.0.2)
102
109
  nokogiri (>= 1.5.9)
103
- mail (2.7.1)
110
+ mail (2.8.1)
104
111
  mini_mime (>= 0.1.1)
112
+ net-imap
113
+ net-pop
114
+ net-smtp
105
115
  marcel (1.0.2)
106
116
  matrix (0.4.2)
107
117
  method_source (1.0.0)
108
118
  mini_mime (1.1.2)
109
- minitest (5.15.0)
119
+ minitest (5.18.0)
120
+ net-imap (0.3.4)
121
+ date
122
+ net-protocol
123
+ net-pop (0.1.2)
124
+ net-protocol
125
+ net-protocol (0.2.1)
126
+ timeout
127
+ net-smtp (0.3.3)
128
+ net-protocol
110
129
  nio4r (2.5.8)
111
- nokogiri (1.12.5-x86_64-linux)
130
+ nokogiri (1.14.2-x86_64-linux)
112
131
  racc (~> 1.4)
113
- public_suffix (4.0.6)
114
- racc (1.6.0)
115
- rack (2.2.3)
116
- rack-test (1.1.0)
117
- rack (>= 1.0, < 3)
118
- rails (7.0.0)
119
- actioncable (= 7.0.0)
120
- actionmailbox (= 7.0.0)
121
- actionmailer (= 7.0.0)
122
- actionpack (= 7.0.0)
123
- actiontext (= 7.0.0)
124
- actionview (= 7.0.0)
125
- activejob (= 7.0.0)
126
- activemodel (= 7.0.0)
127
- activerecord (= 7.0.0)
128
- activestorage (= 7.0.0)
129
- activesupport (= 7.0.0)
132
+ public_suffix (5.0.1)
133
+ racc (1.6.2)
134
+ rack (2.2.6.4)
135
+ rack-test (2.1.0)
136
+ rack (>= 1.3)
137
+ rails (7.0.4.3)
138
+ actioncable (= 7.0.4.3)
139
+ actionmailbox (= 7.0.4.3)
140
+ actionmailer (= 7.0.4.3)
141
+ actionpack (= 7.0.4.3)
142
+ actiontext (= 7.0.4.3)
143
+ actionview (= 7.0.4.3)
144
+ activejob (= 7.0.4.3)
145
+ activemodel (= 7.0.4.3)
146
+ activerecord (= 7.0.4.3)
147
+ activestorage (= 7.0.4.3)
148
+ activesupport (= 7.0.4.3)
130
149
  bundler (>= 1.15.0)
131
- railties (= 7.0.0)
150
+ railties (= 7.0.4.3)
132
151
  rails-dom-testing (2.0.3)
133
152
  activesupport (>= 4.2.0)
134
153
  nokogiri (>= 1.6)
135
- rails-html-sanitizer (1.4.2)
136
- loofah (~> 2.3)
137
- railties (7.0.0)
138
- actionpack (= 7.0.0)
139
- activesupport (= 7.0.0)
154
+ rails-html-sanitizer (1.5.0)
155
+ loofah (~> 2.19, >= 2.19.1)
156
+ railties (7.0.4.3)
157
+ actionpack (= 7.0.4.3)
158
+ activesupport (= 7.0.4.3)
140
159
  method_source
141
160
  rake (>= 12.2)
142
161
  thor (~> 1.0)
143
162
  zeitwerk (~> 2.5)
144
163
  rake (13.0.6)
145
- regexp_parser (2.2.0)
146
- rspec (3.10.0)
147
- rspec-core (~> 3.10.0)
148
- rspec-expectations (~> 3.10.0)
149
- rspec-mocks (~> 3.10.0)
150
- rspec-core (3.10.1)
151
- rspec-support (~> 3.10.0)
152
- rspec-expectations (3.10.1)
164
+ regexp_parser (2.7.0)
165
+ rspec (3.12.0)
166
+ rspec-core (~> 3.12.0)
167
+ rspec-expectations (~> 3.12.0)
168
+ rspec-mocks (~> 3.12.0)
169
+ rspec-core (3.12.1)
170
+ rspec-support (~> 3.12.0)
171
+ rspec-expectations (3.12.2)
153
172
  diff-lcs (>= 1.2.0, < 2.0)
154
- rspec-support (~> 3.10.0)
155
- rspec-mocks (3.10.2)
173
+ rspec-support (~> 3.12.0)
174
+ rspec-mocks (3.12.4)
156
175
  diff-lcs (>= 1.2.0, < 2.0)
157
- rspec-support (~> 3.10.0)
158
- rspec-support (3.10.3)
176
+ rspec-support (~> 3.12.0)
177
+ rspec-support (3.12.0)
159
178
  sprockets (3.7.2)
160
179
  concurrent-ruby (~> 1.0)
161
180
  rack (> 1, < 3)
@@ -163,8 +182,9 @@ GEM
163
182
  actionpack (>= 5.2)
164
183
  activesupport (>= 5.2)
165
184
  sprockets (>= 3.0.0)
166
- thor (1.1.0)
167
- tzinfo (2.0.4)
185
+ thor (1.2.1)
186
+ timeout (0.3.2)
187
+ tzinfo (2.0.6)
168
188
  concurrent-ruby (~> 1.0)
169
189
  uber (0.0.15)
170
190
  websocket-driver (0.7.5)
@@ -172,7 +192,7 @@ GEM
172
192
  websocket-extensions (0.1.5)
173
193
  xpath (3.2.0)
174
194
  nokogiri (~> 1.8)
175
- zeitwerk (2.5.2)
195
+ zeitwerk (2.6.7)
176
196
 
177
197
  PLATFORMS
178
198
  x86_64-linux
@@ -189,4 +209,4 @@ DEPENDENCIES
189
209
  sprockets (~> 3.0)
190
210
 
191
211
  BUNDLED WITH
192
- 2.2.32
212
+ 2.4.10
@@ -1,34 +1,23 @@
1
1
  require "active_support/xml_mini/nokogiri"
2
2
  ActiveSupport::XmlMini.backend = "Nokogiri"
3
-
4
3
  require "active_support/core_ext/hash"
4
+ # we need all this for Hash.from_xml
5
5
 
6
6
  module Nacelle
7
- class Middleware
8
- def initialize app
9
- @app = app
10
- end
11
-
12
- def call env
13
- status, headers, body = @app.call env
14
- return [status, headers, body] unless headers["Content-Type"].try(:include?, "text/html")
15
-
16
- new_body = ""
17
- body.each { |part| new_body << part }
18
- process! new_body, env
19
- headers.delete("Content-Length")
20
- [status, headers, [new_body]]
7
+ class AfterFilter < Struct.new(:controller)
8
+ def self.after controller
9
+ if controller.content_type&.include?("text/html")
10
+ new(controller).call
11
+ end
21
12
  end
22
13
 
23
- private
24
-
25
- def process! body, env
26
- cells = cells body
14
+ def call
15
+ cells = cells controller.response.body
27
16
 
28
- body.gsub!(/(#{cells.keys.join('|')})/) do |tag|
17
+ controller.response.body.gsub!(/(#{cells.keys.join('|')})/) do |tag|
29
18
  name, state, attrs = cells[tag]
30
19
  attrs = HashWithIndifferentAccess.new(attrs)
31
- cell = "#{name.camelize}Cell".constantize.new_with_request(Rack::Request.new(env))
20
+ cell = "#{name.camelize}Cell".constantize.new_with_controller(controller)
32
21
  args = [state]
33
22
  attrs.delete "class" # ignore styling class
34
23
  args << attrs unless attrs.empty?
@@ -40,8 +29,10 @@ module Nacelle
40
29
  end unless cells.empty?
41
30
  end
42
31
 
43
- def cells body
44
- body.scan(/(<cell[^>]*\/\s*>|<cell[^>]*>.*?<\/cell>)/m).inject({}) do |cells, matches|
32
+ private
33
+
34
+ def cells html
35
+ html.scan(/(<cell[^>]*\/\s*>|<cell[^>]*>.*?<\/cell>)/m).inject({}) do |cells, matches|
45
36
  tag = matches.first
46
37
  attrs = Hash.from_xml(tag)['cell']
47
38
  name, state = attrs.delete('name').split('/')
@@ -51,3 +42,4 @@ module Nacelle
51
42
  end
52
43
  end
53
44
  end
45
+