socialcast-git-extensions 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,10 +18,10 @@ module Socialcast
18
18
  end
19
19
 
20
20
  # lookup the current repository of the PWD
21
- # ex: git@github.com:socialcast/socialcast-git-extensions.git
21
+ # ex: git@github.com:socialcast/socialcast-git-extensions.git OR https://github.com/socialcast/socialcast-git-extensions.git
22
22
  def current_repo
23
23
  repo = `git config -z --get remote.origin.url`.strip
24
- repo.scan(/:(.+\/.+)\./).first.first
24
+ repo.gsub(/\.git$/,'').split(/[:\/]/).last(2).join('/')
25
25
  end
26
26
 
27
27
  # retrieve a list of branches
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "3.1.1"
3
+ VERSION = "3.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-15 00:00:00.000000000 Z
12
+ date: 2012-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: grit
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: 4053555784323724017
217
+ hash: -3432850963659879185
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  none: false
220
220
  requirements:
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  segments:
225
225
  - 0
226
- hash: 4053555784323724017
226
+ hash: -3432850963659879185
227
227
  requirements: []
228
228
  rubyforge_project: socialcast-git-extensions
229
229
  rubygems_version: 1.8.24