nacelle 0.4.2 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73e2b1ebe8855c1d833ef7c6787b29ae5d4a97be00e93670bf7ebbea31a08c3d
4
- data.tar.gz: 1f8e4f6d90ebd79eb37d82ce2a5c978c4e328471ef4b8a071c0a9dbbce1b7abc
3
+ metadata.gz: 149ec09f11d092901205917fe830613e48928b109d1f306b3ead009603c0c16b
4
+ data.tar.gz: 926f46c7a25c0f0fd11b1c2d066be53516932691df831cb12bc0d6e6a7a76f42
5
5
  SHA512:
6
- metadata.gz: f769b8bcd9cf422caf1896a69891f7100c08c9ee216badea09447945d12760ca410eabad5252266f3f67c90986389d7eb5ce5f4537d5c0c942260fb742b604d1
7
- data.tar.gz: df7b2ff6ec8ff0940906ec0fe98fd9fd9486578737a6fbf76f5bb12dbdb0b6da0afe60e94c7e4cff36e7f56dff1a239bb6937f2ecbe45485f7414479074e4bee
6
+ metadata.gz: b616c08dc70b7590733542be6c37ddba074c82f5790d26ca8790ddb8b793b47a2b37e6823e07eb1502e8ee6bcb9c908e385e741337ec48e0f3936c631e48314d
7
+ data.tar.gz: cef7e5fb3816f4cd577d905b4e8c1e41f504035c3e21fb218d39d5511853cd05c1d4229cbadf07f46e7c0fdbab189400812ff41f413566c2f6048bbdf8ec18da
data/Appraisals CHANGED
@@ -1,23 +1,11 @@
1
- appraise "rails-5.1" do
2
- gem "rails", "~>5.1.0"
3
- gem "sprockets", "~>3.0"
4
- end
5
-
6
- appraise "rails-5.2" do
7
- gem "rails", "~>5.2.0"
8
- gem "sprockets", "~>3.0"
9
- end
10
-
11
1
  appraise "rails-6.0" do
12
2
  gem "rails", "~>6.0.0"
13
3
  gem "sprockets", "~>3.0"
14
- gem "capybara", "~>3.35.0" # 3.36 requires ruby 2.6+
15
4
  end
16
5
 
17
6
  appraise "rails-6.1" do
18
7
  gem "rails", "~>6.1.0"
19
8
  gem "sprockets", "~>3.0"
20
- gem "capybara", "~>3.35.0" # 3.36 requires ruby 2.6+
21
9
  end
22
10
 
23
11
  appraise "rails-7.0" do
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in nacelle.gemspec
4
4
  gemspec
5
5
 
6
- gem "rails", "~>6.1.0"
6
+ gem "rails", "~>7.0.0"
7
7
  gem "sprockets", "~>3.0"
@@ -4,6 +4,5 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~>6.0.0"
6
6
  gem "sprockets", "~>3.0"
7
- gem "capybara", "~>3.35.0"
8
7
 
9
8
  gemspec path: "../"
@@ -9,71 +9,72 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (6.0.4.4)
13
- actionpack (= 6.0.4.4)
12
+ actioncable (6.0.6.1)
13
+ actionpack (= 6.0.6.1)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailbox (6.0.4.4)
17
- actionpack (= 6.0.4.4)
18
- activejob (= 6.0.4.4)
19
- activerecord (= 6.0.4.4)
20
- activestorage (= 6.0.4.4)
21
- activesupport (= 6.0.4.4)
16
+ actionmailbox (6.0.6.1)
17
+ actionpack (= 6.0.6.1)
18
+ activejob (= 6.0.6.1)
19
+ activerecord (= 6.0.6.1)
20
+ activestorage (= 6.0.6.1)
21
+ activesupport (= 6.0.6.1)
22
22
  mail (>= 2.7.1)
23
- actionmailer (6.0.4.4)
24
- actionpack (= 6.0.4.4)
25
- actionview (= 6.0.4.4)
26
- activejob (= 6.0.4.4)
23
+ actionmailer (6.0.6.1)
24
+ actionpack (= 6.0.6.1)
25
+ actionview (= 6.0.6.1)
26
+ activejob (= 6.0.6.1)
27
27
  mail (~> 2.5, >= 2.5.4)
28
28
  rails-dom-testing (~> 2.0)
29
- actionpack (6.0.4.4)
30
- actionview (= 6.0.4.4)
31
- activesupport (= 6.0.4.4)
29
+ actionpack (6.0.6.1)
30
+ actionview (= 6.0.6.1)
31
+ activesupport (= 6.0.6.1)
32
32
  rack (~> 2.0, >= 2.0.8)
33
33
  rack-test (>= 0.6.3)
34
34
  rails-dom-testing (~> 2.0)
35
35
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.0.4.4)
37
- actionpack (= 6.0.4.4)
38
- activerecord (= 6.0.4.4)
39
- activestorage (= 6.0.4.4)
40
- activesupport (= 6.0.4.4)
36
+ actiontext (6.0.6.1)
37
+ actionpack (= 6.0.6.1)
38
+ activerecord (= 6.0.6.1)
39
+ activestorage (= 6.0.6.1)
40
+ activesupport (= 6.0.6.1)
41
41
  nokogiri (>= 1.8.5)
42
- actionview (6.0.4.4)
43
- activesupport (= 6.0.4.4)
42
+ actionview (6.0.6.1)
43
+ activesupport (= 6.0.6.1)
44
44
  builder (~> 3.1)
45
45
  erubi (~> 1.4)
46
46
  rails-dom-testing (~> 2.0)
47
47
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.0.4.4)
49
- activesupport (= 6.0.4.4)
48
+ activejob (6.0.6.1)
49
+ activesupport (= 6.0.6.1)
50
50
  globalid (>= 0.3.6)
51
- activemodel (6.0.4.4)
52
- activesupport (= 6.0.4.4)
53
- activerecord (6.0.4.4)
54
- activemodel (= 6.0.4.4)
55
- activesupport (= 6.0.4.4)
56
- activestorage (6.0.4.4)
57
- actionpack (= 6.0.4.4)
58
- activejob (= 6.0.4.4)
59
- activerecord (= 6.0.4.4)
60
- marcel (~> 1.0.0)
61
- activesupport (6.0.4.4)
51
+ activemodel (6.0.6.1)
52
+ activesupport (= 6.0.6.1)
53
+ activerecord (6.0.6.1)
54
+ activemodel (= 6.0.6.1)
55
+ activesupport (= 6.0.6.1)
56
+ activestorage (6.0.6.1)
57
+ actionpack (= 6.0.6.1)
58
+ activejob (= 6.0.6.1)
59
+ activerecord (= 6.0.6.1)
60
+ marcel (~> 1.0)
61
+ activesupport (6.0.6.1)
62
62
  concurrent-ruby (~> 1.0, >= 1.0.2)
63
63
  i18n (>= 0.7, < 2)
64
64
  minitest (~> 5.1)
65
65
  tzinfo (~> 1.1)
66
66
  zeitwerk (~> 2.2, >= 2.2.2)
67
- addressable (2.8.0)
68
- public_suffix (>= 2.0.2, < 5.0)
67
+ addressable (2.8.1)
68
+ public_suffix (>= 2.0.2, < 6.0)
69
69
  appraisal (2.4.1)
70
70
  bundler
71
71
  rake
72
72
  thor (>= 0.14.0)
73
73
  builder (3.2.4)
74
74
  byebug (11.1.3)
75
- capybara (3.35.3)
75
+ capybara (3.38.0)
76
76
  addressable
77
+ matrix
77
78
  mini_mime (>= 0.1.3)
78
79
  nokogiri (~> 1.8)
79
80
  rack (>= 1.6.0)
@@ -84,74 +85,88 @@ GEM
84
85
  actionpack (>= 3.0)
85
86
  railties (>= 3.0)
86
87
  uber (~> 0.0.8)
87
- concurrent-ruby (1.1.9)
88
+ concurrent-ruby (1.2.2)
88
89
  crass (1.0.6)
90
+ date (3.3.3)
89
91
  diff-lcs (1.5.0)
90
- erubi (1.10.0)
91
- globalid (1.0.0)
92
+ erubi (1.12.0)
93
+ globalid (1.1.0)
92
94
  activesupport (>= 5.0)
93
- i18n (1.8.11)
95
+ i18n (1.12.0)
94
96
  concurrent-ruby (~> 1.0)
95
- loofah (2.13.0)
97
+ loofah (2.19.1)
96
98
  crass (~> 1.0.2)
97
99
  nokogiri (>= 1.5.9)
98
- mail (2.7.1)
100
+ mail (2.8.1)
99
101
  mini_mime (>= 0.1.1)
102
+ net-imap
103
+ net-pop
104
+ net-smtp
100
105
  marcel (1.0.2)
106
+ matrix (0.4.2)
101
107
  method_source (1.0.0)
102
108
  mini_mime (1.1.2)
103
- mini_portile2 (2.6.1)
104
- minitest (5.15.0)
109
+ mini_portile2 (2.8.1)
110
+ minitest (5.18.0)
111
+ net-imap (0.3.4)
112
+ date
113
+ net-protocol
114
+ net-pop (0.1.2)
115
+ net-protocol
116
+ net-protocol (0.2.1)
117
+ timeout
118
+ net-smtp (0.3.3)
119
+ net-protocol
105
120
  nio4r (2.5.8)
106
- nokogiri (1.12.5)
107
- mini_portile2 (~> 2.6.1)
121
+ nokogiri (1.14.2)
122
+ mini_portile2 (~> 2.8.0)
108
123
  racc (~> 1.4)
109
- public_suffix (4.0.6)
110
- racc (1.6.0)
111
- rack (2.2.3)
112
- rack-test (1.1.0)
113
- rack (>= 1.0, < 3)
114
- rails (6.0.4.4)
115
- actioncable (= 6.0.4.4)
116
- actionmailbox (= 6.0.4.4)
117
- actionmailer (= 6.0.4.4)
118
- actionpack (= 6.0.4.4)
119
- actiontext (= 6.0.4.4)
120
- actionview (= 6.0.4.4)
121
- activejob (= 6.0.4.4)
122
- activemodel (= 6.0.4.4)
123
- activerecord (= 6.0.4.4)
124
- activestorage (= 6.0.4.4)
125
- activesupport (= 6.0.4.4)
124
+ public_suffix (5.0.1)
125
+ racc (1.6.2)
126
+ rack (2.2.6.4)
127
+ rack-test (2.1.0)
128
+ rack (>= 1.3)
129
+ rails (6.0.6.1)
130
+ actioncable (= 6.0.6.1)
131
+ actionmailbox (= 6.0.6.1)
132
+ actionmailer (= 6.0.6.1)
133
+ actionpack (= 6.0.6.1)
134
+ actiontext (= 6.0.6.1)
135
+ actionview (= 6.0.6.1)
136
+ activejob (= 6.0.6.1)
137
+ activemodel (= 6.0.6.1)
138
+ activerecord (= 6.0.6.1)
139
+ activestorage (= 6.0.6.1)
140
+ activesupport (= 6.0.6.1)
126
141
  bundler (>= 1.3.0)
127
- railties (= 6.0.4.4)
142
+ railties (= 6.0.6.1)
128
143
  sprockets-rails (>= 2.0.0)
129
144
  rails-dom-testing (2.0.3)
130
145
  activesupport (>= 4.2.0)
131
146
  nokogiri (>= 1.6)
132
- rails-html-sanitizer (1.4.2)
133
- loofah (~> 2.3)
134
- railties (6.0.4.4)
135
- actionpack (= 6.0.4.4)
136
- activesupport (= 6.0.4.4)
147
+ rails-html-sanitizer (1.5.0)
148
+ loofah (~> 2.19, >= 2.19.1)
149
+ railties (6.0.6.1)
150
+ actionpack (= 6.0.6.1)
151
+ activesupport (= 6.0.6.1)
137
152
  method_source
138
153
  rake (>= 0.8.7)
139
154
  thor (>= 0.20.3, < 2.0)
140
155
  rake (13.0.6)
141
- regexp_parser (2.2.0)
142
- rspec (3.10.0)
143
- rspec-core (~> 3.10.0)
144
- rspec-expectations (~> 3.10.0)
145
- rspec-mocks (~> 3.10.0)
146
- rspec-core (3.10.1)
147
- rspec-support (~> 3.10.0)
148
- rspec-expectations (3.10.1)
156
+ regexp_parser (2.7.0)
157
+ rspec (3.12.0)
158
+ rspec-core (~> 3.12.0)
159
+ rspec-expectations (~> 3.12.0)
160
+ rspec-mocks (~> 3.12.0)
161
+ rspec-core (3.12.1)
162
+ rspec-support (~> 3.12.0)
163
+ rspec-expectations (3.12.2)
149
164
  diff-lcs (>= 1.2.0, < 2.0)
150
- rspec-support (~> 3.10.0)
151
- rspec-mocks (3.10.2)
165
+ rspec-support (~> 3.12.0)
166
+ rspec-mocks (3.12.4)
152
167
  diff-lcs (>= 1.2.0, < 2.0)
153
- rspec-support (~> 3.10.0)
154
- rspec-support (3.10.3)
168
+ rspec-support (~> 3.12.0)
169
+ rspec-support (3.12.0)
155
170
  sprockets (3.7.2)
156
171
  concurrent-ruby (~> 1.0)
157
172
  rack (> 1, < 3)
@@ -159,9 +174,10 @@ GEM
159
174
  actionpack (>= 5.2)
160
175
  activesupport (>= 5.2)
161
176
  sprockets (>= 3.0.0)
162
- thor (1.1.0)
177
+ thor (1.2.1)
163
178
  thread_safe (0.3.6)
164
- tzinfo (1.2.9)
179
+ timeout (0.3.2)
180
+ tzinfo (1.2.11)
165
181
  thread_safe (~> 0.1)
166
182
  uber (0.0.15)
167
183
  websocket-driver (0.7.5)
@@ -169,7 +185,7 @@ GEM
169
185
  websocket-extensions (0.1.5)
170
186
  xpath (3.2.0)
171
187
  nokogiri (~> 1.8)
172
- zeitwerk (2.5.2)
188
+ zeitwerk (2.6.7)
173
189
 
174
190
  PLATFORMS
175
191
  ruby
@@ -178,7 +194,7 @@ DEPENDENCIES
178
194
  appraisal
179
195
  bundler
180
196
  byebug
181
- capybara (~> 3.35.0)
197
+ capybara
182
198
  nacelle!
183
199
  rails (~> 6.0.0)
184
200
  rake
@@ -186,4 +202,4 @@ DEPENDENCIES
186
202
  sprockets (~> 3.0)
187
203
 
188
204
  BUNDLED WITH
189
- 2.2.32
205
+ 2.4.10
@@ -4,6 +4,5 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~>6.1.0"
6
6
  gem "sprockets", "~>3.0"
7
- gem "capybara", "~>3.35.0"
8
7
 
9
8
  gemspec path: "../"
@@ -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
@@ -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
+
data/lib/nacelle/cell.rb CHANGED
@@ -4,12 +4,36 @@ module Nacelle
4
4
  class Cell < Cell::Base
5
5
  self.view_paths += %w[app/cells app/views]
6
6
 
7
- def self.new_with_request request
8
- new.tap { |cell| cell.instance_variable_set :@request, request }
7
+ def self.new_with_controller controller
8
+ new.tap do |cell|
9
+ cell.instance_variable_set :@controller, controller
10
+ cell.instance_variable_set :@request, controller.request
11
+ cell.instance_variable_set :@session, controller.session
12
+ cell.instance_variable_set :@cookies, controller.send(:cookies)
13
+ end
9
14
  end
10
15
 
11
- private def request
12
- @request
16
+ def self.updated_at
17
+ Time.new(2000) # can be overriden to bust caches
18
+ end
19
+
20
+ def self.cache_key
21
+ to_s # can be overriden to bust caches
22
+ end
23
+
24
+ attr_reader :request, :session, :cookies
25
+
26
+ delegate :perform_caching, :read_fragment, :write_fragment, to: :@controller
27
+
28
+ def self.action_methods
29
+ super - %w[
30
+ cookies
31
+ request
32
+ session
33
+ read_fragment
34
+ write_fragment
35
+ perform_caching
36
+ ]
13
37
  end
14
38
  end
15
39
  end
@@ -19,5 +43,9 @@ if Rails.version >= "6.1.0"
19
43
  def compiled_method_container
20
44
  ActionView::Base
21
45
  end
46
+
47
+ def view_cache_dependencies
48
+ []
49
+ end
22
50
  end
23
51
  end
@@ -0,0 +1,17 @@
1
+ module Nacelle
2
+ module HasCells
3
+ def has_cells *columns
4
+ define_method :cells do
5
+ columns.flat_map do |column|
6
+ send(column).to_s.scan(/(<cell[^>]*\/\s*>|<cell[^>]*>.*?<\/cell>)/m).map do |matches|
7
+ tag = matches.first
8
+ attrs = Hash.from_xml(tag)['cell']
9
+ name, _ = attrs.delete('name').split('/')
10
+ "#{name.camelize}Cell".constantize
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+
@@ -1,3 +1,3 @@
1
1
  module Nacelle
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/nacelle.rb CHANGED
@@ -2,12 +2,14 @@ require "nacelle/version"
2
2
  require "action_controller/railtie"
3
3
  require "sprockets/railtie"
4
4
  require "nacelle/cell"
5
- require "nacelle/middleware"
5
+ require "nacelle/has_cells"
6
+ require "nacelle/after_filter"
6
7
 
7
8
  module Nacelle
8
9
  class Engine < ::Rails::Engine
9
10
  initializer "nacelle.init" do |app|
10
- app.config.middleware.use Nacelle::Middleware
11
+ ActionController::Base.after_action AfterFilter
12
+ ActiveRecord::Base.extend HasCells if defined?(ActiveRecord)
11
13
  end
12
14
 
13
15
  initializer "nacelle.assets.precompile" do |app|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nacelle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -168,9 +168,10 @@ files:
168
168
  - gemfiles/rails_7.0.gemfile
169
169
  - gemfiles/rails_7.0.gemfile.lock
170
170
  - lib/nacelle.rb
171
+ - lib/nacelle/after_filter.rb
171
172
  - lib/nacelle/cell.rb
172
173
  - lib/nacelle/cells_serializer.rb
173
- - lib/nacelle/middleware.rb
174
+ - lib/nacelle/has_cells.rb
174
175
  - lib/nacelle/version.rb
175
176
  - nacelle.gemspec
176
177
  homepage: https://github.com/botandrose/nacelle
@@ -192,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
193
  - !ruby/object:Gem::Version
193
194
  version: '0'
194
195
  requirements: []
195
- rubygems_version: 3.2.32
196
+ rubygems_version: 3.3.26
196
197
  signing_key:
197
198
  specification_version: 4
198
199
  summary: Embed cells in the markup of your CMS.