nacelle 0.4.0 → 0.4.2

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: 1304b2be3d848f71a09e36ef6b9a53a3d02c54da24c30c96da40e65850a15bf9
4
- data.tar.gz: 690b2fdb6a94aa3130e4f0f6e31fff95e208c82faf620ef70bc0d4d3ae23495f
3
+ metadata.gz: 73e2b1ebe8855c1d833ef7c6787b29ae5d4a97be00e93670bf7ebbea31a08c3d
4
+ data.tar.gz: 1f8e4f6d90ebd79eb37d82ce2a5c978c4e328471ef4b8a071c0a9dbbce1b7abc
5
5
  SHA512:
6
- metadata.gz: d5820e4fa5f4ebec5566dc435999dc105657a1ab82db9ee660b11f7ea10a0370bed1b3446d13bbc82dbbcfc1ebc4b9f6f89bb9777ea32c8886867556cba4d3c6
7
- data.tar.gz: 9cc772f17b7d71e1289720006deda728e201d33b4760cf8c033f5aa48163d0c31e9a0fed0dc90ea4bfeb4f148694018765a4b969828abef656e554ede8f259f3
6
+ metadata.gz: f769b8bcd9cf422caf1896a69891f7100c08c9ee216badea09447945d12760ca410eabad5252266f3f67c90986389d7eb5ce5f4537d5c0c942260fb742b604d1
7
+ data.tar.gz: df7b2ff6ec8ff0940906ec0fe98fd9fd9486578737a6fbf76f5bb12dbdb0b6da0afe60e94c7e4cff36e7f56dff1a239bb6937f2ecbe45485f7414479074e4bee
@@ -5,23 +5,8 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- gemfile: [ rails_5.1, rails_5.2, rails_6.0, rails_6.1, rails_7.0 ]
9
- ruby: [ 2.4, 2.5, 2.6, 2.7, '3.0' ]
10
- exclude:
11
- - gemfile: rails_5.1
12
- ruby: 3.0
13
- - gemfile: rails_5.2
14
- ruby: 3.0
15
- - gemfile: rails_6.0
16
- ruby: 2.4
17
- - gemfile: rails_6.1
18
- ruby: 2.4
19
- - gemfile: rails_7.0
20
- ruby: 2.4
21
- - gemfile: rails_7.0
22
- ruby: 2.5
23
- - gemfile: rails_7.0
24
- ruby: 2.6
8
+ gemfile: [ rails_6.0, rails_6.1, rails_7.0 ]
9
+ ruby: [ 2.7, '3.0', 3.1 ]
25
10
 
26
11
  runs-on: ubuntu-latest
27
12
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
@@ -78,6 +78,14 @@ CKEDITOR.dialog.add("cellDialog", function(editor) {
78
78
  } else {
79
79
  return values[0]
80
80
  }
81
+ break;
82
+ case 'select-multiple':
83
+ return Array.from(element.options)
84
+ .filter(o => o.selected)
85
+ .map(o => o.value)
86
+ .join(",")
87
+ break;
88
+
81
89
  default:
82
90
  return element.value
83
91
  }
@@ -105,10 +113,14 @@ CKEDITOR.dialog.add("cellDialog", function(editor) {
105
113
  break;
106
114
 
107
115
  case 'select-multiple':
108
- var values = value.constructor === Array ? value : [value];
109
- for(var k = 0; k < element.options.length; k++) {
110
- element.options[k].selected = (values.indexOf(element.options[k].value) > -1 );
111
- }
116
+ var values = value.toString().split(",");
117
+ Array.from(element.options).forEach(option => {
118
+ if(values.includes(option.value)) {
119
+ option.setAttribute("selected", "selected")
120
+ } else {
121
+ option.removeAttribute("selected")
122
+ }
123
+ })
112
124
  break;
113
125
 
114
126
  case 'select':
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- nacelle (0.4.0)
4
+ nacelle (0.4.2)
5
5
  cells (~> 3.0)
6
6
  rails
7
7
  sprockets-rails
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- nacelle (0.4.0)
4
+ nacelle (0.4.2)
5
5
  cells (~> 3.0)
6
6
  rails
7
7
  sprockets-rails
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- nacelle (0.4.0)
4
+ nacelle (0.4.2)
5
5
  cells (~> 3.0)
6
6
  rails
7
7
  sprockets-rails
@@ -16,7 +16,7 @@ module Nacelle
16
16
  new_body = ""
17
17
  body.each { |part| new_body << part }
18
18
  process! new_body, env
19
- headers["Content-Length"] = new_body.length.to_s
19
+ headers.delete("Content-Length")
20
20
  [status, headers, [new_body]]
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Nacelle
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.2"
3
3
  end
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.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-01 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -161,10 +161,6 @@ files:
161
161
  - bin/setup
162
162
  - config/routes.rb
163
163
  - gemfiles/.bundle/config
164
- - gemfiles/rails_5.1.gemfile
165
- - gemfiles/rails_5.1.gemfile.lock
166
- - gemfiles/rails_5.2.gemfile
167
- - gemfiles/rails_5.2.gemfile.lock
168
164
  - gemfiles/rails_6.0.gemfile
169
165
  - gemfiles/rails_6.0.gemfile.lock
170
166
  - gemfiles/rails_6.1.gemfile
@@ -196,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
192
  - !ruby/object:Gem::Version
197
193
  version: '0'
198
194
  requirements: []
199
- rubygems_version: 3.0.8
195
+ rubygems_version: 3.2.32
200
196
  signing_key:
201
197
  specification_version: 4
202
198
  summary: Embed cells in the markup of your CMS.
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~>5.1.0"
6
- gem "sprockets", "~>3.0"
7
-
8
- gemspec path: "../"
@@ -1,165 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- nacelle (0.4.0)
5
- cells (~> 3.0)
6
- rails
7
- sprockets-rails
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (5.1.7)
13
- actionpack (= 5.1.7)
14
- nio4r (~> 2.0)
15
- websocket-driver (~> 0.6.1)
16
- actionmailer (5.1.7)
17
- actionpack (= 5.1.7)
18
- actionview (= 5.1.7)
19
- activejob (= 5.1.7)
20
- mail (~> 2.5, >= 2.5.4)
21
- rails-dom-testing (~> 2.0)
22
- actionpack (5.1.7)
23
- actionview (= 5.1.7)
24
- activesupport (= 5.1.7)
25
- rack (~> 2.0)
26
- rack-test (>= 0.6.3)
27
- rails-dom-testing (~> 2.0)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.1.7)
30
- activesupport (= 5.1.7)
31
- builder (~> 3.1)
32
- erubi (~> 1.4)
33
- rails-dom-testing (~> 2.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.1.7)
36
- activesupport (= 5.1.7)
37
- globalid (>= 0.3.6)
38
- activemodel (5.1.7)
39
- activesupport (= 5.1.7)
40
- activerecord (5.1.7)
41
- activemodel (= 5.1.7)
42
- activesupport (= 5.1.7)
43
- arel (~> 8.0)
44
- activesupport (5.1.7)
45
- concurrent-ruby (~> 1.0, >= 1.0.2)
46
- i18n (>= 0.7, < 2)
47
- minitest (~> 5.1)
48
- tzinfo (~> 1.1)
49
- addressable (2.8.0)
50
- public_suffix (>= 2.0.2, < 5.0)
51
- appraisal (2.4.1)
52
- bundler
53
- rake
54
- thor (>= 0.14.0)
55
- arel (8.0.0)
56
- builder (3.2.4)
57
- byebug (11.1.3)
58
- capybara (3.32.2)
59
- addressable
60
- mini_mime (>= 0.1.3)
61
- nokogiri (~> 1.8)
62
- rack (>= 1.6.0)
63
- rack-test (>= 0.6.3)
64
- regexp_parser (~> 1.5)
65
- xpath (~> 3.2)
66
- cells (3.11.3)
67
- actionpack (>= 3.0)
68
- railties (>= 3.0)
69
- uber (~> 0.0.8)
70
- concurrent-ruby (1.1.9)
71
- crass (1.0.6)
72
- diff-lcs (1.5.0)
73
- erubi (1.10.0)
74
- globalid (0.4.2)
75
- activesupport (>= 4.2.0)
76
- i18n (1.8.11)
77
- concurrent-ruby (~> 1.0)
78
- loofah (2.13.0)
79
- crass (~> 1.0.2)
80
- nokogiri (>= 1.5.9)
81
- mail (2.7.1)
82
- mini_mime (>= 0.1.1)
83
- method_source (1.0.0)
84
- mini_mime (1.1.2)
85
- mini_portile2 (2.4.0)
86
- minitest (5.15.0)
87
- nio4r (2.5.8)
88
- nokogiri (1.10.10)
89
- mini_portile2 (~> 2.4.0)
90
- public_suffix (4.0.6)
91
- rack (2.2.3)
92
- rack-test (1.1.0)
93
- rack (>= 1.0, < 3)
94
- rails (5.1.7)
95
- actioncable (= 5.1.7)
96
- actionmailer (= 5.1.7)
97
- actionpack (= 5.1.7)
98
- actionview (= 5.1.7)
99
- activejob (= 5.1.7)
100
- activemodel (= 5.1.7)
101
- activerecord (= 5.1.7)
102
- activesupport (= 5.1.7)
103
- bundler (>= 1.3.0)
104
- railties (= 5.1.7)
105
- sprockets-rails (>= 2.0.0)
106
- rails-dom-testing (2.0.3)
107
- activesupport (>= 4.2.0)
108
- nokogiri (>= 1.6)
109
- rails-html-sanitizer (1.4.2)
110
- loofah (~> 2.3)
111
- railties (5.1.7)
112
- actionpack (= 5.1.7)
113
- activesupport (= 5.1.7)
114
- method_source
115
- rake (>= 0.8.7)
116
- thor (>= 0.18.1, < 2.0)
117
- rake (13.0.6)
118
- regexp_parser (1.8.2)
119
- rspec (3.10.0)
120
- rspec-core (~> 3.10.0)
121
- rspec-expectations (~> 3.10.0)
122
- rspec-mocks (~> 3.10.0)
123
- rspec-core (3.10.1)
124
- rspec-support (~> 3.10.0)
125
- rspec-expectations (3.10.1)
126
- diff-lcs (>= 1.2.0, < 2.0)
127
- rspec-support (~> 3.10.0)
128
- rspec-mocks (3.10.2)
129
- diff-lcs (>= 1.2.0, < 2.0)
130
- rspec-support (~> 3.10.0)
131
- rspec-support (3.10.3)
132
- sprockets (3.7.2)
133
- concurrent-ruby (~> 1.0)
134
- rack (> 1, < 3)
135
- sprockets-rails (3.2.2)
136
- actionpack (>= 4.0)
137
- activesupport (>= 4.0)
138
- sprockets (>= 3.0.0)
139
- thor (1.1.0)
140
- thread_safe (0.3.6)
141
- tzinfo (1.2.9)
142
- thread_safe (~> 0.1)
143
- uber (0.0.15)
144
- websocket-driver (0.6.5)
145
- websocket-extensions (>= 0.1.0)
146
- websocket-extensions (0.1.5)
147
- xpath (3.2.0)
148
- nokogiri (~> 1.8)
149
-
150
- PLATFORMS
151
- ruby
152
-
153
- DEPENDENCIES
154
- appraisal
155
- bundler
156
- byebug
157
- capybara
158
- nacelle!
159
- rails (~> 5.1.0)
160
- rake
161
- rspec
162
- sprockets (~> 3.0)
163
-
164
- BUNDLED WITH
165
- 2.2.32
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~>5.2.0"
6
- gem "sprockets", "~>3.0"
7
-
8
- gemspec path: "../"
@@ -1,171 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- nacelle (0.4.0)
5
- cells (~> 3.0)
6
- rails
7
- sprockets-rails
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (5.2.6)
13
- actionpack (= 5.2.6)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailer (5.2.6)
17
- actionpack (= 5.2.6)
18
- actionview (= 5.2.6)
19
- activejob (= 5.2.6)
20
- mail (~> 2.5, >= 2.5.4)
21
- rails-dom-testing (~> 2.0)
22
- actionpack (5.2.6)
23
- actionview (= 5.2.6)
24
- activesupport (= 5.2.6)
25
- rack (~> 2.0, >= 2.0.8)
26
- rack-test (>= 0.6.3)
27
- rails-dom-testing (~> 2.0)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.2.6)
30
- activesupport (= 5.2.6)
31
- builder (~> 3.1)
32
- erubi (~> 1.4)
33
- rails-dom-testing (~> 2.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.2.6)
36
- activesupport (= 5.2.6)
37
- globalid (>= 0.3.6)
38
- activemodel (5.2.6)
39
- activesupport (= 5.2.6)
40
- activerecord (5.2.6)
41
- activemodel (= 5.2.6)
42
- activesupport (= 5.2.6)
43
- arel (>= 9.0)
44
- activestorage (5.2.6)
45
- actionpack (= 5.2.6)
46
- activerecord (= 5.2.6)
47
- marcel (~> 1.0.0)
48
- activesupport (5.2.6)
49
- concurrent-ruby (~> 1.0, >= 1.0.2)
50
- i18n (>= 0.7, < 2)
51
- minitest (~> 5.1)
52
- tzinfo (~> 1.1)
53
- addressable (2.8.0)
54
- public_suffix (>= 2.0.2, < 5.0)
55
- appraisal (2.4.1)
56
- bundler
57
- rake
58
- thor (>= 0.14.0)
59
- arel (9.0.0)
60
- builder (3.2.4)
61
- byebug (11.1.3)
62
- capybara (3.32.2)
63
- addressable
64
- mini_mime (>= 0.1.3)
65
- nokogiri (~> 1.8)
66
- rack (>= 1.6.0)
67
- rack-test (>= 0.6.3)
68
- regexp_parser (~> 1.5)
69
- xpath (~> 3.2)
70
- cells (3.11.3)
71
- actionpack (>= 3.0)
72
- railties (>= 3.0)
73
- uber (~> 0.0.8)
74
- concurrent-ruby (1.1.9)
75
- crass (1.0.6)
76
- diff-lcs (1.5.0)
77
- erubi (1.10.0)
78
- globalid (0.4.2)
79
- activesupport (>= 4.2.0)
80
- i18n (1.8.11)
81
- concurrent-ruby (~> 1.0)
82
- loofah (2.13.0)
83
- crass (~> 1.0.2)
84
- nokogiri (>= 1.5.9)
85
- mail (2.7.1)
86
- mini_mime (>= 0.1.1)
87
- marcel (1.0.2)
88
- method_source (1.0.0)
89
- mini_mime (1.1.2)
90
- mini_portile2 (2.4.0)
91
- minitest (5.15.0)
92
- nio4r (2.5.8)
93
- nokogiri (1.10.10)
94
- mini_portile2 (~> 2.4.0)
95
- public_suffix (4.0.6)
96
- rack (2.2.3)
97
- rack-test (1.1.0)
98
- rack (>= 1.0, < 3)
99
- rails (5.2.6)
100
- actioncable (= 5.2.6)
101
- actionmailer (= 5.2.6)
102
- actionpack (= 5.2.6)
103
- actionview (= 5.2.6)
104
- activejob (= 5.2.6)
105
- activemodel (= 5.2.6)
106
- activerecord (= 5.2.6)
107
- activestorage (= 5.2.6)
108
- activesupport (= 5.2.6)
109
- bundler (>= 1.3.0)
110
- railties (= 5.2.6)
111
- sprockets-rails (>= 2.0.0)
112
- rails-dom-testing (2.0.3)
113
- activesupport (>= 4.2.0)
114
- nokogiri (>= 1.6)
115
- rails-html-sanitizer (1.4.2)
116
- loofah (~> 2.3)
117
- railties (5.2.6)
118
- actionpack (= 5.2.6)
119
- activesupport (= 5.2.6)
120
- method_source
121
- rake (>= 0.8.7)
122
- thor (>= 0.19.0, < 2.0)
123
- rake (13.0.6)
124
- regexp_parser (1.8.2)
125
- rspec (3.10.0)
126
- rspec-core (~> 3.10.0)
127
- rspec-expectations (~> 3.10.0)
128
- rspec-mocks (~> 3.10.0)
129
- rspec-core (3.10.1)
130
- rspec-support (~> 3.10.0)
131
- rspec-expectations (3.10.1)
132
- diff-lcs (>= 1.2.0, < 2.0)
133
- rspec-support (~> 3.10.0)
134
- rspec-mocks (3.10.2)
135
- diff-lcs (>= 1.2.0, < 2.0)
136
- rspec-support (~> 3.10.0)
137
- rspec-support (3.10.3)
138
- sprockets (3.7.2)
139
- concurrent-ruby (~> 1.0)
140
- rack (> 1, < 3)
141
- sprockets-rails (3.2.2)
142
- actionpack (>= 4.0)
143
- activesupport (>= 4.0)
144
- sprockets (>= 3.0.0)
145
- thor (1.1.0)
146
- thread_safe (0.3.6)
147
- tzinfo (1.2.9)
148
- thread_safe (~> 0.1)
149
- uber (0.0.15)
150
- websocket-driver (0.7.5)
151
- websocket-extensions (>= 0.1.0)
152
- websocket-extensions (0.1.5)
153
- xpath (3.2.0)
154
- nokogiri (~> 1.8)
155
-
156
- PLATFORMS
157
- ruby
158
-
159
- DEPENDENCIES
160
- appraisal
161
- bundler
162
- byebug
163
- capybara
164
- nacelle!
165
- rails (~> 5.2.0)
166
- rake
167
- rspec
168
- sprockets (~> 3.0)
169
-
170
- BUNDLED WITH
171
- 2.2.32