gitlink 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: cd6718d8fd4c6c3b2d5acb25ab90be9929c10334
4
- data.tar.gz: 414ebfb875352369a600783d8f7c99e6ca1639ed
3
+ metadata.gz: af91528f91e0641bfa876ec2f8efc7457d56cd2a
4
+ data.tar.gz: a220bffdefe7b6f2a2434af2210cabe256cbae0e
5
5
  SHA512:
6
- metadata.gz: f119a31aaeea54cfafc35c8d69066b1c0da5f5d2ecde10eb19313668f07b90d1f05636022498f1149957f3a9b902694b0bce5638a5db3b81476577f47a35f52f
7
- data.tar.gz: 574358ccf39ea59bc791dcb03eb75c473ccbadfd80a34e04d7e0ce06ce316302efe6c7f4a91991fd0e9d3fe43c44aeefda69d51597257da6b8a6359497a0c0f9
6
+ metadata.gz: aeef9fb49ca8acdf121adf48749c9943d03f6591ec7f9c1a81020bcc98deba8a268a6dacda6cc0eca9f98f6ef32dd9de99ee6f4b4aa5c9a175a399ced54a27f4
7
+ data.tar.gz: 9e538be7a218e2e7d7e6b0657085085d689cbd8f9c2973c1b90757e742e4390e5e4e78034d46a6dce89f0e56ae3a62ed2c49d9ad96177f1fb78ff2ec8d8c7085
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlink (0.0.3)
4
+ gitlink (0.0.4)
5
5
  gli (= 2.13.4)
6
6
 
7
7
  GEM
@@ -33,10 +33,12 @@ GEM
33
33
  ffi (1.9.10)
34
34
  gherkin3 (3.1.2)
35
35
  gli (2.13.4)
36
+ json (1.8.3)
36
37
  multi_json (1.11.2)
37
38
  multi_test (0.1.2)
38
39
  rake (10.4.2)
39
40
  rdoc (4.2.1)
41
+ json (~> 1.4)
40
42
  rspec-expectations (3.4.0)
41
43
  diff-lcs (>= 1.2.0, < 2.0)
42
44
  rspec-support (~> 3.4.0)
data/bin/gitlink CHANGED
@@ -62,9 +62,12 @@ pre do |global,command,options,args|
62
62
 
63
63
  raise "this project does not have any remotes" if remotes.empty?
64
64
 
65
- project_params = remotes.first.match(/\:(.*).git/)[1]
66
- @base_project_url = "http://github.com/#{project_params}"
65
+ project_params = remotes.first.match(/\.*(.com|.net|.org|.biz|.edu)(:|\/)(.*)(.git|\s)/)
66
+ unsupported_url_message = "Your remote has an unsupported URL. Feel free to make an issue at github.com/cacqw7/gitlink"
67
+ raise unsupported_url_message if project_params.size == 0
67
68
 
69
+ project_params = project_params[3]
70
+ @base_project_url = "http://github.com/#{project_params}"
68
71
  @current_branch = %x(git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||')
69
72
  @current_branch.chomp!
70
73
 
data/gitlink.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  == gitlink - Allows you to quickly open your GitHub project in a web browser from the command line
2
2
 
3
- v0.0.3
3
+ v0.0.4
4
4
 
5
5
  === Global Options
6
6
  === -r|--remote remote_name
@@ -1,3 +1,3 @@
1
1
  module Gitlink
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlink
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
  - Chase Clettenberg
@@ -112,8 +112,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.5.1
115
+ rubygems_version: 2.4.5
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Open GitHub projects from the command line
119
119
  test_files: []
120
+ has_rdoc: true