zendesk_apps_support 3.3.5 → 3.3.6

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: 19222b64e8ff67b0afffaf3c9fe90ea2e7b84336
4
- data.tar.gz: e3947b4cf588795edcf1a2ad094e4ab568da46d9
3
+ metadata.gz: 5b12d11bc57f62df776a651d8d9c06292815c41b
4
+ data.tar.gz: 5e2e1ec2503c0364e4bbc5b4288e8684a70bdd3b
5
5
  SHA512:
6
- metadata.gz: 1dca48bfc664508930843c1b8d9954e126ccb0d0db5bd8275530f3f99a855697aef9aca2f4880c186acfd8c5937a3b0606e263f770440bc7757139a507020043
7
- data.tar.gz: b05e60e7d88015ee3bd496b27aeefdaac5e80d24fc5f4853210aaaee4a4a867339614ea42903a4add1aaa6a9dfa1f816430d4a48cbb7c3d1a8a4c53aee2198e6
6
+ metadata.gz: 51b9342a9ab4d031e565bf9a482ff18f1bc77110148e3a298a805bd7a8d64fc158eb33c899c65a04501ad7312a588d89d584a49f3e5cc16fe5ae214030260826
7
+ data.tar.gz: 1e11c048c19ea123bce3f012fe07e2866b2e0ddbfa12ea38ff600066680cd9bec364deebe97d007ce27aa259bcd0e316a3c241d11d0cee2db8dbd957001a4dc7
@@ -191,22 +191,19 @@ module ZendeskAppsSupport
191
191
  ''
192
192
  end
193
193
 
194
+ def app_js
195
+ if @is_cached
196
+ @app_js ||= read_file('app.js')
197
+ else
198
+ read_file('app.js')
199
+ end
200
+ end
201
+
194
202
  def iframe_only?
195
203
  manifest.iframe_only?
196
204
  end
197
205
  deprecate :iframe_only?, 'manifest.iframe_only?', 2016, 9
198
206
 
199
- private
200
-
201
- def runtime_translations(translations)
202
- result = translations.dup
203
- result.delete('name')
204
- result.delete('description')
205
- result.delete('long_description')
206
- result.delete('installation_instructions')
207
- result
208
- end
209
-
210
207
  def templates
211
208
  templates_dir = path_to('templates')
212
209
  Dir["#{templates_dir}/*.hdbs"].each_with_object({}) do |file, memo|
@@ -241,6 +238,17 @@ module ZendeskAppsSupport
241
238
  end
242
239
  end
243
240
 
241
+ private
242
+
243
+ def runtime_translations(translations)
244
+ result = translations.dup
245
+ result.delete('name')
246
+ result.delete('description')
247
+ result.delete('long_description')
248
+ result.delete('installation_instructions')
249
+ result
250
+ end
251
+
244
252
  def process_translations(locale_path)
245
253
  translations = File.exist?(locale_path) ? JSON.parse(File.read(locale_path)) : {}
246
254
  translations['app'].delete('package') if translations.key?('app')
@@ -259,10 +267,6 @@ module ZendeskAppsSupport
259
267
  has_file?('assets/banner.png')
260
268
  end
261
269
 
262
- def app_js
263
- read_file('app.js')
264
- end
265
-
266
270
  def location_icons
267
271
  Hash.new { |h, k| h[k] = {} }.tap do |location_icons|
268
272
  manifest.location_options.each do |location_options|
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: 3.3.5
4
+ version: 3.3.6
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: 2017-01-04 00:00:00.000000000 Z
14
+ date: 2017-01-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: 1.3.6
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.5.1
233
+ rubygems_version: 2.6.8
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Support to help you develop Zendesk Apps.