vclog 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.rdoc +12 -2
- data/LICENSE +197 -17
- data/README.rdoc +11 -9
- data/bin/vclog +1 -1
- data/lib/plugins/syckle/vclog.rb +12 -12
- data/lib/vclog/adapters/abstract.rb +45 -16
- data/lib/vclog/adapters/darcs.rb +6 -1
- data/lib/vclog/adapters/git.rb +42 -2
- data/lib/vclog/adapters/hg.rb +15 -1
- data/lib/vclog/adapters/svn.rb +14 -0
- data/lib/vclog/adapters.rb +0 -17
- data/lib/vclog/change.rb +4 -0
- data/lib/vclog/cli/abstract.rb +22 -13
- data/lib/vclog/cli/autotag.rb +37 -0
- data/lib/vclog/cli/bump.rb +1 -1
- data/lib/vclog/cli/changelog.rb +2 -2
- data/lib/vclog/cli/{list.rb → formats.rb} +3 -3
- data/lib/vclog/cli/help.rb +15 -10
- data/lib/vclog/cli/history.rb +3 -4
- data/lib/vclog/cli/version.rb +1 -1
- data/lib/vclog/cli.rb +24 -188
- data/lib/vclog/facets.rb +2 -0
- data/lib/vclog/history.rb +1 -1
- data/lib/vclog/history_file.rb +64 -0
- data/lib/vclog/meta/data.rb +25 -0
- data/lib/vclog/meta/package +11 -0
- data/{PROFILE → lib/vclog/meta/profile} +6 -5
- data/lib/vclog/repo.rb +150 -0
- data/lib/vclog/tag.rb +2 -2
- data/lib/vclog/templates/changelog.html.erb +23 -18
- data/lib/vclog/templates/history.html.erb +4 -3
- data/lib/vclog.rb +3 -3
- data/man/man1/vclog-autotag.1 +23 -0
- data/man/man1/vclog-bump.1 +23 -0
- data/man/man1/vclog-changelog.1 +47 -0
- data/man/man1/vclog-history.1 +44 -0
- data/man/man1/vclog-version.1 +16 -0
- data/man/man1/vclog.1 +39 -0
- data/meta/data.rb +25 -0
- data/meta/package +11 -0
- data/meta/profile +18 -0
- data/ronn/index.txt +8 -0
- data/ronn/vclog-autotag.ronn +20 -0
- data/ronn/vclog-bump.ronn +21 -0
- data/ronn/vclog-changelog.ronn +39 -0
- data/ronn/vclog-history.ronn +38 -0
- data/ronn/vclog-version.ronn +14 -0
- data/ronn/vclog.ronn +36 -0
- metadata +39 -21
- data/REQUIRE +0 -11
- data/VERSION +0 -5
- data/lib/vclog/config.rb +0 -65
data/ronn/vclog.ronn
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
vclog(1) - version control logging utility
|
2
|
+
==========================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`vclog [command]`
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
VCLog is a versitle cross-VCS/SCM changelog generator.
|
11
|
+
It currently supports Git, Hg and (limited) Subversion.
|
12
|
+
|
13
|
+
## COMMANDS
|
14
|
+
|
15
|
+
VCLog provides a number of useful functions:
|
16
|
+
|
17
|
+
* `changelog`
|
18
|
+
Produce a Change Log.
|
19
|
+
|
20
|
+
* `history`
|
21
|
+
Produce a Release History.
|
22
|
+
|
23
|
+
* `version`
|
24
|
+
Show current tag version.
|
25
|
+
|
26
|
+
* `bump`
|
27
|
+
Suggest next tag version.
|
28
|
+
|
29
|
+
* `autotag`
|
30
|
+
Ensure a tag exists for each History entry.
|
31
|
+
|
32
|
+
Both `changelog` and `history` can be produced in a variety of formats.
|
33
|
+
|
34
|
+
## SEE ALSO
|
35
|
+
|
36
|
+
vclog-changelog(1), vclog-history(1), vclog-version(1), vclog-bump(1), vclog-autotag(1)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vclog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 8
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Sawyer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-20 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -100,6 +100,15 @@ extra_rdoc_files:
|
|
100
100
|
- README.rdoc
|
101
101
|
files:
|
102
102
|
- bin/vclog
|
103
|
+
- features/git.feature
|
104
|
+
- features/hg.feature
|
105
|
+
- features/step_definitions/history_steps.rb
|
106
|
+
- features/step_definitions/repo_steps.rb
|
107
|
+
- features/support/ae.rb
|
108
|
+
- features/support/aruba.rb
|
109
|
+
- features/support/loadpath.rb
|
110
|
+
- features/support/repo.rb
|
111
|
+
- features/svn.feature
|
103
112
|
- lib/plugins/syckle/vclog.rb
|
104
113
|
- lib/vclog/adapters/abstract.rb
|
105
114
|
- lib/vclog/adapters/darcs.rb
|
@@ -110,22 +119,27 @@ files:
|
|
110
119
|
- lib/vclog/change.rb
|
111
120
|
- lib/vclog/changelog.rb
|
112
121
|
- lib/vclog/cli/abstract.rb
|
122
|
+
- lib/vclog/cli/autotag.rb
|
113
123
|
- lib/vclog/cli/bump.rb
|
114
124
|
- lib/vclog/cli/changelog.rb
|
125
|
+
- lib/vclog/cli/formats.rb
|
115
126
|
- lib/vclog/cli/help.rb
|
116
127
|
- lib/vclog/cli/history.rb
|
117
|
-
- lib/vclog/cli/list.rb
|
118
128
|
- lib/vclog/cli/version.rb
|
119
129
|
- lib/vclog/cli.rb
|
120
|
-
- lib/vclog/config.rb
|
121
130
|
- lib/vclog/facets.rb
|
122
131
|
- lib/vclog/formatter.rb
|
123
132
|
- lib/vclog/heuristics/default.rb
|
124
133
|
- lib/vclog/heuristics.rb
|
125
134
|
- lib/vclog/history.rb
|
135
|
+
- lib/vclog/history_file.rb
|
126
136
|
- lib/vclog/kernel.rb
|
137
|
+
- lib/vclog/meta/data.rb
|
138
|
+
- lib/vclog/meta/package
|
139
|
+
- lib/vclog/meta/profile
|
127
140
|
- lib/vclog/metadata.rb
|
128
141
|
- lib/vclog/release.rb
|
142
|
+
- lib/vclog/repo.rb
|
129
143
|
- lib/vclog/tag.rb
|
130
144
|
- lib/vclog/templates/changelog.ansi.rb
|
131
145
|
- lib/vclog/templates/changelog.atom.erb
|
@@ -149,25 +163,29 @@ files:
|
|
149
163
|
- lib/vclog/templates/history.xml.erb
|
150
164
|
- lib/vclog/templates/history.yaml.rb
|
151
165
|
- lib/vclog.rb
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
166
|
+
- man/man1/vclog-autotag.1
|
167
|
+
- man/man1/vclog-bump.1
|
168
|
+
- man/man1/vclog-changelog.1
|
169
|
+
- man/man1/vclog-history.1
|
170
|
+
- man/man1/vclog-version.1
|
171
|
+
- man/man1/vclog.1
|
172
|
+
- meta/data.rb
|
173
|
+
- meta/package
|
174
|
+
- meta/profile
|
175
|
+
- ronn/index.txt
|
176
|
+
- ronn/vclog-autotag.ronn
|
177
|
+
- ronn/vclog-bump.ronn
|
178
|
+
- ronn/vclog-changelog.ronn
|
179
|
+
- ronn/vclog-history.ronn
|
180
|
+
- ronn/vclog-version.ronn
|
181
|
+
- ronn/vclog.ronn
|
161
182
|
- HISTORY.rdoc
|
162
|
-
- PROFILE
|
163
183
|
- LICENSE
|
164
184
|
- README.rdoc
|
165
|
-
- REQUIRE
|
166
|
-
- VERSION
|
167
185
|
has_rdoc: true
|
168
|
-
homepage: http://
|
169
|
-
licenses:
|
170
|
-
|
186
|
+
homepage: http://rubyworks.github.com/vclog
|
187
|
+
licenses:
|
188
|
+
- Apache 2.0
|
171
189
|
post_install_message:
|
172
190
|
rdoc_options:
|
173
191
|
- --title
|
data/REQUIRE
DELETED
data/VERSION
DELETED
data/lib/vclog/config.rb
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
require 'vclog/heuristics'
|
2
|
-
|
3
|
-
module VCLog
|
4
|
-
|
5
|
-
#
|
6
|
-
class Config
|
7
|
-
|
8
|
-
# File glob used to find the vclog configuration directory.
|
9
|
-
CONFIG_GLOB = '{.vclog,.config/vclog,config/vclog}/'
|
10
|
-
|
11
|
-
# File glob used to find project root directory.
|
12
|
-
ROOT_GLOB = '{.vclog/,.config/vclog/,config/vclog/,.git/,README*}/'
|
13
|
-
|
14
|
-
#
|
15
|
-
def initialize(root=nil)
|
16
|
-
@root = root || lookup_root || Dir.pwd
|
17
|
-
@dir = Dir[File.join(root, CONFIG_GLOB)]
|
18
|
-
@level = 0
|
19
|
-
end
|
20
|
-
|
21
|
-
# Project's root directory.
|
22
|
-
attr :root
|
23
|
-
|
24
|
-
# Configuration directory.
|
25
|
-
attr :dir
|
26
|
-
|
27
|
-
# Default change level.
|
28
|
-
#
|
29
|
-
# TODO: get from config file.
|
30
|
-
attr_accessor :level
|
31
|
-
|
32
|
-
#
|
33
|
-
def heuristics
|
34
|
-
@heuristics ||= Heuristics.load(heuristics_file)
|
35
|
-
end
|
36
|
-
|
37
|
-
#
|
38
|
-
def heuristics_file
|
39
|
-
@heuristics_file ||= Dir[File.join(dir, 'rules.rb')].first
|
40
|
-
end
|
41
|
-
|
42
|
-
# Find project root. This searches up from the current working
|
43
|
-
# directory for the following paths (in order):
|
44
|
-
#
|
45
|
-
# .vclog/
|
46
|
-
# .config/vclog/
|
47
|
-
# config/vclog/
|
48
|
-
# .git/
|
49
|
-
# README*
|
50
|
-
#
|
51
|
-
def lookup_root
|
52
|
-
root = nil
|
53
|
-
Dir.ascend(Dir.pwd) do |path|
|
54
|
-
check = Dir[ROOT_GLOB].first
|
55
|
-
if check
|
56
|
-
root = path
|
57
|
-
break
|
58
|
-
end
|
59
|
-
end
|
60
|
-
root || Dir.pwd
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
end
|