socialcast-git-extensions 2.3.1 → 2.3.2

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.
@@ -22,5 +22,6 @@ url = create_pull_request username, password, branch, repo
22
22
  if url
23
23
  share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", {:url => url, :message_type => 'review_request'}
24
24
  else
25
- puts "Skipping socialcast announcement"
25
+ HighLine.say "Skipping socialcast announcement"
26
+ exit 1
26
27
  end
@@ -6,13 +6,13 @@ module Socialcast
6
6
  def create_pull_request(username, password, branch, repo)
7
7
  payload = {:title => branch, :base => 'master', :head => branch}.to_json
8
8
  begin
9
- puts "Creating pull request for #{branch} against master in #{repo}"
9
+ HighLine.say "Creating pull request for #{branch} against master in #{repo}"
10
10
  response = RestClient::Request.new(:url => "https://api.github.com/repos/#{repo}/pulls", :method => "POST", :user => username, :password => password, :payload => payload, :headers => {:accept => :json, :content_type => :json}).execute
11
11
  data = JSON.parse response.body
12
12
  url = data['html_url']
13
13
  rescue RestClient::Exception => e
14
14
  data = JSON.parse e.http_body
15
- puts "Failed to create pull request: #{data['message']}"
15
+ HighLine.say "Failed to create pull request: #{data['message']}"
16
16
  false
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "2.3.1"
3
+ VERSION = "2.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 3
9
- - 1
10
- version: 2.3.1
9
+ - 2
10
+ version: 2.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek