githublaunch 0.1.1 → 0.1.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.
- data/LICENSE +20 -0
- data/README.md +59 -0
- data/lib/githublaunch/version.rb +1 -1
- data/lib/githublaunch.rb +1 -6
- metadata +4 -2
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright 2012 Logan Linn (logan@loganlinn.com)
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Github Launch
|
|
2
|
+
|
|
3
|
+
I find Github's web interface very powerful and familiar, so I created a
|
|
4
|
+
tool to help launch common Github URLs from the command-line.
|
|
5
|
+
|
|
6
|
+
It doesn't do anything fancy or even use the API. It just builds &
|
|
7
|
+
launches Github URLs to help save time and/or a bunch of bookmarks.
|
|
8
|
+
|
|
9
|
+
It is mostly intended for OSX where the `open` command launches the
|
|
10
|
+
default browser. Currently, on other platforms the URL will be printed
|
|
11
|
+
instead.
|
|
12
|
+
|
|
13
|
+
Built with [Thor] and [Grit]. Pull Requests welcome!
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Here is some example usage:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Open page for specific commit
|
|
21
|
+
$ ghl show 1d780099df
|
|
22
|
+
|
|
23
|
+
# Open page for last commit
|
|
24
|
+
$ ghl show
|
|
25
|
+
|
|
26
|
+
# Open file browser for specific branch
|
|
27
|
+
$ ghl branch topic123
|
|
28
|
+
|
|
29
|
+
# Open file browser for current branch
|
|
30
|
+
$ ghl branch
|
|
31
|
+
|
|
32
|
+
# Open the Network view
|
|
33
|
+
$ ghl network
|
|
34
|
+
|
|
35
|
+
# Open page to create pull request from current branch to master
|
|
36
|
+
$ ghl pull master
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Be sure to check out the help via `ghl help` for full command listing.
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
githublaunch is [hosted on rubygems][githublaunch] and can be installed
|
|
44
|
+
via `gem`:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
gem install githublaunch
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
githublauncher is licensed under the MIT license. See [LICENSE]
|
|
53
|
+
for more details
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
[githublaunch]: https://rubygems.org/gems/githublaunch
|
|
57
|
+
[Thor]: https://rubygems.org/gems/thor
|
|
58
|
+
[Grit]: https://rubygems.org/gems/grit
|
|
59
|
+
[LICENSE]: http://raw.github.com/loganlinn/githublauncher/master/LICENSE
|
data/lib/githublaunch/version.rb
CHANGED
data/lib/githublaunch.rb
CHANGED
|
@@ -25,12 +25,7 @@ class GithubLaunch < Thor
|
|
|
25
25
|
|
|
26
26
|
desc "compare BASE HEAD", "Open compare page between two branches (defaults to current branch)"
|
|
27
27
|
def compare(base, head=nil)
|
|
28
|
-
|
|
29
|
-
head = base
|
|
30
|
-
base = repo.head.name
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
launch "/compare/#{base}...#{head}"
|
|
28
|
+
launch "/compare/#{base}...#{head || repo.head.name}"
|
|
34
29
|
end
|
|
35
30
|
|
|
36
31
|
desc "show COMMIT", "Open a commit (defaults to last commit on current branch)"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: githublaunch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.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-
|
|
12
|
+
date: 2012-10-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thor
|
|
@@ -52,6 +52,8 @@ extra_rdoc_files: []
|
|
|
52
52
|
files:
|
|
53
53
|
- .gitignore
|
|
54
54
|
- Gemfile
|
|
55
|
+
- LICENSE
|
|
56
|
+
- README.md
|
|
55
57
|
- bin/ghl
|
|
56
58
|
- githublaunch.gemspec
|
|
57
59
|
- lib/githublaunch.rb
|