trackrepos 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -7
- data/lib/trackrepos/repos.rb +11 -2
- data/lib/trackrepos/version.rb +1 -1
- data/trackrepos.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -4,9 +4,9 @@ Command line tool that parses a yaml file in a directory to update and report on
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Install the Ruby Gem `
|
7
|
+
Install the Ruby Gem `trackrepos`:
|
8
8
|
|
9
|
-
gem install
|
9
|
+
gem install trackrepos
|
10
10
|
|
11
11
|
## Setup
|
12
12
|
|
@@ -47,13 +47,13 @@ additional action is taken to manually fetch any updated tags.
|
|
47
47
|
|
48
48
|
### tracked-repos.yaml examples
|
49
49
|
|
50
|
-
1. [
|
51
|
-
2. [
|
50
|
+
1. [Ruby Gems](https://raw.github.com/gist/2907585/gems-tracked-repos.yaml)
|
51
|
+
2. [JavaScript](https://raw.github.com/gist/2907585/javascript-tracked-repos.yaml)
|
52
52
|
|
53
|
-
Running: trackrepos in a directory with a file in that format named
|
53
|
+
Running: trackrepos in a directory with a file in that format named `.tracked-repos.yaml` will update (checking out the repo if it doesn't exist locally) and summarize the newest and oldest projects that were updated.
|
54
54
|
|
55
55
|
Here's a truncated version of the console output when running trackrepos in the directory that contains
|
56
|
-
the
|
56
|
+
the javascript yaml tracking file linked above.
|
57
57
|
|
58
58
|
=======================================================================================
|
59
59
|
|
@@ -132,7 +132,7 @@ The defatult is the master branch and does not need to be specified.
|
|
132
132
|
|
133
133
|
Change to the directory with the `.tracked-repos.yaml` file and run the command-line tool:
|
134
134
|
|
135
|
-
|
135
|
+
trackrepos
|
136
136
|
|
137
137
|
### help
|
138
138
|
|
data/lib/trackrepos/repos.rb
CHANGED
@@ -4,7 +4,7 @@ require 'time'
|
|
4
4
|
module TrackRepos
|
5
5
|
class Repos
|
6
6
|
|
7
|
-
PATH_FORMAT_STR = " %-
|
7
|
+
PATH_FORMAT_STR = " %-50s%-30s%-30s"
|
8
8
|
COMMIT_FORMAT_STR = " %-24s%s"
|
9
9
|
|
10
10
|
TRACKED_YAML = '.tracked-repos.yaml'
|
@@ -256,7 +256,16 @@ Least recently updated:
|
|
256
256
|
end
|
257
257
|
readme = Dir["*"].find_all {|p| p[/.*readme.*/i]}
|
258
258
|
unless readme.empty?
|
259
|
-
|
259
|
+
content = File.readlines(readme[0])
|
260
|
+
if content.empty?
|
261
|
+
desc = nil
|
262
|
+
else
|
263
|
+
desc = content[0].strip
|
264
|
+
if desc.length > 60
|
265
|
+
desc = desc[0,60].strip
|
266
|
+
desc += " ..."
|
267
|
+
end
|
268
|
+
end
|
260
269
|
return desc
|
261
270
|
end
|
262
271
|
desc
|
data/lib/trackrepos/version.rb
CHANGED
data/trackrepos.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'trackrepos/version'
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |gem|
|
8
8
|
gem.authors = ["Stephen Bannasch"]
|
9
|
-
gem.email = ["stephen@
|
9
|
+
gem.email = ["stephen.bannasch@gmail.com"]
|
10
10
|
gem.description = %q{Uses yaml configuration files to track and update collections of external git repositories}
|
11
11
|
gem.summary = %q{Useful for tracking large numbers of external git repositories}
|
12
12
|
gem.homepage = "https://github.com/concord-consortium/trackrepos"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackrepos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Uses yaml configuration files to track and update collections of external
|
15
15
|
git repositories
|
16
16
|
email:
|
17
|
-
- stephen@
|
17
|
+
- stephen.bannasch@gmail.com
|
18
18
|
executables:
|
19
19
|
- trackrepos
|
20
20
|
extensions: []
|