vclog 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/HISTORY.rdoc +12 -2
  2. data/LICENSE +197 -17
  3. data/README.rdoc +11 -9
  4. data/bin/vclog +1 -1
  5. data/lib/plugins/syckle/vclog.rb +12 -12
  6. data/lib/vclog/adapters/abstract.rb +45 -16
  7. data/lib/vclog/adapters/darcs.rb +6 -1
  8. data/lib/vclog/adapters/git.rb +42 -2
  9. data/lib/vclog/adapters/hg.rb +15 -1
  10. data/lib/vclog/adapters/svn.rb +14 -0
  11. data/lib/vclog/adapters.rb +0 -17
  12. data/lib/vclog/change.rb +4 -0
  13. data/lib/vclog/cli/abstract.rb +22 -13
  14. data/lib/vclog/cli/autotag.rb +37 -0
  15. data/lib/vclog/cli/bump.rb +1 -1
  16. data/lib/vclog/cli/changelog.rb +2 -2
  17. data/lib/vclog/cli/{list.rb → formats.rb} +3 -3
  18. data/lib/vclog/cli/help.rb +15 -10
  19. data/lib/vclog/cli/history.rb +3 -4
  20. data/lib/vclog/cli/version.rb +1 -1
  21. data/lib/vclog/cli.rb +24 -188
  22. data/lib/vclog/facets.rb +2 -0
  23. data/lib/vclog/history.rb +1 -1
  24. data/lib/vclog/history_file.rb +64 -0
  25. data/lib/vclog/meta/data.rb +25 -0
  26. data/lib/vclog/meta/package +11 -0
  27. data/{PROFILE → lib/vclog/meta/profile} +6 -5
  28. data/lib/vclog/repo.rb +150 -0
  29. data/lib/vclog/tag.rb +2 -2
  30. data/lib/vclog/templates/changelog.html.erb +23 -18
  31. data/lib/vclog/templates/history.html.erb +4 -3
  32. data/lib/vclog.rb +3 -3
  33. data/man/man1/vclog-autotag.1 +23 -0
  34. data/man/man1/vclog-bump.1 +23 -0
  35. data/man/man1/vclog-changelog.1 +47 -0
  36. data/man/man1/vclog-history.1 +44 -0
  37. data/man/man1/vclog-version.1 +16 -0
  38. data/man/man1/vclog.1 +39 -0
  39. data/meta/data.rb +25 -0
  40. data/meta/package +11 -0
  41. data/meta/profile +18 -0
  42. data/ronn/index.txt +8 -0
  43. data/ronn/vclog-autotag.ronn +20 -0
  44. data/ronn/vclog-bump.ronn +21 -0
  45. data/ronn/vclog-changelog.ronn +39 -0
  46. data/ronn/vclog-history.ronn +38 -0
  47. data/ronn/vclog-version.ronn +14 -0
  48. data/ronn/vclog.ronn +36 -0
  49. metadata +39 -21
  50. data/REQUIRE +0 -11
  51. data/VERSION +0 -5
  52. 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: 11
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 7
8
+ - 8
9
9
  - 0
10
- version: 1.7.0
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-06-27 00:00:00 -04:00
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
- - features/git.feature
153
- - features/hg.feature
154
- - features/step_definitions/history_steps.rb
155
- - features/step_definitions/repo_steps.rb
156
- - features/support/ae.rb
157
- - features/support/aruba.rb
158
- - features/support/loadpath.rb
159
- - features/support/repo.rb
160
- - features/svn.feature
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://proutils.github.com/vclog
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
@@ -1,11 +0,0 @@
1
- runtime:
2
- - facets 2.4+
3
- - ansi 1.2+
4
-
5
- development:
6
- - syckle
7
-
8
- development/test:
9
- - cucumber
10
- - aruba
11
-
data/VERSION DELETED
@@ -1,5 +0,0 @@
1
- name : vclog
2
- major: 1
3
- minor: 7
4
- patch: 0
5
- date : 2010-06-27
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