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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfbccdb743988fd90e94fe1fc4eb0333087cb85c
4
- data.tar.gz: 20be48e026db74aaa1b09540c13a59b19c8d18d6
3
+ metadata.gz: 386f02269f7791bdbbdd01d7c43adc1bb8e3a5fa
4
+ data.tar.gz: 86b6fcc056f2d6536634e065600c2ac695ffe041
5
5
  SHA512:
6
- metadata.gz: 6d263dc8581375e7c683a6d184a7a6ed23c448bcdd329b38efbc8d5f3d9c5927a231b3d68f51c935644af2925d7238dadc0a9ee5d8ecd0abe9123ff5fae3f2a6
7
- data.tar.gz: 9323fd693cb43b94f6203ea472d23cb6962251bd8c5ab864f9f4fd929eaab126137c64cf7d9a62b31724980864d3b8ebabdb15eb125df17ecdd171f9ed9ccb36
6
+ metadata.gz: 83cfe549782c2b57eb7f762debf952cdcbf466c65b303badb3deb89819d415c4bd889971d44968dff61c8bfbb22627163f52a11f035974b0c3086467aa6a0819
7
+ data.tar.gz: 4509af37f1ca7bcfd607432ca565bf7b475bf754444bf57f7f5100c89bb234c35ab673d709720de8b211ce463cd131d7fec3b88bda14723badb428280b462ca0
@@ -2,7 +2,8 @@
2
2
  "name": "<%= @app_name %>",
3
3
  "author": {
4
4
  "name": "<%= @author_name %>",
5
- "email": "<%= @author_email %>"
5
+ "email": "<%= @author_email %>",
6
+ "url": "<%= @author_url %>"
6
7
  },
7
8
  "defaultLocale": "en",
8
9
  "private": true,
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 = get_value_from_stdin("Enter this app author's name:\n", :error_msg => "Invalid name, try again:")
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
- @app_name = get_value_from_stdin("Enter a name for this new app:\n", :error_msg => "Invalid app name, try again:")
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.14.2
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-03-02 00:00:00.000000000 Z
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: