zendesk_apps_tools 1.21.3 → 1.21.4

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: c55f8457e8611cc4111573447ba6a92a1212a62a
4
- data.tar.gz: 43a7be9a4dab6fecced7ac375f17068b17d181f4
3
+ metadata.gz: 464a8ed683ddc1a5ec54e935a5d219bd978cc17e
4
+ data.tar.gz: e26884d85c1e44d3ae3e299c095edf79eccf2fa6
5
5
  SHA512:
6
- metadata.gz: 3718ab94a6ff4593ec105804c05c5e4bf9712b67e0515190546983b06b75cd12495302c598b5856098f91ec1697c9bd9440a24f505b0d2b8e4f7cb8d999ef294
7
- data.tar.gz: c2c77eabc04e0329e7578b7ffbf8b8450d55a7830d7c242a694798594c4987e2be33a66ae67bb45d60ca25b08368ecf14eb145f06e0e781dbc96b5aa42985081
6
+ metadata.gz: eb8fb496066f1df972d487376ed289d4c25cc437f549ed3b6bf56e39658a758015584a0501641a4e066950936b1505fef75d4aef8f89f89b0cbecfd0784bb74a
7
+ data.tar.gz: 3020de4b708c057004a84bf253c2c41c3da003044741dbe6c31181b06b8f2bb0f0e58bcf93b38e4b4d9e553f7976c6f781639a0c53bb5ff11b10b63d370a8f98
@@ -88,11 +88,13 @@ module ZendeskAppsTools
88
88
  DEFAULT_SERVER_PATH = './'
89
89
  DEFAULT_CONFIG_PATH = './settings.yml'
90
90
  DEFAULT_SERVER_PORT = 4567
91
+ DEFAULT_APP_ID = 0
91
92
 
92
93
  desc 'server', 'Run a http server to serve the local app'
93
94
  method_option :path, default: DEFAULT_SERVER_PATH, required: false, aliases: '-p'
94
95
  method_option :config, default: DEFAULT_CONFIG_PATH, required: false, aliases: '-c'
95
96
  method_option :port, default: DEFAULT_SERVER_PORT, required: false
97
+ method_option :app_id, default: DEFAULT_APP_ID, required: false
96
98
  def server
97
99
  setup_path(options[:path])
98
100
  manifest = app_package.manifest_json
@@ -112,6 +114,7 @@ module ZendeskAppsTools
112
114
  server.set :parameters, settings
113
115
  server.set :manifest, manifest[:parameters]
114
116
  server.set :config, options[:config]
117
+ server.set :app_id, options[:app_id]
115
118
  server.run!
116
119
  end
117
120
  end
@@ -18,7 +18,7 @@ module ZendeskAppsTools
18
18
  end
19
19
  end
20
20
 
21
- ZendeskAppsSupport::Package.new(settings.root).readified_js(nil, 0, "http://localhost:#{settings.port}/", settings.parameters)
21
+ ZendeskAppsSupport::Package.new(settings.root).readified_js(nil, settings.app_id, "http://localhost:#{settings.port}/", settings.parameters)
22
22
  end
23
23
  end
24
24
  end
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.21.3
4
+ version: 1.21.4
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: 2015-02-08 00:00:00.000000000 Z
14
+ date: 2015-02-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor