strip-tags 1.1.1 → 1.2.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 +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +194 -83
- data/README.md +7 -7
- data/lib/strip-tags/version.rb +1 -1
- data/lib/strip-tags.rb +2 -1
- data/run-tests.sh +2 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9659dfd981ab0f030ea448f196d0398e22054f9b1f420f810200eeae6f6a63d7
|
|
4
|
+
data.tar.gz: b7a11dbbed5b59c9a829b6d35ff5a82b223255c6956b5ecd50796ef783d15c1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e9acf8bb1a43b9aedbcd8a263c4527ddd46b1ba70307b5c6969ce0e2f0778a505ec9a7e1f4d4ee81e38b5f788806f1cd896ca8d0840caa65a54830a6212aa6d
|
|
7
|
+
data.tar.gz: 7ae633bf7605c70e4945afd121d67c2ef505d34208fd6248346c20c2c796875481d61e1111824fef60c6492830906125960b39eee491e386f220db4109e3bbce
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,128 +1,172 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
strip-tags (1.
|
|
4
|
+
strip-tags (1.2.0)
|
|
5
5
|
activemodel (>= 5.2)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
actionpack (
|
|
11
|
-
actionview (=
|
|
12
|
-
activesupport (=
|
|
10
|
+
actionpack (8.1.4.1)
|
|
11
|
+
actionview (= 8.1.4.1)
|
|
12
|
+
activesupport (= 8.1.4.1)
|
|
13
13
|
nokogiri (>= 1.8.5)
|
|
14
|
-
racc
|
|
15
14
|
rack (>= 2.2.4)
|
|
16
15
|
rack-session (>= 1.0.1)
|
|
17
16
|
rack-test (>= 0.6.3)
|
|
18
17
|
rails-dom-testing (~> 2.2)
|
|
19
18
|
rails-html-sanitizer (~> 1.6)
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
useragent (~> 0.16)
|
|
20
|
+
actionview (8.1.4.1)
|
|
21
|
+
activesupport (= 8.1.4.1)
|
|
22
22
|
builder (~> 3.1)
|
|
23
23
|
erubi (~> 1.11)
|
|
24
24
|
rails-dom-testing (~> 2.2)
|
|
25
|
-
rails-html-sanitizer (~> 1.6)
|
|
26
|
-
active_attr (0.
|
|
27
|
-
actionpack (>= 3.0.2, <
|
|
28
|
-
activemodel (>= 3.0.2, <
|
|
29
|
-
activesupport (>= 3.0.2, <
|
|
30
|
-
activemodel (
|
|
31
|
-
activesupport (=
|
|
32
|
-
activesupport (
|
|
25
|
+
rails-html-sanitizer (~> 1.6, >= 1.7.2)
|
|
26
|
+
active_attr (0.17.2)
|
|
27
|
+
actionpack (>= 3.0.2, < 8.2)
|
|
28
|
+
activemodel (>= 3.0.2, < 8.2)
|
|
29
|
+
activesupport (>= 3.0.2, < 8.2)
|
|
30
|
+
activemodel (8.1.4.1)
|
|
31
|
+
activesupport (= 8.1.4.1)
|
|
32
|
+
activesupport (8.1.4.1)
|
|
33
33
|
base64
|
|
34
34
|
bigdecimal
|
|
35
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
35
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
36
36
|
connection_pool (>= 2.2.5)
|
|
37
37
|
drb
|
|
38
38
|
i18n (>= 1.6, < 2)
|
|
39
|
+
json
|
|
40
|
+
logger (>= 1.4.2)
|
|
39
41
|
minitest (>= 5.1)
|
|
40
|
-
|
|
41
|
-
tzinfo (~> 2.0)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
securerandom (>= 0.3)
|
|
43
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
44
|
+
uri (>= 0.13.1)
|
|
45
|
+
base64 (0.3.0)
|
|
46
|
+
bigdecimal (4.1.3)
|
|
47
|
+
builder (3.3.0)
|
|
48
|
+
concurrent-ruby (1.3.8)
|
|
49
|
+
connection_pool (3.0.3)
|
|
50
|
+
crass (1.0.9)
|
|
51
|
+
diff-lcs (1.6.2)
|
|
52
|
+
drb (2.2.3)
|
|
53
|
+
erb (6.0.7)
|
|
54
|
+
erubi (1.13.1)
|
|
55
|
+
i18n (1.15.2)
|
|
53
56
|
concurrent-ruby (~> 1.0)
|
|
54
|
-
io-console (0.
|
|
55
|
-
irb (1.
|
|
56
|
-
|
|
57
|
+
io-console (0.9.5)
|
|
58
|
+
irb (1.19.0)
|
|
59
|
+
pp (>= 0.6.0)
|
|
60
|
+
prism (>= 1.3.0)
|
|
61
|
+
rdoc (>= 4.0.0)
|
|
57
62
|
reline (>= 0.4.2)
|
|
58
|
-
|
|
63
|
+
json (3.2.0)
|
|
64
|
+
logger (1.7.0)
|
|
65
|
+
loofah (2.25.3)
|
|
59
66
|
crass (~> 1.0.2)
|
|
60
|
-
nokogiri (>= 1.
|
|
61
|
-
minitest (
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
nokogiri (>= 1.19.5)
|
|
68
|
+
minitest (6.1.0)
|
|
69
|
+
drb (~> 2.0)
|
|
70
|
+
prism (>= 1.5, < 3)
|
|
71
|
+
nokogiri (1.19.7-aarch64-linux-gnu)
|
|
72
|
+
racc (~> 1.4)
|
|
73
|
+
nokogiri (1.19.7-aarch64-linux-musl)
|
|
74
|
+
racc (~> 1.4)
|
|
75
|
+
nokogiri (1.19.7-arm-linux-gnu)
|
|
76
|
+
racc (~> 1.4)
|
|
77
|
+
nokogiri (1.19.7-arm-linux-musl)
|
|
64
78
|
racc (~> 1.4)
|
|
65
|
-
nokogiri (1.
|
|
79
|
+
nokogiri (1.19.7-arm64-darwin)
|
|
66
80
|
racc (~> 1.4)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
nokogiri (1.19.7-x86_64-darwin)
|
|
82
|
+
racc (~> 1.4)
|
|
83
|
+
nokogiri (1.19.7-x86_64-linux-gnu)
|
|
84
|
+
racc (~> 1.4)
|
|
85
|
+
nokogiri (1.19.7-x86_64-linux-musl)
|
|
86
|
+
racc (~> 1.4)
|
|
87
|
+
pp (0.6.4)
|
|
88
|
+
prettyprint
|
|
89
|
+
prettyprint (0.2.1)
|
|
90
|
+
prism (2.1.0-aarch64-linux-gnu)
|
|
91
|
+
prism (2.1.0-aarch64-linux-musl)
|
|
92
|
+
prism (2.1.0-arm-linux-gnu)
|
|
93
|
+
prism (2.1.0-arm-linux-musl)
|
|
94
|
+
prism (2.1.0-arm64-darwin)
|
|
95
|
+
prism (2.1.0-x86_64-darwin)
|
|
96
|
+
prism (2.1.0-x86_64-linux-gnu)
|
|
97
|
+
prism (2.1.0-x86_64-linux-musl)
|
|
98
|
+
racc (1.8.1)
|
|
99
|
+
rack (3.2.9)
|
|
100
|
+
rack-session (2.1.2)
|
|
101
|
+
base64 (>= 0.1.0)
|
|
102
|
+
rack (>= 3.0.0)
|
|
103
|
+
rack-test (2.3.0)
|
|
74
104
|
rack (>= 1.3)
|
|
75
|
-
rackup (
|
|
76
|
-
rack (
|
|
77
|
-
|
|
78
|
-
rails-dom-testing (2.2.0)
|
|
105
|
+
rackup (2.3.1)
|
|
106
|
+
rack (>= 3)
|
|
107
|
+
rails-dom-testing (2.3.0)
|
|
79
108
|
activesupport (>= 5.0.0)
|
|
80
109
|
minitest
|
|
81
110
|
nokogiri (>= 1.6)
|
|
82
|
-
rails-html-sanitizer (1.
|
|
83
|
-
loofah (~> 2.
|
|
84
|
-
nokogiri (
|
|
85
|
-
railties (
|
|
86
|
-
actionpack (=
|
|
87
|
-
activesupport (=
|
|
88
|
-
irb
|
|
111
|
+
rails-html-sanitizer (1.7.2)
|
|
112
|
+
loofah (~> 2.25, >= 2.25.3)
|
|
113
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
114
|
+
railties (8.1.4.1)
|
|
115
|
+
actionpack (= 8.1.4.1)
|
|
116
|
+
activesupport (= 8.1.4.1)
|
|
117
|
+
irb (~> 1.13)
|
|
89
118
|
rackup (>= 1.0.0)
|
|
90
119
|
rake (>= 12.2)
|
|
91
120
|
thor (~> 1.0, >= 1.2.2)
|
|
121
|
+
tsort (>= 0.2)
|
|
92
122
|
zeitwerk (~> 2.6)
|
|
93
|
-
rake (13.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
123
|
+
rake (13.4.2)
|
|
124
|
+
rbs (4.2.0)
|
|
125
|
+
logger
|
|
126
|
+
prism (>= 1.6.0)
|
|
127
|
+
tsort
|
|
128
|
+
rdoc (8.1.0)
|
|
129
|
+
erb
|
|
130
|
+
prism (>= 1.6.0)
|
|
131
|
+
rbs (>= 4.0.0)
|
|
132
|
+
tsort
|
|
133
|
+
reline (0.7.0)
|
|
97
134
|
io-console (~> 0.5)
|
|
98
|
-
rspec-core (3.
|
|
99
|
-
rspec-support (~> 3.
|
|
100
|
-
rspec-expectations (3.
|
|
135
|
+
rspec-core (3.13.7)
|
|
136
|
+
rspec-support (~> 3.13.0)
|
|
137
|
+
rspec-expectations (3.13.6)
|
|
101
138
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
102
|
-
rspec-support (~> 3.
|
|
103
|
-
rspec-mocks (3.
|
|
139
|
+
rspec-support (~> 3.13.0)
|
|
140
|
+
rspec-mocks (3.13.9)
|
|
104
141
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
105
|
-
rspec-support (~> 3.
|
|
106
|
-
rspec-rails (
|
|
107
|
-
actionpack (>=
|
|
108
|
-
activesupport (>=
|
|
109
|
-
railties (>=
|
|
110
|
-
rspec-core (
|
|
111
|
-
rspec-expectations (
|
|
112
|
-
rspec-mocks (
|
|
113
|
-
rspec-support (
|
|
114
|
-
rspec-support (3.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
142
|
+
rspec-support (~> 3.13.0)
|
|
143
|
+
rspec-rails (8.1.0)
|
|
144
|
+
actionpack (>= 7.2)
|
|
145
|
+
activesupport (>= 7.2)
|
|
146
|
+
railties (>= 7.2)
|
|
147
|
+
rspec-core (>= 3.13.0, < 5.0.0)
|
|
148
|
+
rspec-expectations (>= 3.13.0, < 5.0.0)
|
|
149
|
+
rspec-mocks (>= 3.13.0, < 5.0.0)
|
|
150
|
+
rspec-support (>= 3.13.0, < 5.0.0)
|
|
151
|
+
rspec-support (3.13.8)
|
|
152
|
+
securerandom (0.4.1)
|
|
153
|
+
thor (1.5.0)
|
|
154
|
+
tsort (0.2.0)
|
|
118
155
|
tzinfo (2.0.6)
|
|
119
156
|
concurrent-ruby (~> 1.0)
|
|
120
|
-
|
|
121
|
-
|
|
157
|
+
uri (1.1.2)
|
|
158
|
+
useragent (0.16.11)
|
|
159
|
+
zeitwerk (2.8.3)
|
|
122
160
|
|
|
123
161
|
PLATFORMS
|
|
124
|
-
|
|
125
|
-
|
|
162
|
+
aarch64-linux-gnu
|
|
163
|
+
aarch64-linux-musl
|
|
164
|
+
arm-linux-gnu
|
|
165
|
+
arm-linux-musl
|
|
166
|
+
arm64-darwin
|
|
167
|
+
x86_64-darwin
|
|
168
|
+
x86_64-linux-gnu
|
|
169
|
+
x86_64-linux-musl
|
|
126
170
|
|
|
127
171
|
DEPENDENCIES
|
|
128
172
|
active_attr (~> 0.15)
|
|
@@ -130,5 +174,72 @@ DEPENDENCIES
|
|
|
130
174
|
rspec-rails
|
|
131
175
|
strip-tags!
|
|
132
176
|
|
|
177
|
+
CHECKSUMS
|
|
178
|
+
actionpack (8.1.4.1) sha256=8c6f2e7cbd2653ef0539bde1ff20eb3e2e264e366affe56f0ba7f06d3670cb4b
|
|
179
|
+
actionview (8.1.4.1) sha256=d25b4d9cf8d0c0195ffcfe8b2cf3fcbe6fea54fd7c17f1a9cb8182881463f12b
|
|
180
|
+
active_attr (0.17.2) sha256=70ca32b789965d7bbfa3962997cfb1660ef9831c7b92050e068b5a548836585d
|
|
181
|
+
activemodel (8.1.4.1) sha256=063caf105372fbc98b2d789e4be23de63ac5c043f7d9330f04e2caddb7012805
|
|
182
|
+
activesupport (8.1.4.1) sha256=16ac4f341ca65c85a1fcdb8ac73f68891aae9e3c4a6f9c3a27daed8b00017ed7
|
|
183
|
+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
184
|
+
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
|
|
185
|
+
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
|
186
|
+
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
187
|
+
connection_pool (3.0.3) sha256=e0f8ee3ee0039396753e06e8a2dde0ef028e40f7df29e97f57da7577c489cb5e
|
|
188
|
+
crass (1.0.9) sha256=5d39d4246b0b2d42abf3af08dde783c0d1015d3e7dbec0e764bbf0c61baa215c
|
|
189
|
+
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
190
|
+
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
191
|
+
erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
|
|
192
|
+
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
|
|
193
|
+
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
194
|
+
io-console (0.9.5) sha256=83dd9bbf4c4680416629245b39cd4212eb5f4d9a4ea91804870c1f6b846414d5
|
|
195
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
196
|
+
json (3.2.0) sha256=4a4e222a9ee6ffb296ab3171b6b39d85fec83afc4e7b57eee17edf68c74aec87
|
|
197
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
198
|
+
loofah (2.25.3) sha256=545f14eef0cc2a7de80df560530d593232b7c07e515c5c4e37532d9cb5b0185c
|
|
199
|
+
minitest (6.1.0) sha256=ff373595aa8888631e8a5463986a76b3845346ae6d7fa46e139c1633d418076e
|
|
200
|
+
nokogiri (1.19.7-aarch64-linux-gnu) sha256=8f5e15d299602456406e1f03a9f3456cceb33a0722811e818d2ee2214eb4c84a
|
|
201
|
+
nokogiri (1.19.7-aarch64-linux-musl) sha256=efe0c3602e6e54521bc21c681930ce5568e2d11203de17400710b2b3ca2e4cb4
|
|
202
|
+
nokogiri (1.19.7-arm-linux-gnu) sha256=7fd1907125691aa89e838cc91161761c758b4e17bb32f0dd9b5515a82cc759af
|
|
203
|
+
nokogiri (1.19.7-arm-linux-musl) sha256=28d0ff0c87b6bb2e56580323a6fb049d5d4a02b94f0958fdd47e9ac146991c77
|
|
204
|
+
nokogiri (1.19.7-arm64-darwin) sha256=f27d7f25f4873fbc3aa35a2cc2fb680c98555fec1925348da439d0869d541142
|
|
205
|
+
nokogiri (1.19.7-x86_64-darwin) sha256=508e81e8c5f84aaa240dce981bf1c43faae60808726f0ce7024ee92effc5cafe
|
|
206
|
+
nokogiri (1.19.7-x86_64-linux-gnu) sha256=25865ccb462f714e712fdf8906fde07849cb6704a808e3d629d75baa5af5dd3b
|
|
207
|
+
nokogiri (1.19.7-x86_64-linux-musl) sha256=464d1f3dfb0d53cf54c0c6a7e23e8e91cf68ec3cafc2b27dc4a7682f2d9bf546
|
|
208
|
+
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
209
|
+
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
210
|
+
prism (2.1.0-aarch64-linux-gnu) sha256=808dddc72def68e1a0463689414c97e0ba211938eddbab05387a4844aa2b3ec2
|
|
211
|
+
prism (2.1.0-aarch64-linux-musl) sha256=dd1a0732620c1e575dabb07a297a62911fabd72f8e20ce850b522a866f877930
|
|
212
|
+
prism (2.1.0-arm-linux-gnu) sha256=96b2426b9dbab05448c4add735619929042be3cd7e871ff186468121b62bcfa8
|
|
213
|
+
prism (2.1.0-arm-linux-musl) sha256=00ef918e42a3dc98f11a461bf473586a3424b0f78bee8a4e43b5a65a5f5e2cd0
|
|
214
|
+
prism (2.1.0-arm64-darwin) sha256=2d0c2e3e011cfd89c041940907d3ff3def379d7b0f2ba158d1d42238e8ad8afc
|
|
215
|
+
prism (2.1.0-x86_64-darwin) sha256=6c645d8e6afc742956c7518220ce5106367727c4d9980ac9ab386d55004ddab4
|
|
216
|
+
prism (2.1.0-x86_64-linux-gnu) sha256=b2b647afce09551e650b8bb3e2fc91d7d73d392a09534ca307ec0d619c33bfd4
|
|
217
|
+
prism (2.1.0-x86_64-linux-musl) sha256=249f45981726923e259b927902246219fa25ad10a76f43849c9aee1a3d3ec5b8
|
|
218
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
219
|
+
rack (3.2.9) sha256=8235c1d08f0c461bedcff4413bbeba888173e5b09e1332ae951c98f0ee460dcc
|
|
220
|
+
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
|
|
221
|
+
rack-test (2.3.0) sha256=b118d177cc002c572fc1b6fd8d19c9ed5881a36e8d6f689f9e618f9f861241e8
|
|
222
|
+
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
|
|
223
|
+
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
|
|
224
|
+
rails-html-sanitizer (1.7.2) sha256=a21ef45b7a6639fc8e2282473c547514cb86ae271616162a946bf89148fa2424
|
|
225
|
+
railties (8.1.4.1) sha256=ff2ef4b5a62cbc89811f88be11c776e2ed71b14dd012eae6a494d37994aa9782
|
|
226
|
+
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
227
|
+
rbs (4.2.0) sha256=51f7b886dcc05bc09e10b901daa6a81829f6adc03101d6ca9ea4aac6103e0674
|
|
228
|
+
rdoc (8.1.0) sha256=befc37880a5cfd36dcb176c748b5fd5ee39dd3536a75e81824e4972ce230f60a
|
|
229
|
+
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
230
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
231
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
232
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
233
|
+
rspec-rails (8.1.0) sha256=5e6c6a4e7f7d644b56e412d410824f6480c1e5a9c61b8448998236b4a4dbf3be
|
|
234
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
235
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
236
|
+
strip-tags (1.2.0)
|
|
237
|
+
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
|
|
238
|
+
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
239
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
240
|
+
uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
|
|
241
|
+
useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
|
|
242
|
+
zeitwerk (2.8.3) sha256=2c85125a8467ce069e20123d1e709a08955c9d29c118c25b46b7b7fafdbb92e5
|
|
243
|
+
|
|
133
244
|
BUNDLED WITH
|
|
134
|
-
|
|
245
|
+
4.0.20
|
data/README.md
CHANGED
|
@@ -121,7 +121,7 @@ end
|
|
|
121
121
|
|
|
122
122
|
```ruby
|
|
123
123
|
# where record is an ActiveModel instance
|
|
124
|
-
StripTags.strip(record
|
|
124
|
+
StripTags.strip(record)
|
|
125
125
|
|
|
126
126
|
# works directly on Strings too
|
|
127
127
|
StripTags.strip(" foo \t") #=> "foo"
|
|
@@ -215,9 +215,9 @@ end
|
|
|
215
215
|
```ruby
|
|
216
216
|
class UserTest < ActiveSupport::TestCase
|
|
217
217
|
should strip_tag(:name)
|
|
218
|
-
should
|
|
218
|
+
should strip_tags(:name, :email)
|
|
219
219
|
should_not strip_tag(:password)
|
|
220
|
-
should_not
|
|
220
|
+
should_not strip_tags(:password, :encrypted_password)
|
|
221
221
|
end
|
|
222
222
|
```
|
|
223
223
|
|
|
@@ -229,9 +229,9 @@ describe User do
|
|
|
229
229
|
|
|
230
230
|
it "strips attributes" do
|
|
231
231
|
must strip_tag(:name)
|
|
232
|
-
must
|
|
232
|
+
must strip_tags(:name, :email)
|
|
233
233
|
wont strip_tag(:password)
|
|
234
|
-
wont
|
|
234
|
+
wont strip_tags(:password, :encrypted_password)
|
|
235
235
|
end
|
|
236
236
|
end
|
|
237
237
|
```
|
|
@@ -243,9 +243,9 @@ describe User do
|
|
|
243
243
|
subject { User.new }
|
|
244
244
|
|
|
245
245
|
must { strip_tag(:name) }
|
|
246
|
-
must {
|
|
246
|
+
must { strip_tags(:name, :email) }
|
|
247
247
|
wont { strip_tag(:password) }
|
|
248
|
-
wont {
|
|
248
|
+
wont { strip_tags(:password, :encrypted_password) }
|
|
249
249
|
end
|
|
250
250
|
```
|
|
251
251
|
|
data/lib/strip-tags/version.rb
CHANGED
data/lib/strip-tags.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require "active_model"
|
|
2
2
|
require "action_controller"
|
|
3
|
+
require "cgi"
|
|
3
4
|
|
|
4
5
|
module ActiveModel::Validations::HelperMethods
|
|
5
6
|
# Strips tags from model fields.
|
|
@@ -41,7 +42,7 @@ module StripTags
|
|
|
41
42
|
|
|
42
43
|
allow_empty = options[:allow_empty]
|
|
43
44
|
|
|
44
|
-
value = ActionController::Base.helpers.strip_tags(value)
|
|
45
|
+
value = CGI.unescapeHTML(ActionController::Base.helpers.strip_tags(value))
|
|
45
46
|
|
|
46
47
|
(value.blank? && !allow_empty) ? nil : value
|
|
47
48
|
end
|
data/run-tests.sh
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
set -e
|
|
4
4
|
|
|
5
|
-
BUNDLE_GEMFILE=spec/dummy_apps/rails-7.0/Gemfile TEST_VERSION=7.0 bundle exec rake
|
|
6
5
|
BUNDLE_GEMFILE=spec/dummy_apps/rails-7.1/Gemfile TEST_VERSION=7.1 bundle exec rake
|
|
6
|
+
BUNDLE_GEMFILE=spec/dummy_apps/rails-8.0/Gemfile TEST_VERSION=8.0 bundle exec rake
|
|
7
|
+
BUNDLE_GEMFILE=spec/dummy_apps/rails-8.1/Gemfile TEST_VERSION=8.1 bundle exec rake
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: strip-tags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Moen Wulffeld
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activemodel
|
|
@@ -65,7 +64,6 @@ metadata:
|
|
|
65
64
|
homepage_uri: https://github.com/wulffeld/strip-tags
|
|
66
65
|
source_code_uri: https://github.com/wulffeld/strip-tags
|
|
67
66
|
changelog_uri: https://github.com/wulffeld/strip-tags/CHANGELOG.md
|
|
68
|
-
post_install_message:
|
|
69
67
|
rdoc_options: []
|
|
70
68
|
require_paths:
|
|
71
69
|
- lib
|
|
@@ -80,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
78
|
- !ruby/object:Gem::Version
|
|
81
79
|
version: '0'
|
|
82
80
|
requirements: []
|
|
83
|
-
rubygems_version:
|
|
84
|
-
signing_key:
|
|
81
|
+
rubygems_version: 4.0.20
|
|
85
82
|
specification_version: 4
|
|
86
83
|
summary: Strip tags from fields in your models.
|
|
87
84
|
test_files: []
|