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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c40310306a4eeec8fb316d4a6741300f694b967
4
- data.tar.gz: e2d4216ff7c835ecdbef5a30aed9e71ef187e196
3
+ metadata.gz: cfbccdb743988fd90e94fe1fc4eb0333087cb85c
4
+ data.tar.gz: 20be48e026db74aaa1b09540c13a59b19c8d18d6
5
5
  SHA512:
6
- metadata.gz: 78d1bbdcc1dad2260c6eba430c6525e3320fdbdf2d88225efbc9adac313fab92bac18b80bdd125df4d413d43235fdbddfc190db4850bb4985d8ed274311aa874
7
- data.tar.gz: b8438b6df5744dd20f6e002f98ac978b13468f5e2bd8ff04347740ca6f0b09adc95cd6d513bbf5315c2d33f678a9f97502eeaaf3f7400c540789159d880d8783
6
+ metadata.gz: 6d263dc8581375e7c683a6d184a7a6ed23c448bcdd329b38efbc8d5f3d9c5927a231b3d68f51c935644af2925d7238dadc0a9ee5d8ecd0abe9123ff5fae3f2a6
7
+ data.tar.gz: 9323fd693cb43b94f6203ea472d23cb6962251bd8c5ab864f9f4fd929eaab126137c64cf7d9a62b31724980864d3b8ebabdb15eb125df17ecdd171f9ed9ccb36
@@ -8,5 +8,5 @@
8
8
  "private": true,
9
9
  "location": "ticket_sidebar",
10
10
  "version": "1.0",
11
- "frameworkVersion": "0.5"
11
+ "frameworkVersion": "1.0"
12
12
  }
data/features/new.feature CHANGED
@@ -32,7 +32,7 @@ Feature: create a template for a new zendesk app
32
32
  "private": true,
33
33
  "location": "ticket_sidebar",
34
34
  "version": "1.0",
35
- "frameworkVersion": "0.5"
35
+ "frameworkVersion": "1.0"
36
36
  }
37
37
  """
38
38
  And the app file "tmp/aruba/app.js" is created with:
@@ -117,11 +117,10 @@ module ZendeskAppsTools
117
117
  clear_cache
118
118
  @command = 'Create'
119
119
 
120
- if options[:zipfile]
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
- job_id = JSON.parse(job)['job_id']
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.1
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-25 00:00:00.000000000 Z
14
+ date: 2014-03-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor