zendesk_apps_support 1.32.0 → 2.0.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
  SHA1:
3
- metadata.gz: d5eb383e9999d668af794e8d9667021f4c518b45
4
- data.tar.gz: 7391282de84989a9b94e2686658f017db0bea80e
3
+ metadata.gz: 4dd2daecb448295a2847cc9d879318f8b6011ba0
4
+ data.tar.gz: b3cab095bb292245d829e3577c3f58e95118b992
5
5
  SHA512:
6
- metadata.gz: 66deb0400963afacab1a517d0dbb8ccb5bd3852f14fa909a461749310f180dd32210b5d8cec632beb9f4936aac0e6450186de6e26fe9beba87d78d5600e5a834
7
- data.tar.gz: b9b46db4d7f7efad0f00c583a9217a0d05e6eecd3b955a1304cd6c0f409d54fbffe3b2d35e0e1c5900d620177bf678317a044192e6e5e3adb77ed2a0ca5753d9
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 market_translations!(locale)
187
- result = translations[locale].fetch('app', {})
188
- result.delete('name')
189
- result.delete('description')
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: 1.32.0
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-07-11 00:00:00.000000000 Z
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.6.4
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.