octokom 0.0.3 → 0.0.4

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: a827d2870894f3b5f4c778cbc97475081b536758
4
- data.tar.gz: 925ab8ea02b3347905a44f4752f79348329b2801
3
+ metadata.gz: d01587e532a7ecff4d03a850d43e096e02f349d7
4
+ data.tar.gz: 67db0db8ea509de65f096c9976965a1d082d9ed9
5
5
  SHA512:
6
- metadata.gz: 1cb21e97e894109e9b5e05a0a1c30df072d3de2f2a446a197f838ce6c6d07340d4896fcadca62b7007406990bc6cf3ea3d749d0a33d0f22009e05d1da0e7796a
7
- data.tar.gz: cdde0f3ac7c090bb8ce170091a1ffcd2d5a3849d4d6ec93b5aee7cac933e48d091755d70596c8a2ccd4411797f3cef9f0e9dcc4025fd9fb11195f400a0b5387f
6
+ metadata.gz: 3af9d1f28db6b804ceee13da9eb0a1e453b52bce005d742f4282fccc5a235f346290c5789484c4d28b30977b792545dbf9ce14fc4baa8b2a0b7fbdb64dead027
7
+ data.tar.gz: b6e36c5f525079755b437894ff375a8a94cf7ea80a780acdb3a5d3052805f3c4ceb5d32ce795d6f831f3bdf677126e51d30bd3ff781775d639f3deb05bddfde5
@@ -32,9 +32,14 @@ class PullRequest < Octokom::Command
32
32
 
33
33
  authenticate do |auth|
34
34
  task("Create pull-request #{@repo} (#{@base}:#{@head})") do
35
- auth.client.create_pull_request(@repo, @base, @head, @title, @desc) unless dry_run?
35
+ unless dry_run?
36
+ @success = auth.client.create_pull_request(@repo, @base, @head, @title, @desc)
37
+ print " (+#{@success.additions} -#{@success.deletions})"
38
+ end
36
39
  end
37
40
  end
41
+
42
+ puts "#{Octokit::Default::WEB_ENDPOINT}/#{@repo}/pull/#{@success.number}" if @success
38
43
  end
39
44
  end
40
45
  end
@@ -1,3 +1,3 @@
1
1
  module Octokom
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Jagusch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -144,7 +144,7 @@ rubyforge_project:
144
144
  rubygems_version: 2.2.0
145
145
  signing_key:
146
146
  specification_version: 4
147
- summary: octokom-0.0.3
147
+ summary: octokom-0.0.4
148
148
  test_files:
149
149
  - spec/octokom/cli_spec.rb
150
150
  - spec/octokom/client_spec.rb