zendesk_apps_tools 1.14.2 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app_template/manifest.json.tt +2 -1
- data/features/new.feature +4 -1
- data/features/step_definitions/app_steps.rb +1 -0
- data/lib/zendesk_apps_tools/command.rb +3 -2
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 386f02269f7791bdbbdd01d7c43adc1bb8e3a5fa
|
|
4
|
+
data.tar.gz: 86b6fcc056f2d6536634e065600c2ac695ffe041
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83cfe549782c2b57eb7f762debf952cdcbf466c65b303badb3deb89819d415c4bd889971d44968dff61c8bfbb22627163f52a11f035974b0c3086467aa6a0819
|
|
7
|
+
data.tar.gz: 4509af37f1ca7bcfd607432ca565bf7b475bf754444bf57f7f5100c89bb234c35ab673d709720de8b211ce463cd131d7fec3b88bda14723badb428280b462ca0
|
data/features/new.feature
CHANGED
|
@@ -6,6 +6,7 @@ Feature: create a template for a new zendesk app
|
|
|
6
6
|
When I run "zat new" command with the following details:
|
|
7
7
|
| author name | John Citizen |
|
|
8
8
|
| author email | john@example.com |
|
|
9
|
+
| author url | http://myapp.com |
|
|
9
10
|
| app name | John Test App |
|
|
10
11
|
| app dir | |
|
|
11
12
|
|
|
@@ -17,6 +18,7 @@ Feature: create a template for a new zendesk app
|
|
|
17
18
|
When I run "zat new" command with the following details:
|
|
18
19
|
| author name | John Citizen |
|
|
19
20
|
| author email | john@example.com |
|
|
21
|
+
| author url | http://myapp.com |
|
|
20
22
|
| app name | John Test App |
|
|
21
23
|
| app dir | tmp/aruba |
|
|
22
24
|
|
|
@@ -26,7 +28,8 @@ Feature: create a template for a new zendesk app
|
|
|
26
28
|
"name": "John Test App",
|
|
27
29
|
"author": {
|
|
28
30
|
"name": "John Citizen",
|
|
29
|
-
"email": "john@example.com"
|
|
31
|
+
"email": "john@example.com",
|
|
32
|
+
"url": "http://myapp.com"
|
|
30
33
|
},
|
|
31
34
|
"defaultLocale": "en",
|
|
32
35
|
"private": true,
|
|
@@ -22,6 +22,7 @@ Given /^an app is created in directory "(.*?)"$/ do |app_dir|
|
|
|
22
22
|
And I run "zat new" command with the following details:
|
|
23
23
|
| author name | John Citizen |
|
|
24
24
|
| author email | john@example.com |
|
|
25
|
+
| author url | http://myapp.com |
|
|
25
26
|
| app name | John Test App |
|
|
26
27
|
| app dir | #{app_dir} |
|
|
27
28
|
}
|
|
@@ -30,9 +30,10 @@ module ZendeskAppsTools
|
|
|
30
30
|
|
|
31
31
|
desc "new", "Generate a new app"
|
|
32
32
|
def new
|
|
33
|
-
@author_name
|
|
33
|
+
@author_name = get_value_from_stdin("Enter this app author's name:\n", :error_msg => "Invalid name, try again:")
|
|
34
34
|
@author_email = get_value_from_stdin("Enter this app author's email:\n", :valid_regex => /^.+@.+\..+$/, :error_msg => "Invalid email, try again:")
|
|
35
|
-
@
|
|
35
|
+
@author_url = get_value_from_stdin("Enter this app author's url:\n", :valid_regex => /^https?:\/\/.+$/, :error_msg => "Invalid url, try again:", :allow_empty => true)
|
|
36
|
+
@app_name = get_value_from_stdin("Enter a name for this new app:\n", :error_msg => "Invalid app name, try again:")
|
|
36
37
|
|
|
37
38
|
get_new_app_directory
|
|
38
39
|
|
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.15.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: 2014-
|
|
14
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: thor
|
|
@@ -227,4 +227,3 @@ test_files:
|
|
|
227
227
|
- features/step_definitions/app_steps.rb
|
|
228
228
|
- features/support/env.rb
|
|
229
229
|
- features/validate.feature
|
|
230
|
-
has_rdoc:
|