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 +4 -4
- data/lib/zendesk_apps_support/package.rb +19 -15
- 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: 5b12d11bc57f62df776a651d8d9c06292815c41b
|
4
|
+
data.tar.gz: 5e2e1ec2503c0364e4bbc5b4288e8684a70bdd3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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.
|
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.
|