zendesk_apps_support 4.38.2 → 4.39.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: 00cac4e5d14cdee31ff3283494f824c00f8c4761a532d4569b92dadf80e00520
4
- data.tar.gz: a8507f7b3ffdd7762d9a3c8be4ec845c447f74dc3f50d483b15ee9ac4e6a022e
3
+ metadata.gz: bb4bfc5050c085b678ea4aa2040854acf165de0886d536c368ee61dce3a96ca2
4
+ data.tar.gz: 1490016492df188f9eb148985ad5e12c1419b2ba259df76cb1ee3348ba29a602
5
5
  SHA512:
6
- metadata.gz: c26f0a466818ca03512c75312b71b90a63afbfbac32d434d17a87d1c1d70c4feaca378a59351b37ac4c97ad34b637c7dbb4fdc39e44d838223ce332ffa26fe62
7
- data.tar.gz: 47be542053294bb62ab0322f00ba8f9709762210721dd1fc971c60cc7b271a3955a37f480e80b3984363fd6ea56a1dab5bd54023e87e5e1dcc811ab2b72da0f2
6
+ metadata.gz: dc8be303618e28ccbab5fbe8a76d88a04c04d4bd60ac28062cb03cb9ff004c93dde8447bff300b709a10b0e8fb55db3f3ec2b5574d28ccafbcf62b1972037ab6
7
+ data.tar.gz: 4333a128ecaf12cb3cdab6b9fe77f1b90598628b689673385e140e09cf5547d0def6e2e587e6573c7359b4e9e4bd7bf079a09b9a452770ba279ea40b2a3151d5
@@ -3,8 +3,8 @@
3
3
  module ZendeskAppsSupport
4
4
  module I18n
5
5
  class << self
6
- def t(key, *args)
7
- i18n.t(key, *args)
6
+ def t(key, **args)
7
+ i18n.t(key, **args)
8
8
  end
9
9
 
10
10
  def set_load_path
@@ -18,7 +18,7 @@ module ZendeskAppsSupport
18
18
 
19
19
  # if the error contains the word `_legacy` in the second sentence, let's
20
20
  # only use the first one.
21
- if [original, attempted].any? { |val| val =~ /_legacy/ }
21
+ if [original, attempted].any? { |val| val.is_a?(String) && val =~ /_legacy/ }
22
22
  return translated_error
23
23
  end
24
24
  translated_detail_key = 'txt.apps.admin.error.app_build.duplicate_reference_values'
@@ -434,7 +434,8 @@ module ZendeskAppsSupport
434
434
 
435
435
  def valid_url?(value)
436
436
  uri = URI.parse(value)
437
- uri.is_a?(URI::HTTP) && !uri.host.nil?
437
+ host_empty = uri.host.nil? || uri.host == ''
438
+ uri.is_a?(URI::HTTP) && !host_empty
438
439
  rescue URI::InvalidURIError
439
440
  false
440
441
  end
@@ -8,13 +8,13 @@ module ZendeskAppsSupport
8
8
  PLACEHOLDER_SVG_MARKUP = File.read(File.expand_path('../../assets/default_app_logo.svg', __FILE__))
9
9
 
10
10
  # whitelist elements and attributes used in Zendesk Garden assets
11
- Loofah::HTML5::WhiteList::ALLOWED_ELEMENTS_WITH_LIBXML2.add 'symbol'
12
- Loofah::HTML5::WhiteList::ACCEPTABLE_CSS_PROPERTIES.add 'position'
11
+ Loofah::HTML5::SafeList::ALLOWED_ELEMENTS_WITH_LIBXML2.add 'symbol'
12
+ Loofah::HTML5::SafeList::ACCEPTABLE_CSS_PROPERTIES.add 'position'
13
13
 
14
14
  # CRUFT: ignore a (very specific) style attribute which Loofah would otherwise scrub.
15
15
  # This attribute is deprecated (https://www.w3.org/TR/filter-effects/#AccessBackgroundImage)
16
16
  # but is included in many of the test apps used in fixtures for tests in ZAM, ZAT etc.
17
- Loofah::HTML5::WhiteList::ACCEPTABLE_CSS_PROPERTIES.add 'enable-background'
17
+ Loofah::HTML5::SafeList::ACCEPTABLE_CSS_PROPERTIES.add 'enable-background'
18
18
 
19
19
  @strip_declaration = Loofah::Scrubber.new do |node|
20
20
  node.remove if node.name == 'xml' && node.children.empty?
@@ -50,7 +50,7 @@ module ZendeskAppsSupport
50
50
  end
51
51
 
52
52
  def to_s
53
- ZendeskAppsSupport::I18n.t("#{KEY_PREFIX}#{key}", data)
53
+ ZendeskAppsSupport::I18n.t("#{KEY_PREFIX}#{key}", **data)
54
54
  end
55
55
 
56
56
  def to_json(*)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.38.2
4
+ version: 4.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-03-09 00:00:00.000000000 Z
14
+ date: 2023-06-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '0'
22
+ version: 1.7.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 1.7.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: sassc
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -177,16 +177,16 @@ dependencies:
177
177
  name: rspec
178
178
  requirement: !ruby/object:Gem::Requirement
179
179
  requirements:
180
- - - "~>"
180
+ - - ">="
181
181
  - !ruby/object:Gem::Version
182
- version: 3.4.0
182
+ version: '0'
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - "~>"
187
+ - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: 3.4.0
189
+ version: '0'
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: bump
192
192
  requirement: !ruby/object:Gem::Requirement
@@ -205,16 +205,16 @@ dependencies:
205
205
  name: faker
206
206
  requirement: !ruby/object:Gem::Requirement
207
207
  requirements:
208
- - - "~>"
208
+ - - ">="
209
209
  - !ruby/object:Gem::Version
210
- version: 1.6.6
210
+ version: '0'
211
211
  type: :development
212
212
  prerelease: false
213
213
  version_requirements: !ruby/object:Gem::Requirement
214
214
  requirements:
215
- - - "~>"
215
+ - - ">="
216
216
  - !ruby/object:Gem::Version
217
- version: 1.6.6
217
+ version: '0'
218
218
  - !ruby/object:Gem::Dependency
219
219
  name: rubocop
220
220
  requirement: !ruby/object:Gem::Requirement
@@ -346,10 +346,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
346
346
  requirements:
347
347
  - - ">="
348
348
  - !ruby/object:Gem::Version
349
- version: '2.6'
350
- - - "<"
351
- - !ruby/object:Gem::Version
352
- version: '3.1'
349
+ version: '2.7'
353
350
  required_rubygems_version: !ruby/object:Gem::Requirement
354
351
  requirements:
355
352
  - - ">="