toolshed 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toolshed/commands/create_pull_request.rb +7 -7
- data/lib/toolshed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c985d9e718e2feed7ec333208251e24c1db2f3e
|
4
|
+
data.tar.gz: 4401c13b81de6f31d52c7470c4b332b0e0742e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8932dd259abcf841c0b225db249089c8e083a5b4960b6049fa697988654fd7730f55517aa7d8c7392f216cc365d9e68aa8f4556463a0a328808af68cf4118d4
|
7
|
+
data.tar.gz: f24035635ed27bd5fb3de8979dbc26b60423f16db943528f6b809ebf427981cb1c39061ea469d1a4170fd43458f1ea41ececca1b54818fd53c39e18c004ab676
|
@@ -33,7 +33,7 @@ module Toolshed
|
|
33
33
|
puts "Ticket Tracking URL: #{ticket_tracking_url}"
|
34
34
|
puts "Ticket Tracking title: #{ticket_tracking_title}"
|
35
35
|
puts "Ticket ID: #{ticket_id}"
|
36
|
-
rescue
|
36
|
+
rescue Exception => e
|
37
37
|
puts "Ticket tracking tool is not supported at this time"
|
38
38
|
return
|
39
39
|
end
|
@@ -45,8 +45,8 @@ module Toolshed
|
|
45
45
|
git_tool = git_tool_class.create_instance
|
46
46
|
|
47
47
|
# create the pull request prompt when needed
|
48
|
-
title = read_user_input_pull_request_title("Pull request title (Default: #{ticket_tracking_title}):", options.merge!({ :
|
49
|
-
body = read_user_input_pull_request_body("Pull request body (Default: #{ticket_tracking_url}):", options.merge!({ :
|
48
|
+
title = read_user_input_pull_request_title("Pull request title (Default: #{ticket_tracking_title}):", options.merge!({ default: ticket_tracking_title }))
|
49
|
+
body = read_user_input_pull_request_body("Pull request body (Default: #{ticket_tracking_url}):", options.merge!({ default: ticket_tracking_url }))
|
50
50
|
|
51
51
|
puts "Pull request being created"
|
52
52
|
git_pull_request_result = git_tool.create_pull_request(title, body)
|
@@ -87,7 +87,7 @@ module Toolshed
|
|
87
87
|
puts message
|
88
88
|
value = $stdin.gets.chomp
|
89
89
|
if (value.empty?)
|
90
|
-
value = default
|
90
|
+
value = options[:default]
|
91
91
|
end
|
92
92
|
|
93
93
|
value
|
@@ -101,7 +101,7 @@ module Toolshed
|
|
101
101
|
value = $stdin.gets.chomp
|
102
102
|
|
103
103
|
if (value.empty?)
|
104
|
-
value = default
|
104
|
+
value = options[:default]
|
105
105
|
end
|
106
106
|
|
107
107
|
value
|
@@ -114,7 +114,7 @@ module Toolshed
|
|
114
114
|
value = $stdin.gets.chomp
|
115
115
|
|
116
116
|
if (value.empty?)
|
117
|
-
value = default
|
117
|
+
value = options[:default]
|
118
118
|
end
|
119
119
|
|
120
120
|
value
|
@@ -127,7 +127,7 @@ module Toolshed
|
|
127
127
|
value = $stdin.gets.chomp
|
128
128
|
|
129
129
|
if (value.empty?)
|
130
|
-
value = default
|
130
|
+
value = options[:default]
|
131
131
|
end
|
132
132
|
|
133
133
|
value
|
data/lib/toolshed/version.rb
CHANGED