trackrepos 1.0.0 → 1.0.1
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/README.md +65 -6
- data/lib/trackrepos/version.rb +1 -1
- data/trackrepos.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -10,19 +10,21 @@ Install the Ruby Gem `track-repos`:
|
|
10
10
|
|
11
11
|
## Setup
|
12
12
|
|
13
|
-
Create a `.tracked-repos.yaml` file to update and keep track of either existing git
|
13
|
+
Create a `.tracked-repos.yaml` file to update and keep track of either existing git repositories or new ones you intend to add.
|
14
14
|
|
15
|
-
There are currently three types of git
|
15
|
+
There are currently three types of git repositories that can be tracked and updated:
|
16
16
|
|
17
17
|
1. Regular git repositories.
|
18
18
|
2. Git clones of Subversion repositories
|
19
|
-
3. Git clones of git mirrors of subversion repositories (need to
|
19
|
+
3. Git clones of git mirrors of subversion repositories (need to explicitly request new tags).
|
20
20
|
|
21
21
|
Here's an example yaml configuration file that tracks the Ruby Gems `aasm`, and `builder`.
|
22
|
-
Normally the master branch is fetched
|
23
|
-
the `trunk` branch should be checked out and tracked.In addition the `arduino` project which
|
22
|
+
Normally the master branch is fetched however the specifiction for thr `builder` gem indicates that
|
23
|
+
the `trunk` branch should be checked out and tracked. In addition the `arduino` project which
|
24
24
|
is located in a Subersion repository is checked out as a git clone of a subversion repository.
|
25
25
|
|
26
|
+
file: .tracked-repos.yaml
|
27
|
+
|
26
28
|
---
|
27
29
|
:git:
|
28
30
|
- :path: aasm
|
@@ -40,9 +42,66 @@ is located in a Subersion repository is checked out as a git clone of a subversi
|
|
40
42
|
|
41
43
|
The last item in the list specifies that the source code for Ruby should be checked out. In
|
42
44
|
this case it is being cloned from a git repository on github which is a miirror of the main
|
43
|
-
Ruby Subversion repository. This
|
45
|
+
Ruby Subversion repository. This type if differentiated from a normal git repository because an
|
44
46
|
additional action is taken to manually fetch any updated tags.
|
45
47
|
|
48
|
+
### tracked-repos.yaml examples
|
49
|
+
|
50
|
+
1. [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
|
+
|
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
|
+
|
55
|
+
Here's a truncated version of the console output when running trackrepos in the directory that contains
|
56
|
+
the jacvascript yaml tracking file linked above.
|
57
|
+
|
58
|
+
=======================================================================================
|
59
|
+
|
60
|
+
Tracking git repositories in directory: /Users/stephen/dev/javascript
|
61
|
+
|
62
|
+
Updating local git clones of external git repositories
|
63
|
+
commands: git pull
|
64
|
+
|
65
|
+
accordion-git 3 years, 4 months ago
|
66
|
+
accordion-js-git 3 years, 5 months ago
|
67
|
+
ajax_org/ace-git 25 hours ago
|
68
|
+
ajax_org/gherkin-editor-git 11 months ago
|
69
|
+
...
|
70
|
+
|
71
|
+
-----------------------------------------------------------------------------------
|
72
|
+
|
73
|
+
Updating local git clones of external subversion repositories
|
74
|
+
commands: git svn rebase
|
75
|
+
|
76
|
+
asciimathml-svn-git 4 years, 8 months ago
|
77
|
+
canvas/canvas-text-svn-git 1 year, 10 months ago
|
78
|
+
canvas/excanvas-svn-git 3 years, 5 months ago
|
79
|
+
canvas/canvg-svn-git 2 weeks ago
|
80
|
+
closure-compiler-svn-git 3 days ago
|
81
|
+
...
|
82
|
+
|
83
|
+
Which ends with a summary like this:
|
84
|
+
|
85
|
+
=======================================================================================
|
86
|
+
|
87
|
+
Git repositories in directory: /Users/stephen/dev/javascript
|
88
|
+
updated in the last week:
|
89
|
+
|
90
|
+
mvc/ember/ember-git 2 hours ago
|
91
|
+
node/modules/express-git 4 hours ago
|
92
|
+
node/npm-git 4 hours ago
|
93
|
+
underscore-git 5 hours ago
|
94
|
+
mvc/angular/angular.js-git 7 hours ago
|
95
|
+
maqetta-git 8 hours ago
|
96
|
+
jquery-ui-git 23 hours ago
|
97
|
+
ajax_org/ace-git 25 hours ago
|
98
|
+
testing/phantomjs-git 26 hours ago
|
99
|
+
node/node-git 29 hours ago
|
100
|
+
editors/codemirror2-git 2 days ago
|
101
|
+
webgl/webgl-svn-git 2 days ago
|
102
|
+
Modernizr-git 2 days ago
|
103
|
+
...
|
104
|
+
|
46
105
|
The `.tracked-repos.yaml` file is a YAML serialization of the kind of data expressed in this Ruby Hash.
|
47
106
|
Each type of external repositor consists of an array of repository specificationns with keys for
|
48
107
|
`:path` and `:remote` git url, as well as an optional key for the `:branch` that should be tracked
|
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 = ["
|
9
|
+
gem.email = ["stephen@deanbrook.org"]
|
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.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ dependencies: []
|
|
14
14
|
description: Uses yaml configuration files to track and update collections of external
|
15
15
|
git repositories
|
16
16
|
email:
|
17
|
-
-
|
17
|
+
- stephen@deanbrook.org
|
18
18
|
executables:
|
19
19
|
- trackrepos
|
20
20
|
extensions: []
|