string_tools 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 210c99c75f04b03ef26c76343f29b29b6325c94d270904a276df3c50e438ef52
4
- data.tar.gz: 9a89a82fc8d20d222e67e44bb786941d860341e707bc5945d8867394fc8447e6
3
+ metadata.gz: 88f90e3bdd0d61cd67452b28d2d282d3ef821d48785143d750c72998655e1ff5
4
+ data.tar.gz: efd190d4215b001ac24260e1ddd1bf6024a3653acbb4060e8da082b85659c76b
5
5
  SHA512:
6
- metadata.gz: c25cd4f6a32ea07a771a8e59e17a3e28e370441065d592989754d5b67b0f79a9a429a8bc79b231aa23b7f7b20b3a76b2461a610d3a410f7f64401b8a6bb49634
7
- data.tar.gz: 140e95adee684c86f90e31a3780e4eca0c9110891160278412b5038ed30b533ebb2f1ca3cf2a45981d93632259ba55b98df8a8ef8b16edb1938541e6169b1dca
6
+ metadata.gz: f45484316664f0c72a655a25aa590064585096bbf99823b9068ab63d34b2c7b521b8fbab3b228e8a9ec113546b0919e8bebe97fce9a4e2d7f9dc1d02dd33249f
7
+ data.tar.gz: 00d4e2fe764500b8bb3fb1520a24d20d3dc59c99802178effb925b67906d45da67541fc2be34b506d4ef4e5e57862886de1fe01d43e7382a90cf9e5b6de7de92
data/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
- # v1.1.0
1
+ # v1.2.0
2
+
3
+ * 2024-04-08 [be7e7fd](../../commit/be7e7fd) - __(Andrew N. Shalaev)__ Release v1.2.0
4
+ * 2023-11-29 [393bb13](../../commit/393bb13) - __(GIGrave)__ feature: add media to sanitize rules
5
+ https://jira.railsc.ru/browse/BPC-22916
6
+
7
+ * 2023-11-29 [06eb51e](../../commit/06eb51e) - __(GIGrave)__ Revert "feature: add string_tools config"
8
+ This reverts commit c0b9bf39ec3cf2fce28fe92c7892a0c47593ca09.
9
+
10
+ * 2023-11-29 [d1c00b9](../../commit/d1c00b9) - __(GIGrave)__ Revert "fix: add postgress to drone"
11
+ This reverts commit 33e5698fd48d5edf416df316e3466f9e6c58369f.
12
+
13
+ * 2023-11-02 [33e5698](../../commit/33e5698) - __(GIGrave)__ fix: add postgress to drone
14
+ * 2023-11-02 [c0b9bf3](../../commit/c0b9bf3) - __(GIGrave)__ feature: add string_tools config
15
+ https://jira.railsc.ru/browse/BPC-22612
2
16
 
3
17
  * 2023-10-16 [8ccb54a](../../commit/8ccb54a) - __(ArtemBorodinEvgenyevich)__ Release v1.1.0
4
18
  * 2023-08-29 [bed389b](../../commit/bed389b) - __(Terentev Aleksey)__ feat: sanitize links in alt of img tag
@@ -103,6 +117,14 @@ https://jira.railsc.ru/browse/PC4-16353
103
117
  # v3.0.1
104
118
 
105
119
 
120
+ # v1.1.0
121
+
122
+ * 2023-08-29 [bed389b](../../commit/bed389b) - __(Terentev Aleksey)__ feat: sanitize links in alt of img tag
123
+ https://jira.railsc.ru/browse/PC4-29908
124
+
125
+ * 2023-08-11 [7848491](../../commit/7848491) - __(Terentev Aleksey)__ feat: add options for sanitize outer links in css
126
+ https://jira.railsc.ru/browse/PC4-29908
127
+
106
128
  # v1.0.0
107
129
 
108
130
  * 2023-06-15 [8e9fa48](../../commit/8e9fa48) - __(Andrew N. Shalaev)__ fix: convert to_utf8 correctly, without hidding errors
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module StringTools
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
data/lib/string_tools.rb CHANGED
@@ -181,7 +181,11 @@ module StringTools
181
181
  str,
182
182
  :attributes => attributes,
183
183
  :elements => elements,
184
- :css => {:properties => Sanitize::Config::RELAXED[:css][:properties], protocols: protocols},
184
+ :css => {
185
+ at_rules_with_styles: ['media'],
186
+ properties: Sanitize::Config::RELAXED[:css][:properties],
187
+ protocols: protocols,
188
+ },
185
189
  :remove_contents => remove_contents || Set['style', 'script'],
186
190
  :allow_comments => false,
187
191
  :transformers => transformers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey D.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-16 00:00:00.000000000 Z
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack