brah 0.3.0 → 0.4.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/brah/version.rb +1 -1
  3. data/lib/brah.rb +4 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05273303f78967cd80db608dd44e0c4031b530c3
4
- data.tar.gz: 1caee6df1b3ac990d701c02534703c1133ff26a7
3
+ metadata.gz: 39c1dba3fd2de3ccf342e2895092a2bd361a2245
4
+ data.tar.gz: fe254271bb230f99efd2a4b158e3643eb4de8766
5
5
  SHA512:
6
- metadata.gz: ddc45ff4a965062d9103ffe1e944140b658e334af0af29d12d31dbcfab3957903737c3e9133df20dd9fd13dae694b7a1de51cccfc3cf5cefca3fbeea68c7f67a
7
- data.tar.gz: 99775fab706fdff08407052d1e8a15f8252b8ffa643fe6ab21d9e5ea821c9b67517a97b4d8fab176c41fce7f85fcd14b4815001e397864e15eba97df640589b2
6
+ metadata.gz: d8b7658899ad76a3a1f24db2ac2ee17a14dba94f35a88fa124e1b5a279458a945d95df722a608d79b109b4d484f555eedbffc775a7f1b573595fa1e38c971d7e
7
+ data.tar.gz: bb82700f233c6cd2ea50beac18fd44b56ca7d1a937f786712f7982f457b589c99c77dbf4c007d86d996757a9d895af01909b9650fc1e782ae4624783b017685f
data/lib/brah/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Brah
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/brah.rb CHANGED
@@ -20,7 +20,10 @@ module Brah
20
20
  private
21
21
 
22
22
  def convert_ssh_to_http(git_remote_output)
23
- git_remote_output.match(/origin\t(.+)\.git/)[1].gsub("com:", "com/").gsub("git@", "https://")
23
+ git_remote_output.match(/origin\t(\S+)/)[1].
24
+ gsub(/\.git$/, "").
25
+ gsub("com:", "com/").
26
+ gsub("git@", "https://")
24
27
  end
25
28
  end
26
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Yoder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-04 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler