vclog 1.9.1 → 1.10.0

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.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/{HISTORY.rdoc → History.md} +74 -13
  3. data/License.txt +23 -0
  4. data/{README.rdoc → README.md} +46 -45
  5. data/bin/vclog-news +6 -0
  6. data/lib/vclog/adapters/abstract.rb +3 -8
  7. data/lib/vclog/adapters/git.rb +71 -133
  8. data/lib/vclog/adapters/svn.rb +1 -1
  9. data/lib/vclog/change.rb +8 -8
  10. data/lib/vclog/change_point.rb +0 -1
  11. data/lib/vclog/cli/abstract.rb +2 -2
  12. data/lib/vclog/cli/news.rb +29 -0
  13. data/lib/vclog/config.rb +149 -0
  14. data/lib/vclog/core_ext.rb +14 -101
  15. data/lib/vclog/heuristics.rb +37 -5
  16. data/lib/vclog/history_file.rb +15 -3
  17. data/lib/vclog/metadata.rb +1 -16
  18. data/lib/vclog/repo.rb +27 -55
  19. data/lib/vclog/report.rb +38 -20
  20. data/lib/vclog/tag.rb +19 -6
  21. data/lib/vclog/version.rb +3 -0
  22. data/man/man1/index.txt +1 -0
  23. data/man/man1/vclog-autotag.1.ronn +1 -1
  24. data/man/man1/vclog-bump.1.ronn +1 -1
  25. data/man/man1/vclog-news.1.ronn +25 -0
  26. data/man/man1/vclog-version.1.ronn +1 -1
  27. metadata +109 -108
  28. data/.ruby +0 -61
  29. data/COPYING.rdoc +0 -32
  30. data/features/git.feature +0 -86
  31. data/features/hg.feature +0 -86
  32. data/features/step_definitions/history_steps.rb +0 -29
  33. data/features/step_definitions/repo_steps.rb +0 -72
  34. data/features/support/ae.rb +0 -1
  35. data/features/support/aruba.rb +0 -5
  36. data/features/support/loadpath.rb +0 -2
  37. data/features/support/repo.rb +0 -19
  38. data/features/svn.feature +0 -86
  39. data/lib/vclog.yml +0 -61
  40. data/man/man1/vclog-autotag.1 +0 -29
  41. data/man/man1/vclog-autotag.1.html +0 -117
  42. data/man/man1/vclog-bump.1 +0 -23
  43. data/man/man1/vclog-bump.1.html +0 -111
  44. data/man/man1/vclog-version.1 +0 -16
  45. data/man/man1/vclog-version.1.html +0 -100
  46. data/man/man1/vclog.1 +0 -51
  47. data/man/man1/vclog.1.html +0 -131
  48. data/test/unit/case_metadata.rb +0 -11
  49. data/test/unit/helper.rb +0 -4
metadata CHANGED
@@ -1,177 +1,190 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vclog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
5
- prerelease:
4
+ version: 1.10.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Trans
9
- autorequire:
10
8
  bindir: bin
11
9
  cert_chain: []
12
- date: 2011-12-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
13
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ansi
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.5'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '1.5'
14
26
  - !ruby/object:Gem::Dependency
15
27
  name: facets
16
- requirement: &32227220 !ruby/object:Gem::Requirement
17
- none: false
28
+ requirement: !ruby/object:Gem::Requirement
18
29
  requirements:
19
- - - ! '>='
30
+ - - ">="
20
31
  - !ruby/object:Gem::Version
21
32
  version: '2.4'
22
33
  type: :runtime
23
34
  prerelease: false
24
- version_requirements: *32227220
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '2.4'
25
40
  - !ruby/object:Gem::Dependency
26
- name: ansi
27
- requirement: &32226640 !ruby/object:Gem::Requirement
28
- none: false
41
+ name: json
42
+ requirement: !ruby/object:Gem::Requirement
29
43
  requirements:
30
- - - ! '>='
44
+ - - ">="
31
45
  - !ruby/object:Gem::Version
32
- version: '1.2'
46
+ version: '0'
33
47
  type: :runtime
34
48
  prerelease: false
35
- version_requirements: *32226640
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
36
54
  - !ruby/object:Gem::Dependency
37
- name: confection
38
- requirement: &32226180 !ruby/object:Gem::Requirement
39
- none: false
55
+ name: ostruct
56
+ requirement: !ruby/object:Gem::Requirement
40
57
  requirements:
41
- - - ! '>='
58
+ - - ">="
42
59
  - !ruby/object:Gem::Version
43
60
  version: '0'
44
61
  type: :runtime
45
62
  prerelease: false
46
- version_requirements: *32226180
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
47
68
  - !ruby/object:Gem::Dependency
48
69
  name: rdoc
49
- requirement: &32225640 !ruby/object:Gem::Requirement
50
- none: false
70
+ requirement: !ruby/object:Gem::Requirement
51
71
  requirements:
52
- - - ! '>='
72
+ - - ">="
53
73
  - !ruby/object:Gem::Version
54
74
  version: '0'
55
75
  type: :runtime
56
76
  prerelease: false
57
- version_requirements: *32225640
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
58
82
  - !ruby/object:Gem::Dependency
59
83
  name: xml-simple
60
- requirement: &32241520 !ruby/object:Gem::Requirement
61
- none: false
84
+ requirement: !ruby/object:Gem::Requirement
62
85
  requirements:
63
- - - ! '>='
86
+ - - ">="
64
87
  - !ruby/object:Gem::Version
65
88
  version: '0'
66
89
  type: :runtime
67
90
  prerelease: false
68
- version_requirements: *32241520
69
- - !ruby/object:Gem::Dependency
70
- name: detroit
71
- requirement: &32241020 !ruby/object:Gem::Requirement
72
- none: false
91
+ version_requirements: !ruby/object:Gem::Requirement
73
92
  requirements:
74
- - - ! '>='
93
+ - - ">="
75
94
  - !ruby/object:Gem::Version
76
95
  version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *32241020
80
96
  - !ruby/object:Gem::Dependency
81
- name: citron
82
- requirement: &32240520 !ruby/object:Gem::Requirement
83
- none: false
97
+ name: rake
98
+ requirement: !ruby/object:Gem::Requirement
84
99
  requirements:
85
- - - ! '>='
100
+ - - ">="
86
101
  - !ruby/object:Gem::Version
87
- version: '0'
102
+ version: '13'
88
103
  type: :development
89
104
  prerelease: false
90
- version_requirements: *32240520
91
- - !ruby/object:Gem::Dependency
92
- name: ae
93
- requirement: &32240020 !ruby/object:Gem::Requirement
94
- none: false
105
+ version_requirements: !ruby/object:Gem::Requirement
95
106
  requirements:
96
- - - ! '>='
107
+ - - ">="
97
108
  - !ruby/object:Gem::Version
98
- version: '0'
99
- type: :development
100
- prerelease: false
101
- version_requirements: *32240020
109
+ version: '13'
102
110
  - !ruby/object:Gem::Dependency
103
- name: cucumber
104
- requirement: &32239520 !ruby/object:Gem::Requirement
105
- none: false
111
+ name: spectrum
112
+ requirement: !ruby/object:Gem::Requirement
106
113
  requirements:
107
- - - ! '>='
114
+ - - ">="
108
115
  - !ruby/object:Gem::Version
109
- version: '0'
116
+ version: '0.2'
110
117
  type: :development
111
118
  prerelease: false
112
- version_requirements: *32239520
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0.2'
113
124
  - !ruby/object:Gem::Dependency
114
- name: aruba
115
- requirement: &32239020 !ruby/object:Gem::Requirement
116
- none: false
125
+ name: assay
126
+ requirement: !ruby/object:Gem::Requirement
117
127
  requirements:
118
- - - ! '>='
128
+ - - ">="
119
129
  - !ruby/object:Gem::Version
120
- version: '0'
130
+ version: '0.5'
121
131
  type: :development
122
132
  prerelease: false
123
- version_requirements: *32239020
124
- description: VCLog is a cross-VCS/SCM ChangeLog generator.
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0.5'
138
+ description: VCLog is a versatile cross-VCS/SCM changelog and release history generator.
139
+ It supports Git, Mercurial and Subversion, and a variety of output formats.
125
140
  email:
126
141
  - transfire@gmail.com
127
142
  executables:
128
- - vclog-bump
129
143
  - vclog
130
- - vclog-version
131
144
  - vclog-autotag
145
+ - vclog-bump
132
146
  - vclog-formats
147
+ - vclog-news
148
+ - vclog-version
133
149
  extensions: []
134
150
  extra_rdoc_files:
135
- - HISTORY.rdoc
136
- - README.rdoc
137
- - COPYING.rdoc
151
+ - History.md
152
+ - License.txt
153
+ - README.md
138
154
  files:
139
- - .ruby
140
- - .yardopts
155
+ - ".yardopts"
156
+ - History.md
157
+ - License.txt
158
+ - README.md
141
159
  - bin/vclog
142
160
  - bin/vclog-autotag
143
161
  - bin/vclog-bump
144
162
  - bin/vclog-formats
163
+ - bin/vclog-news
145
164
  - bin/vclog-version
146
- - features/git.feature
147
- - features/hg.feature
148
- - features/step_definitions/history_steps.rb
149
- - features/step_definitions/repo_steps.rb
150
- - features/support/ae.rb
151
- - features/support/aruba.rb
152
- - features/support/loadpath.rb
153
- - features/support/repo.rb
154
- - features/svn.feature
165
+ - lib/vclog.rb
166
+ - lib/vclog/adapters.rb
155
167
  - lib/vclog/adapters/abstract.rb
156
168
  - lib/vclog/adapters/darcs.rb
157
169
  - lib/vclog/adapters/git.rb
158
170
  - lib/vclog/adapters/hg.rb
159
171
  - lib/vclog/adapters/svn.rb
160
- - lib/vclog/adapters.rb
161
172
  - lib/vclog/change.rb
162
173
  - lib/vclog/change_point.rb
163
174
  - lib/vclog/changelog.rb
175
+ - lib/vclog/cli.rb
164
176
  - lib/vclog/cli/abstract.rb
165
177
  - lib/vclog/cli/autotag.rb
166
178
  - lib/vclog/cli/bump.rb
167
179
  - lib/vclog/cli/formats.rb
168
180
  - lib/vclog/cli/log.rb
181
+ - lib/vclog/cli/news.rb
169
182
  - lib/vclog/cli/version.rb
170
- - lib/vclog/cli.rb
183
+ - lib/vclog/config.rb
171
184
  - lib/vclog/core_ext.rb
185
+ - lib/vclog/heuristics.rb
172
186
  - lib/vclog/heuristics/rule.rb
173
187
  - lib/vclog/heuristics/type.rb
174
- - lib/vclog/heuristics.rb
175
188
  - lib/vclog/history_file.rb
176
189
  - lib/vclog/metadata.rb
177
190
  - lib/vclog/release.rb
@@ -199,49 +212,37 @@ files:
199
212
  - lib/vclog/templates/history.rss.erb
200
213
  - lib/vclog/templates/history.xml.erb
201
214
  - lib/vclog/templates/history.yaml.rb
202
- - lib/vclog.rb
203
- - lib/vclog.yml
215
+ - lib/vclog/version.rb
204
216
  - man/man1/index.txt
205
- - man/man1/vclog-autotag.1
206
- - man/man1/vclog-autotag.1.html
207
217
  - man/man1/vclog-autotag.1.ronn
208
- - man/man1/vclog-bump.1
209
- - man/man1/vclog-bump.1.html
210
218
  - man/man1/vclog-bump.1.ronn
211
- - man/man1/vclog-version.1
212
- - man/man1/vclog-version.1.html
219
+ - man/man1/vclog-news.1.ronn
213
220
  - man/man1/vclog-version.1.ronn
214
- - man/man1/vclog.1
215
- - man/man1/vclog.1.html
216
221
  - man/man1/vclog.1.ronn
217
- - test/unit/case_metadata.rb
218
- - test/unit/helper.rb
219
- - HISTORY.rdoc
220
- - README.rdoc
221
- - COPYING.rdoc
222
- homepage: http://rubyworks.github.com/vclog
222
+ homepage: https://github.com/rubyworks/vclog
223
223
  licenses:
224
224
  - BSD-2-Clause
225
- post_install_message:
225
+ metadata:
226
+ homepage_uri: https://github.com/rubyworks/vclog
227
+ source_code_uri: https://github.com/rubyworks/vclog
228
+ bug_tracker_uri: https://github.com/rubyworks/vclog/issues
229
+ changelog_uri: https://github.com/rubyworks/vclog/blob/master/History.md
230
+ documentation_uri: https://rubydoc.info/gems/vclog
226
231
  rdoc_options: []
227
232
  require_paths:
228
233
  - lib
229
234
  required_ruby_version: !ruby/object:Gem::Requirement
230
- none: false
231
235
  requirements:
232
- - - ! '>='
236
+ - - ">="
233
237
  - !ruby/object:Gem::Version
234
- version: '0'
238
+ version: '2.7'
235
239
  required_rubygems_version: !ruby/object:Gem::Requirement
236
- none: false
237
240
  requirements:
238
- - - ! '>='
241
+ - - ">="
239
242
  - !ruby/object:Gem::Version
240
243
  version: '0'
241
244
  requirements: []
242
- rubyforge_project:
243
- rubygems_version: 1.8.10
244
- signing_key:
245
- specification_version: 3
245
+ rubygems_version: 3.6.9
246
+ specification_version: 4
246
247
  summary: Cross-VCS/SCM ChangeLog Generator
247
248
  test_files: []
data/.ruby DELETED
@@ -1,61 +0,0 @@
1
- ---
2
- source:
3
- - var
4
- authors:
5
- - name: Trans
6
- email: transfire@gmail.com
7
- copyrights:
8
- - holder: Rubyworks
9
- year: '2009'
10
- license: BSD-2-Clause
11
- replacements: []
12
- alternatives: []
13
- requirements:
14
- - name: facets
15
- version: 2.4+
16
- - name: ansi
17
- version: 1.2+
18
- - name: confection
19
- - name: rdoc
20
- - name: xml-simple
21
- - name: detroit
22
- groups:
23
- - build
24
- development: true
25
- - name: citron
26
- groups:
27
- - test
28
- development: true
29
- - name: ae
30
- groups:
31
- - test
32
- development: true
33
- - name: cucumber
34
- groups:
35
- - test
36
- development: true
37
- - name: aruba
38
- groups:
39
- - test
40
- development: true
41
- dependencies: []
42
- conflicts: []
43
- repositories:
44
- - uri: git://github.com/rubyworks/vclog.git
45
- scm: git
46
- name: upstream
47
- resources:
48
- home: http://rubyworks.github.com/vclog
49
- code: http://github.com/rubyworks/vclog
50
- extra: {}
51
- load_path:
52
- - lib
53
- revision: 0
54
- created: '2006-05-09'
55
- summary: Cross-VCS/SCM ChangeLog Generator
56
- title: VCLog
57
- version: 1.9.1
58
- name: vclog
59
- description: VCLog is a cross-VCS/SCM ChangeLog generator.
60
- organization: Rubyworks
61
- date: '2011-12-13'
data/COPYING.rdoc DELETED
@@ -1,32 +0,0 @@
1
- = COPYRIGHT NOTICES
2
-
3
- == VCLog
4
-
5
- Copyright:: (c) 2008 Rubyworks
6
- License:: BSD-2-Clause
7
- Website:: http://rubyworks.github.com/vclog
8
-
9
- Copyright 2008 Rubyworks. All rights reserved.
10
-
11
- Redistribution and use in source and binary forms, with or without
12
- modification, are permitted provided that the following conditions are met:
13
-
14
- 1. Redistributions of source code must retain the above copyright notice,
15
- this list of conditions and the following disclaimer.
16
-
17
- 2. Redistributions in binary form must reproduce the above copyright
18
- notice, this list of conditions and the following disclaimer in the
19
- documentation and/or other materials provided with the distribution.
20
-
21
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
22
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
23
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24
- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
-
32
-
data/features/git.feature DELETED
@@ -1,86 +0,0 @@
1
- Feature: Git Support
2
- As a Git user
3
- I want to generate a nicely formatted Changelog
4
- And I want to generate a nicely formatted Release History
5
-
6
- Scenario: Git Changelog
7
- Given a suitable Git repository
8
- When I run `vclog`
9
- Then the exit status should be 0
10
-
11
- Scenario: Git Changelog in RDoc
12
- Given a suitable Git repository
13
- When I run `vclog -f rdoc`
14
- Then the exit status should be 0
15
-
16
- Scenario: Git Changelog in Markdown
17
- Given a suitable Git repository
18
- When I run `vclog -f markdown`
19
- Then the exit status should be 0
20
-
21
- Scenario: Git Changelog in HTML
22
- Given a suitable Git repository
23
- When I run `vclog -f html`
24
- Then the exit status should be 0
25
-
26
- Scenario: Git Changelog in XML
27
- Given a suitable Git repository
28
- When I run `vclog -f xml`
29
- Then the exit status should be 0
30
-
31
- Scenario: Git Changelog in Atom
32
- Given a suitable Git repository
33
- When I run `vclog -f atom`
34
- Then the exit status should be 0
35
-
36
- Scenario: Git Changelog in YAML
37
- Given a suitable Git repository
38
- When I run `vclog -f yaml`
39
- Then the exit status should be 0
40
-
41
- Scenario: Git Changelog in JSON
42
- Given a suitable Git repository
43
- When I run `vclog -f json`
44
- Then the exit status should be 0
45
-
46
-
47
- Scenario: Git Release History
48
- Given a suitable Git repository
49
- When I run `vclog r`
50
- Then the exit status should be 0
51
-
52
- Scenario: Git Release History in RDoc
53
- Given a suitable Git repository
54
- When I run `vclog r -f rdoc`
55
- Then the exit status should be 0
56
-
57
- Scenario: Git Release History in Markdown
58
- Given a suitable Git repository
59
- When I run `vclog rel -f markdown`
60
- Then the exit status should be 0
61
-
62
- Scenario: Git Release History in HTML
63
- Given a suitable Git repository
64
- When I run `vclog rel -f html`
65
- Then the exit status should be 0
66
-
67
- Scenario: Git Release History in XML
68
- Given a suitable Git repository
69
- When I run `vclog rel -f xml`
70
- Then the exit status should be 0
71
-
72
- Scenario: Git Release History in Atom
73
- Given a suitable Git repository
74
- When I run `vclog rel -f atom`
75
- Then the exit status should be 0
76
-
77
- Scenario: Git Release History in YAML
78
- Given a suitable Git repository
79
- When I run `vclog rel -f yaml`
80
- Then the exit status should be 0
81
-
82
- Scenario: Git Release History in JSON
83
- Given a suitable Git repository
84
- When I run `vclog rel -f json`
85
- Then the exit status should be 0
86
-
data/features/hg.feature DELETED
@@ -1,86 +0,0 @@
1
- Feature: Mercurial Support
2
- As a Mercurial user
3
- I want to generate a nicely formatted Changelog
4
- And I want to generate a nicely formatted Release History
5
-
6
- Scenario: Mercurial Changelog
7
- Given a suitable Mercurial repository
8
- When I run `vclog`
9
- Then the exit status should be 0
10
-
11
- Scenario: Mercurial Changelog in RDoc
12
- Given a suitable Mercurial repository
13
- When I run `vclog -f rdoc`
14
- Then the exit status should be 0
15
-
16
- Scenario: Mercurial Changelog in Markdown
17
- Given a suitable Mercurial repository
18
- When I run `vclog -f markdown`
19
- Then the exit status should be 0
20
-
21
- Scenario: Mercurial Changelog in HTML
22
- Given a suitable Mercurial repository
23
- When I run `vclog -f html`
24
- Then the exit status should be 0
25
-
26
- Scenario: Mercurial Changelog in XML
27
- Given a suitable Mercurial repository
28
- When I run `vclog -f xml`
29
- Then the exit status should be 0
30
-
31
- Scenario: Mercurial Changelog in Atom
32
- Given a suitable Mercurial repository
33
- When I run `vclog -f atom`
34
- Then the exit status should be 0
35
-
36
- Scenario: Mercurial Changelog in YAML
37
- Given a suitable Mercurial repository
38
- When I run `vclog -f yaml`
39
- Then the exit status should be 0
40
-
41
- Scenario: Mercurial Changelog in JSON
42
- Given a suitable Mercurial repository
43
- When I run `vclog -f json`
44
- Then the exit status should be 0
45
-
46
-
47
- Scenario: Mercurial Release History
48
- Given a suitable Mercurial repository
49
- When I run `vclog rel`
50
- Then the exit status should be 0
51
-
52
- Scenario: Mercurial Release History in RDoc
53
- Given a suitable Mercurial repository
54
- When I run `vclog rel -f rdoc`
55
- Then the exit status should be 0
56
-
57
- Scenario: Mercurial Release History in Markdown
58
- Given a suitable Mercurial repository
59
- When I run `vclog rel -f markdown`
60
- Then the exit status should be 0
61
-
62
- Scenario: Mercurial Release History in HTML
63
- Given a suitable Mercurial repository
64
- When I run `vclog rel -f html`
65
- Then the exit status should be 0
66
-
67
- Scenario: Mercurial Release History in XML
68
- Given a suitable Mercurial repository
69
- When I run `vclog rel -f xml`
70
- Then the exit status should be 0
71
-
72
- Scenario: Mercurial Release History in Atom
73
- Given a suitable Mercurial repository
74
- When I run `vclog rel -f atom`
75
- Then the exit status should be 0
76
-
77
- Scenario: Mercurial Release History in YAML
78
- Given a suitable Mercurial repository
79
- When I run `vclog rel -f yaml`
80
- Then the exit status should be 0
81
-
82
- Scenario: Mercurial Release History in JSON
83
- Given a suitable Mercurial repository
84
- When I run `vclog rel -f json`
85
- Then the exit status should be 0
86
-
@@ -1,29 +0,0 @@
1
- Given /^a SVN repository/ do
2
- @directory = File.dirname(__FILE__) + '/../../test/fixtures/tzinfo'
3
- @tag_numbers = Dir["@directory/tags/*"].map{ |d| File.basename(d) }
4
- end
5
-
6
- # For git we will have to use the VCLog project itself, I guess.
7
- Given /^a Git repository/ do
8
- @directory = File.dirname(__FILE__) + '/../..' #/fixtures/git-repo'
9
- tags1 = `cd #{@directory}; git tag -l "[0-9]*"`
10
- tags2 = `cd #{@directory}; git tag -l "v[0-9]*"`
11
- @tag_numbers = tags1.split("\n") + tags2.split("\n")
12
- end
13
-
14
- When /I generate a History/ do
15
- @system = VCLog::VCS.factory(@directory)
16
- @history = VCLog::History.new(@system)
17
- end
18
-
19
- Then /it should include all tags/ do
20
- tags = @history.tags.map{ |t| t.name }
21
- tags.sort.assert == @tag_numbers.sort
22
- end
23
-
24
- And /^the list of releases should be in order from newest to oldest/ do
25
- rels_names = @history.releases.map{ |r| r.tag.name }
26
- rels_names.shift # remove imaginary current tag
27
- rels_names.assert == @tag_numbers.sort.reverse
28
- end
29
-