zendesk_apps_support 1.32.0 → 2.0.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/lib/zendesk_apps_support/package.rb +15 -14
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4dd2daecb448295a2847cc9d879318f8b6011ba0
|
|
4
|
+
data.tar.gz: b3cab095bb292245d829e3577c3f58e95118b992
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0120e92ede4d68764a5727116a2fcb21e6d928e10b528e0333f4f76e4078b06133b1e437717ee1da8ba6ebfd3a2edd69e445b37aa27b3fc0f545deafdea64318
|
|
7
|
+
data.tar.gz: 9fa406bf712f245602583e334a02fa14c3a220e6531714c6173d5e0a2d01bfb8a514b83178886f89b029643a64c08ac25d6fade7d3ce82dd68965d29ed13960f
|
|
@@ -140,7 +140,7 @@ module ZendeskAppsSupport
|
|
|
140
140
|
asset_url_prefix: asset_url_prefix,
|
|
141
141
|
app_class_name: app_class_name,
|
|
142
142
|
author: author,
|
|
143
|
-
translations: translations_for(locale),
|
|
143
|
+
translations: runtime_translations(translations_for(locale)),
|
|
144
144
|
framework_version: framework_version,
|
|
145
145
|
templates: templates,
|
|
146
146
|
modules: commonjs_modules,
|
|
@@ -183,13 +183,10 @@ module ZendeskAppsSupport
|
|
|
183
183
|
end
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
def
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
result.delete('long_description')
|
|
191
|
-
result.delete('installation_instructions')
|
|
192
|
-
result
|
|
186
|
+
def translations_for(locale)
|
|
187
|
+
trans = translations
|
|
188
|
+
return trans[locale] if trans[locale]
|
|
189
|
+
trans[self.manifest_json['defaultLocale']]
|
|
193
190
|
end
|
|
194
191
|
|
|
195
192
|
def has_location?
|
|
@@ -226,6 +223,16 @@ module ZendeskAppsSupport
|
|
|
226
223
|
|
|
227
224
|
private
|
|
228
225
|
|
|
226
|
+
|
|
227
|
+
def runtime_translations(translations)
|
|
228
|
+
result = translations.dup
|
|
229
|
+
result.delete('name')
|
|
230
|
+
result.delete('description')
|
|
231
|
+
result.delete('long_description')
|
|
232
|
+
result.delete('installation_instructions')
|
|
233
|
+
result
|
|
234
|
+
end
|
|
235
|
+
|
|
229
236
|
def legacy_non_iframe_app?
|
|
230
237
|
iframe_urls = locations.values.flat_map(&:values)
|
|
231
238
|
iframe_urls.all? { |l| l == LEGACY_URI_STUB }
|
|
@@ -241,12 +248,6 @@ module ZendeskAppsSupport
|
|
|
241
248
|
end
|
|
242
249
|
end
|
|
243
250
|
|
|
244
|
-
def translations_for(locale)
|
|
245
|
-
trans = translations
|
|
246
|
-
return trans[locale] if trans[locale]
|
|
247
|
-
trans[self.manifest_json['defaultLocale']]
|
|
248
|
-
end
|
|
249
|
-
|
|
250
251
|
def translations
|
|
251
252
|
return @translations if @is_cached && @translations
|
|
252
253
|
|
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
|
+
version: 2.0.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: 2016-
|
|
14
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
198
198
|
version: 1.3.6
|
|
199
199
|
requirements: []
|
|
200
200
|
rubyforge_project:
|
|
201
|
-
rubygems_version: 2.
|
|
201
|
+
rubygems_version: 2.5.1
|
|
202
202
|
signing_key:
|
|
203
203
|
specification_version: 4
|
|
204
204
|
summary: Support to help you develop Zendesk Apps.
|