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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c096be0a8d66846437311b91ad38f464afc49b9c
4
- data.tar.gz: f6e1d5e8f0643015fca828e276cdc8f2f29b0cc3
3
+ metadata.gz: 2c985d9e718e2feed7ec333208251e24c1db2f3e
4
+ data.tar.gz: 4401c13b81de6f31d52c7470c4b332b0e0742e57
5
5
  SHA512:
6
- metadata.gz: d87dc0fe728c39c22ef5c73421bed2fcd961386ec269ce89e7665409102e3e27d1a3924b2380e6030bec185d42b776c7ad37c5b7c1fdf4404a14329503004573
7
- data.tar.gz: d77be97e8cbf7023682189606e080a0c87b178a9412d0d7259871924ca08aa8fcd95bbc0bb936c26d9e01561c250a5d3070ea055521690699a7aaeca58ce21cb
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!({ :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 }))
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
@@ -1,3 +1,3 @@
1
1
  module Toolshed
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolshed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - test