zendesk_apps_support 4.38.3 → 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: d8cfa43bb8288d7f036f86d1f4160eda89832eeb75bf11141f11fd9b9d41ebaf
4
- data.tar.gz: 06a3a98b42fdbff0080af5388cc7ac4378b3fedcb40693d4f6dc2b0516d3093a
3
+ metadata.gz: bb4bfc5050c085b678ea4aa2040854acf165de0886d536c368ee61dce3a96ca2
4
+ data.tar.gz: 1490016492df188f9eb148985ad5e12c1419b2ba259df76cb1ee3348ba29a602
5
5
  SHA512:
6
- metadata.gz: 9c99947ded38ee1d1711ce4c8e1fd4f4a9426fcd496120d4a486b6d08df6a617a4f78bd3df5301c58906f1afc5c4a9ec275a8943cd556e1fd69a462d721f0204
7
- data.tar.gz: b06964fc1b53630b2d5d6e0a4e557c79978b56ec3fe32c23f7fe182c6f3384e43f566b3cbf860bb0df2c28c30cf2f7fb0634aaa1e86c4c15b62141a5de0d73fc
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
@@ -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.3
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-16 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
  - - ">="