trello_github 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/trello_github +8 -2
- data/lib/trello_github/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70b3e24f52b4ba738b6a631a3c4aa2841ded3bdb
|
4
|
+
data.tar.gz: 53ef20f0bbbcd7448c0574071e9a32f9a3d633e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d06a09280fcef5c69b7b1fb6b4d4cef29f83294e350d08dcedd51206af43731813b88fa2189543767ce226b58f5680f25b704b7f93a5e1a7f46663efc8adc11
|
7
|
+
data.tar.gz: 5fa3a1a5bf9be50712dfd24f5866fc74904cacd709302f7d81f6085d830768a3c052b7fc7548ea04569c4962e9047d2956ddb9510e940f459f54a72db1cb207c
|
data/bin/trello_github
CHANGED
@@ -34,12 +34,18 @@ command :pr do |c|
|
|
34
34
|
remote_repo = local_repo.remotes.first.url.gsub(/.+:(.+)\.git/, '\1')
|
35
35
|
branch = Git.init.lib.branch_current
|
36
36
|
|
37
|
+
title = branch.dup
|
38
|
+
title.tr!("_", " ")
|
39
|
+
title.capitalize!
|
40
|
+
title = CGI::escape(title)
|
41
|
+
|
37
42
|
if args.any?
|
38
|
-
|
39
|
-
description = CGI::escape("[Trello](#{
|
43
|
+
trello_url = args.first
|
44
|
+
description = CGI::escape("[Trello](#{trello_url})")
|
40
45
|
end
|
41
46
|
|
42
47
|
url = "https://github.com/#{remote_repo}/compare/#{branch}?expand=1"
|
48
|
+
url += "&title=#{title}"
|
43
49
|
url += "&body=#{description}" if description
|
44
50
|
|
45
51
|
exec "open \"#{url}\""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trello_github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Bongart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|