gitfinger 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE.txt +21 -0
- data/README.md +17 -0
- data/bin/gitfinger +2 -2
- data/gitfinger.gemspec +1 -1
- data/screenshots/gitfinger.png +0 -0
- metadata +6 -3
data/MIT-LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Copyright (c) 2012 Daniel Choi, http://danielchoi.com/software/
|
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.
|
21
|
+
|
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# gitfinger
|
2
|
+
|
3
|
+
A simple Ruby gem that lets you finger GitHub users.
|
4
|
+
|
5
|
+
![screen](https://github.com/danchoi/gitfinger/raw/master/screenshots/gitfinger.png)
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
|
9
|
+
gitfinger [GitHub username]
|
10
|
+
|
11
|
+
|
12
|
+
## Install
|
13
|
+
|
14
|
+
gem install gitfinger
|
15
|
+
|
16
|
+
|
17
|
+
|
data/bin/gitfinger
CHANGED
@@ -23,7 +23,7 @@ def truncate(s, len)
|
|
23
23
|
end
|
24
24
|
|
25
25
|
res = repos.map {|r|
|
26
|
-
d = %w( name
|
26
|
+
d = %w( repo name w watchers f forks i open_issues updated updated_at pushed pushed_at type fork desc description).each_slice(2).reduce({}) {|m, x|
|
27
27
|
m[x[0]] = r[x[1]]
|
28
28
|
m
|
29
29
|
}
|
@@ -39,7 +39,7 @@ end
|
|
39
39
|
|
40
40
|
abort "No repositories found for #{user}" unless !res.empty?
|
41
41
|
|
42
|
-
longest_name_len = res.reduce(0) {|max, row| [max, row['
|
42
|
+
longest_name_len = res.reduce(0) {|max, row| [max, row['repo'].length].max }
|
43
43
|
|
44
44
|
placeholders = "%#{longest_name_len}s%6s%5s%4s%13s%13s%9s "
|
45
45
|
desc_length = `tput cols`.to_i - (placeholders.scan(/\d+/).map(&:to_i).reduce(0){|sum,x| sum+x} + 3)
|
data/gitfinger.gemspec
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitfinger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-24 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|
16
|
-
requirement: &
|
16
|
+
requirement: &70340046809280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0.6'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70340046809280
|
25
25
|
description: Finger GitHub users
|
26
26
|
email:
|
27
27
|
- dhchoi@gmail.com
|
@@ -32,9 +32,12 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- .gitignore
|
34
34
|
- Gemfile
|
35
|
+
- MIT-LICENSE.txt
|
36
|
+
- README.md
|
35
37
|
- Rakefile
|
36
38
|
- bin/gitfinger
|
37
39
|
- gitfinger.gemspec
|
40
|
+
- screenshots/gitfinger.png
|
38
41
|
homepage: http://gitihub.com/danchoi/gitfinger
|
39
42
|
licenses: []
|
40
43
|
post_install_message:
|