socialcast-git-extensions 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,4 +19,4 @@ repo = `git config -z --get remote.origin.url`.strip
19
19
  # ex: git@github.com:socialcast/socialcast-git-extensions.git
20
20
  repo = repo.scan(/:(.+\/.+)\./).first.first
21
21
  url = create_pull_request username, password, branch, repo
22
- share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", url
22
+ share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", {:url => url, :message_type => 'review_request'}
@@ -11,10 +11,11 @@ module Socialcast
11
11
  HighLine.say "\n> <%= color('#{cmd.gsub("'", '')}', :red) %>"
12
12
  raise "#{cmd} failed" unless system cmd
13
13
  end
14
- def share(message, url = nil)
14
+ def share(message, options = {})
15
15
  return if ARGV.delete("--quiet") || ARGV.delete("-q")
16
16
  cmd = "socialcast share '#{message}'"
17
- cmd += " --url #{url}" if url
17
+ cmd += " --url #{options[:url]}" if options[:url]
18
+ cmd += " --message_type #{options[:message_type]}" if options[:message_type]
18
19
  run_cmd cmd
19
20
  end
20
21
  end
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "2.2.6"
3
+ VERSION = "2.2.7"
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 6
10
- version: 2.2.6
9
+ - 7
10
+ version: 2.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-18 00:00:00 Z
18
+ date: 2011-11-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: grit