gitlink 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/bin/gitlink +5 -2
- data/gitlink.rdoc +1 -1
- data/lib/gitlink/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af91528f91e0641bfa876ec2f8efc7457d56cd2a
|
|
4
|
+
data.tar.gz: a220bffdefe7b6f2a2434af2210cabe256cbae0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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(
|
|
66
|
-
|
|
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
data/lib/gitlink/version.rb
CHANGED
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.
|
|
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
|
|
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
|