zendesk_apps_tools 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app_template/manifest.json.tt +1 -1
- data/features/new.feature +1 -1
- data/lib/zendesk_apps_tools/command.rb +2 -3
- data/lib/zendesk_apps_tools/deploy.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbccdb743988fd90e94fe1fc4eb0333087cb85c
|
4
|
+
data.tar.gz: 20be48e026db74aaa1b09540c13a59b19c8d18d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d263dc8581375e7c683a6d184a7a6ed23c448bcdd329b38efbc8d5f3d9c5927a231b3d68f51c935644af2925d7238dadc0a9ee5d8ecd0abe9123ff5fae3f2a6
|
7
|
+
data.tar.gz: 9323fd693cb43b94f6203ea472d23cb6962251bd8c5ab864f9f4fd929eaab126137c64cf7d9a62b31724980864d3b8ebabdb15eb125df17ecdd171f9ed9ccb36
|
data/features/new.feature
CHANGED
@@ -117,11 +117,10 @@ module ZendeskAppsTools
|
|
117
117
|
clear_cache
|
118
118
|
@command = 'Create'
|
119
119
|
|
120
|
-
|
121
|
-
app_name = get_value_from_stdin('Enter app name:')
|
122
|
-
else
|
120
|
+
unless options[:zipfile]
|
123
121
|
app_name = JSON.parse(File.read(File.join options[:path], 'manifest.json'))['name']
|
124
122
|
end
|
123
|
+
app_name ||= get_value_from_stdin('Enter app name:')
|
125
124
|
deploy_app(:post, '/api/v2/apps.json', { :name => app_name })
|
126
125
|
end
|
127
126
|
|
@@ -58,8 +58,12 @@ module ZendeskAppsTools
|
|
58
58
|
|
59
59
|
def check_status(response)
|
60
60
|
job = response.body
|
61
|
-
|
61
|
+
job_response = JSON.parse(job)
|
62
|
+
if job_response['error']
|
63
|
+
say_error_and_exit job_response['error']
|
64
|
+
end
|
62
65
|
|
66
|
+
job_id = job_response['job_id']
|
63
67
|
check_job job_id
|
64
68
|
end
|
65
69
|
|
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.14.
|
4
|
+
version: 1.14.2
|
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: 2014-02
|
14
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|