zendesk_apps_tools 1.33.3 → 1.34.0
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_tools/command.rb +1 -0
- data/lib/zendesk_apps_tools/server.rb +3 -5
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd3ca33d9c0a53d58bf1db428ab931b1d043e946
|
4
|
+
data.tar.gz: 6da4784c861b4c54bdc119a825c56403b9d7d9e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d81eb3707d812d614cfae0d24ad33a0cc8d5c6bd44b6a8fac23b1be6ae8dc2607fbdc1c634d8c186c49e0e967ce90c0d1f268a6f724c9208d80f93ab95144c4
|
7
|
+
data.tar.gz: ab37e68f2f070ee7d1c0393c6b71ef2e87a4f9b7c45cd122a65ab2aa9542e995d65c66af3c6211b6220500e84634e0f75538141b88262c748a53cf4961de276c
|
@@ -138,6 +138,7 @@ module ZendeskAppsTools
|
|
138
138
|
ZendeskAppsTools::Server.tap do |server|
|
139
139
|
server.set :port, options[:port]
|
140
140
|
server.set :root, options[:path]
|
141
|
+
server.set :public_folder, File.join(options[:path], 'assets')
|
141
142
|
server.set :parameters, settings
|
142
143
|
server.set :manifest, manifest['parameters']
|
143
144
|
server.set :config, options[:config]
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'sinatra/base'
|
2
|
+
require 'sinatra/cross_origin'
|
2
3
|
require 'zendesk_apps_support/package'
|
3
4
|
|
4
5
|
module ZendeskAppsTools
|
@@ -11,7 +12,7 @@ module ZendeskAppsTools
|
|
11
12
|
access_control_allow_origin
|
12
13
|
content_type 'text/javascript'
|
13
14
|
|
14
|
-
if File.
|
15
|
+
if File.exist? settings.config
|
15
16
|
curr_mtime = File.stat(settings.config).mtime
|
16
17
|
if curr_mtime > last_mtime
|
17
18
|
settings_helper = ZendeskAppsTools::Settings.new
|
@@ -43,10 +44,7 @@ module ZendeskAppsTools
|
|
43
44
|
ZendeskAppsSupport::Installed.new([app_js], [installation]).compile_js
|
44
45
|
end
|
45
46
|
|
46
|
-
|
47
|
-
access_control_allow_origin
|
48
|
-
send_file File.join(settings.root, 'assets', file)
|
49
|
-
end
|
47
|
+
enable :cross_origin
|
50
48
|
|
51
49
|
# This is for any preflight request
|
52
50
|
# It reads 'Access-Control-Request-Headers' to set 'Access-Control-Allow-Headers'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_apps_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.34.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-07-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|
@@ -83,6 +83,20 @@ dependencies:
|
|
83
83
|
- - "~>"
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '1.29'
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: sinatra-cross_origin
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 0.3.1
|
93
|
+
type: :runtime
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 0.3.1
|
86
100
|
- !ruby/object:Gem::Dependency
|
87
101
|
name: cucumber
|
88
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
240
|
version: 1.3.6
|
227
241
|
requirements: []
|
228
242
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.5.1
|
243
|
+
rubygems_version: 2.4.5.1
|
230
244
|
signing_key:
|
231
245
|
specification_version: 4
|
232
246
|
summary: Tools to help you develop Zendesk Apps.
|
@@ -238,3 +252,4 @@ test_files:
|
|
238
252
|
- features/step_definitions/app_steps.rb
|
239
253
|
- features/support/env.rb
|
240
254
|
- features/validate.feature
|
255
|
+
has_rdoc:
|