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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21d2e91f520a569d91f79eec8f7456089d9a034c
4
- data.tar.gz: 6046fbd68335556cacba5cb21fb4a5750d5134b9
3
+ metadata.gz: 70b3e24f52b4ba738b6a631a3c4aa2841ded3bdb
4
+ data.tar.gz: 53ef20f0bbbcd7448c0574071e9a32f9a3d633e2
5
5
  SHA512:
6
- metadata.gz: c2660fe941e3b3071181109215c528c116ab481ed488e6b63b9332b14f0d4f3862057b880c424a56d22cb1f524100b415f5e1585188e20022f5afa8f12d81af2
7
- data.tar.gz: 6f2db6b3a667db5ad0ffcadc669d4e92edd9930efaa1f2f42c8e65a292a52ba7f8ae3cdc02f1a71c8dfc97584c4e5a85f179d2ff06c93b9382fb1d4a6bc8dedb
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
- description = args.first
39
- description = CGI::escape("[Trello](#{description})")
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}\""
@@ -1,3 +1,3 @@
1
1
  module TrelloGithub
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
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
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-18 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake