ghit 0.2.1 → 0.2.2
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 +8 -8
- data/README.md +5 -0
- data/lib/ghit/repo_locator.rb +14 -2
- data/lib/ghit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MTU3NDRmNDg5ZjVjZWU0ZTRjYWZhYTQwOTJhMjEwMzZjZDI2YTE2ZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MGMxMTU1ZmMwYmUxZmY0MjdkNzhiYmFhZGNmYjMzODcwZDI1NWFlZg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NzJjNDk0NWU3NDVlOWZiMjBiYWExY2I4NWY2OGQxZjdjZGJlNzk1NzRhMDgw
|
|
10
|
+
MjVkODdhOGQxODFjMmM2YjcyYWMzNGQ0YzI5MDJkMjEzYjJiMDk2ZjhkNjY1
|
|
11
|
+
MGEzNDhjOTFhZjZhNTlmYWI0YjE1NjEzYTg4YzNkMTE0YzBhYTI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MGI2NTc0MGYyZDA4NWI3MzdjMzE1MWM3NTQ2YThlYTczYWEyZDliNmNkNDQw
|
|
14
|
+
MzljNGRiMDIxZWQyMjA0YTQ0ZGU2ZGY2MjZlZjkwNjYyMDJkODU0MDMwOTUw
|
|
15
|
+
NjBlYzk2ZWUyNjM1MzhiNWNmMTQyNTAyOGQ5ZDI3MTNjNzU0OGE=
|
data/README.md
CHANGED
|
@@ -14,6 +14,10 @@ certain Github pages of the repo (if it exists), or get some repo statistics in
|
|
|
14
14
|
|
|
15
15
|
That's it!
|
|
16
16
|
|
|
17
|
+
If you are using Ubuntu/Debian-based OS, ```xdg-utils``` is a dependency. You can install it using:
|
|
18
|
+
|
|
19
|
+
```sudo apt-get xdg-utils```
|
|
20
|
+
|
|
17
21
|
## Usage
|
|
18
22
|
|
|
19
23
|
There are 7 new ```git``` commands now.
|
|
@@ -43,3 +47,4 @@ If you'd like to improve your commit messages composition, take a look at [git-s
|
|
|
43
47
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
44
48
|
5. Create new Pull Request
|
|
45
49
|
|
|
50
|
+
Made by [@fteem](http://github.com/fteem). Thanks to [@ristovskiv](http://github.com/ristovskiv) for helping.
|
data/lib/ghit/repo_locator.rb
CHANGED
|
@@ -8,16 +8,28 @@ module Ghit
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def initialize(page = nil)
|
|
11
|
-
@page
|
|
11
|
+
@page = page
|
|
12
12
|
@globals = Ghit::Globals.new
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def open
|
|
16
|
-
|
|
16
|
+
if RUBY_PLATFORM =~ /darwin/i
|
|
17
|
+
open_for_osx
|
|
18
|
+
elsif RUBY_PLATFORM =~ /linux/i
|
|
19
|
+
open_for_linux
|
|
20
|
+
end
|
|
17
21
|
end
|
|
18
22
|
|
|
19
23
|
private
|
|
20
24
|
|
|
25
|
+
def open_for_linux
|
|
26
|
+
%x(xdg-open #{build_url})
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def open_for_osx
|
|
30
|
+
%x(open #{build_url})
|
|
31
|
+
end
|
|
32
|
+
|
|
21
33
|
def build_url
|
|
22
34
|
"#{@globals.url}/#{@page}"
|
|
23
35
|
end
|
data/lib/ghit/version.rb
CHANGED