vclog 1.9.1 → 1.9.2

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.
@@ -0,0 +1,25 @@
1
+ vclog-news(1) - output latest release notice
2
+ ============================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `vclog news`
7
+
8
+ ## DESCRIPTION
9
+
10
+ Display the most recent entry in a project's history file. This command
11
+ does NOT show the latest tag message, rather it is useful for making
12
+ a new tag. For instnace:
13
+
14
+ `vclog news | git tag -a -F - v1.0.0`
15
+
16
+ This command will create a new git tag using the most recent message in
17
+ the history file.
18
+
19
+ ## OPTIONS
20
+
21
+ No options yet.
22
+
23
+ ## SEE ALSO
24
+
25
+ vclog(1)
@@ -63,7 +63,7 @@
63
63
  <a href="#SYNOPSIS">SYNOPSIS</a>
64
64
  <a href="#DESCRIPTION">DESCRIPTION</a>
65
65
  <a href="#SEE-ALSO">SEE ALSO</a>
66
- </div>
66
+ </div>
67
67
 
68
68
  <ol class='man-decor man-head man head'>
69
69
  <li class='tl'>vclog-version(1)</li>
@@ -86,7 +86,7 @@
86
86
 
87
87
  <h2 id="SEE-ALSO">SEE ALSO</h2>
88
88
 
89
- <p><a href="vclog.1.html" class="man-ref">vclog<span class="s">(1)</span></a></p>
89
+ <p><a class="man-ref" href="vclog.1.html">vclog<span class="s">(1)</span></a></p>
90
90
 
91
91
 
92
92
  <ol class='man-decor man-foot man foot'>
@@ -64,7 +64,7 @@
64
64
  <a href="#DESCRIPTION">DESCRIPTION</a>
65
65
  <a href="#OPTIONS">OPTIONS</a>
66
66
  <a href="#SEE-ALSO">SEE ALSO</a>
67
- </div>
67
+ </div>
68
68
 
69
69
  <ol class='man-decor man-head man head'>
70
70
  <li class='tl'>vclog(1)</li>
@@ -117,7 +117,7 @@ Lowest level of commit to display, default is <code>0</code>.</p></li>
117
117
 
118
118
  <h2 id="SEE-ALSO">SEE ALSO</h2>
119
119
 
120
- <p><a href="vclog-version.1.html" class="man-ref">vclog-version<span class="s">(1)</span></a>, <a href="vclog-bump.1.html" class="man-ref">vclog-bump<span class="s">(1)</span></a>, <a href="vclog-autotag.1.html" class="man-ref">vclog-autotag<span class="s">(1)</span></a></p>
120
+ <p><a class="man-ref" href="vclog-version.1.html">vclog-version<span class="s">(1)</span></a>, <a class="man-ref" href="vclog-bump.1.html">vclog-bump<span class="s">(1)</span></a>, <a class="man-ref" href="vclog-autotag.1.html">vclog-autotag<span class="s">(1)</span></a></p>
121
121
 
122
122
 
123
123
  <ol class='man-decor man-foot man foot'>
@@ -0,0 +1,58 @@
1
+ #require_relative 'featurettes/repo_creation'
2
+ #require_relative 'featurettes/shellout'
3
+
4
+ Feature "Git Change Log Support" do
5
+ As "Git users"
6
+ We "want to generate nicely formatted change logs"
7
+
8
+ Scenario "Git Changelog" do
9
+ Given "a suitable Git repository"
10
+ When "I run `vclog`"
11
+ Then "the exit status should be 0"
12
+ end
13
+
14
+ Scenario "Git Changelog in RDoc" do
15
+ Given "a suitable Git repository"
16
+ When "I run `vclog -f rdoc`"
17
+ Then "the exit status should be 0"
18
+ end
19
+
20
+ Scenario "Git Changelog in Markdown" do
21
+ Given "a suitable Git repository"
22
+ When "I run `vclog -f markdown`"
23
+ Then "the exit status should be 0"
24
+ end
25
+
26
+ Scenario "Git Changelog in HTML" do
27
+ Given "a suitable Git repository"
28
+ When "I run `vclog -f html`"
29
+ Then "the exit status should be 0"
30
+ end
31
+
32
+ Scenario "Git Changelog in XML" do
33
+ Given "a suitable Git repository"
34
+ When "I run `vclog -f xml`"
35
+ Then "the exit status should be 0"
36
+ end
37
+
38
+ Scenario "Git Changelog in Atom" do
39
+ Given "a suitable Git repository"
40
+ When "I run `vclog -f atom`"
41
+ Then "the exit status should be 0"
42
+ end
43
+
44
+ Scenario "Git Changelog in YAML" do
45
+ Given "a suitable Git repository"
46
+ When "I run `vclog -f yaml`"
47
+ Then "the exit status should be 0"
48
+ end
49
+
50
+ Scenario "Git Changelog in JSON" do
51
+ Given "a suitable Git repository"
52
+ When "I run `vclog -f json`"
53
+ Then "the exit status should be 0"
54
+ end
55
+
56
+ include RepoCreation
57
+ include Shellout
58
+ end
@@ -0,0 +1,58 @@
1
+ #require_relative 'featurettes/repo_creation'
2
+ #require_relative 'featurettes/shellout'
3
+
4
+ Feature "Git Release History Support" do
5
+ As "Git users"
6
+ We "want to generate nicely formatted release histories"
7
+
8
+ Scenario "Git Release History" do
9
+ Given "a suitable Git repository"
10
+ When "I run `vclog r`"
11
+ Then "the exit status should be 0"
12
+ end
13
+
14
+ Scenario "Git Release History in RDoc" do
15
+ Given "a suitable Git repository"
16
+ When "I run `vclog r -f rdoc`"
17
+ Then "the exit status should be 0"
18
+ end
19
+
20
+ Scenario "Git Release History in Markdown" do
21
+ Given "a suitable Git repository"
22
+ When "I run `vclog rel -f markdown`"
23
+ Then "the exit status should be 0"
24
+ end
25
+
26
+ Scenario "Git Release History in HTML" do
27
+ Given "a suitable Git repository"
28
+ When "I run `vclog rel -f html`"
29
+ Then "the exit status should be 0"
30
+ end
31
+
32
+ Scenario "Git Release History in XML" do
33
+ Given "a suitable Git repository"
34
+ When "I run `vclog rel -f xml`"
35
+ Then "the exit status should be 0"
36
+ end
37
+
38
+ Scenario "Git Release History in Atom" do
39
+ Given "a suitable Git repository"
40
+ When "I run `vclog rel -f atom`"
41
+ Then "the exit status should be 0"
42
+ end
43
+
44
+ Scenario "Git Release History in YAML" do
45
+ Given "a suitable Git repository"
46
+ When "I run `vclog rel -f yaml`"
47
+ Then "the exit status should be 0"
48
+ end
49
+
50
+ Scenario "Git Release History in JSON" do
51
+ Given "a suitable Git repository"
52
+ When "I run `vclog rel -f json`"
53
+ Then "the exit status should be 0"
54
+ end
55
+
56
+ include RepoCreation
57
+ include Shellout
58
+ end
@@ -0,0 +1,58 @@
1
+ #require_relative 'featurettes/repo_creation'
2
+ #require_relative 'featurettes/shellout'
3
+
4
+ Feature "Mercurial Support" do
5
+ As "Mercurial users"
6
+ We "want to generate a nicely formatted Changelog"
7
+
8
+ Scenario "Mercurial Changelog" do
9
+ Given "a suitable Mercurial repository"
10
+ When "I run `vclog`"
11
+ Then "the exit status should be 0"
12
+ end
13
+
14
+ Scenario "Mercurial Changelog in RDoc" do
15
+ Given "a suitable Mercurial repository"
16
+ When "I run `vclog -f rdoc`"
17
+ Then "the exit status should be 0"
18
+ end
19
+
20
+ Scenario "Mercurial Changelog in Markdown" do
21
+ Given "a suitable Mercurial repository"
22
+ When "I run `vclog -f markdown`"
23
+ Then "the exit status should be 0"
24
+ end
25
+
26
+ Scenario "Mercurial Changelog in HTML" do
27
+ Given "a suitable Mercurial repository"
28
+ When "I run `vclog -f html`"
29
+ Then "the exit status should be 0"
30
+ end
31
+
32
+ Scenario "Mercurial Changelog in XML" do
33
+ Given "a suitable Mercurial repository"
34
+ When "I run `vclog -f xml`"
35
+ Then "the exit status should be 0"
36
+ end
37
+
38
+ Scenario "Mercurial Changelog in Atom" do
39
+ Given "a suitable Mercurial repository"
40
+ When "I run `vclog -f atom`"
41
+ Then "the exit status should be 0"
42
+ end
43
+
44
+ Scenario "Mercurial Changelog in YAML" do
45
+ Given "a suitable Mercurial repository"
46
+ When "I run `vclog -f yaml`"
47
+ Then "the exit status should be 0"
48
+ end
49
+
50
+ Scenario "Mercurial Changelog in JSON" do
51
+ Given "a suitable Mercurial repository"
52
+ When "I run `vclog -f json`"
53
+ Then "the exit status should be 0"
54
+ end
55
+
56
+ include RepoCreation
57
+ include Shellout
58
+ end
@@ -0,0 +1,58 @@
1
+ #require_relative 'featurettes/repo_creation'
2
+ #require_relative 'featurettes/shellout'
3
+
4
+ Feature "Mercurial Release History Support" do
5
+ As "Mercurial users"
6
+ We "want to generate nicely formatted Release Histories"
7
+
8
+ Scenario "Mercurial Release History" do
9
+ Given "a suitable Mercurial repository"
10
+ When "I run `vclog rel`"
11
+ Then "the exit status should be 0"
12
+ end
13
+
14
+ Scenario "Mercurial Release History in RDoc" do
15
+ Given "a suitable Mercurial repository"
16
+ When "I run `vclog rel -f rdoc`"
17
+ Then "the exit status should be 0"
18
+ end
19
+
20
+ Scenario "Mercurial Release History in Markdown" do
21
+ Given "a suitable Mercurial repository"
22
+ When "I run `vclog rel -f markdown`"
23
+ Then "the exit status should be 0"
24
+ end
25
+
26
+ Scenario "Mercurial Release History in HTML" do
27
+ Given "a suitable Mercurial repository"
28
+ When "I run `vclog rel -f html`"
29
+ Then "the exit status should be 0"
30
+ end
31
+
32
+ Scenario "Mercurial Release History in XML" do
33
+ Given "a suitable Mercurial repository"
34
+ When "I run `vclog rel -f xml`"
35
+ Then "the exit status should be 0"
36
+ end
37
+
38
+ Scenario "Mercurial Release History in Atom" do
39
+ Given "a suitable Mercurial repository"
40
+ When "I run `vclog rel -f atom`"
41
+ Then "the exit status should be 0"
42
+ end
43
+
44
+ Scenario "Mercurial Release History in YAML" do
45
+ Given "a suitable Mercurial repository"
46
+ When "I run `vclog rel -f yaml`"
47
+ Then "the exit status should be 0"
48
+ end
49
+
50
+ Scenario "Mercurial Release History in JSON" do
51
+ Given "a suitable Mercurial repository"
52
+ When "I run `vclog rel -f json`"
53
+ Then "the exit status should be 0"
54
+ end
55
+
56
+ include RepoCreation
57
+ include Shellout
58
+ end
@@ -0,0 +1,64 @@
1
+ module RepoCreation
2
+ include Lime::Featurette
3
+
4
+ Given 'a suitable Git repository' do
5
+ url = "git://github.com/rubyworks/vclog.git"
6
+ name = "vclog"
7
+ type = "git"
8
+ marker = ".git"
9
+ clone = "git clone #{url} #{name}"
10
+
11
+ setup_repo(name, type, marker, clone)
12
+ end
13
+
14
+ Given 'a suitable Mercurial repository' do
15
+ url = "http://bitbucket.org/birkenfeld/sphinx"
16
+ name = "sphinx"
17
+ type = "hg"
18
+ marker = ".hg"
19
+ clone = "hg clone #{url} #{name}"
20
+
21
+ setup_repo(name, type, marker, clone)
22
+ end
23
+
24
+ Given 'a suitable Subversion repository' do
25
+ url = "svn://rubyforge.org/var/svn/rubygems"
26
+ name = "rubygems"
27
+ type = "svn"
28
+ marker = ".svn"
29
+ clone = "svn checkout #{url} #{name}"
30
+
31
+ setup_repo(name, type, marker, clone)
32
+ end
33
+
34
+ # TODO: test darcs repo
35
+ Given 'a suitable Darcs repository' do
36
+ url =
37
+ name =
38
+ type = "darcs"
39
+ marker = "_darcs"
40
+ clone = ""
41
+ end
42
+
43
+ #
44
+ # Checkout reporsitory if need be and copy to working location.
45
+ #
46
+ def setup_repo(name, type, marker, clone_command)
47
+ dir = File.expand_path("tmp/hold/#{type}")
48
+ dst = File.expand_path("tmp/repo/#{type}")
49
+
50
+ unless File.exist?("#{dir}/#{name}/#{marker}")
51
+ $stderr.puts(" #{clone_command}")
52
+ `mkdir -p #{dir}` unless File.directory?(dir)
53
+ `cd #{dir}; #{clone_command}`
54
+ end
55
+
56
+ unless File.directory?("#{dst}/#{name}")
57
+ `mkdir -p #{dst}`
58
+ `cp -r #{dir}/#{name} #{dst}/#{name}`
59
+ end
60
+
61
+ @working_directory = "#{dst}/#{name}"
62
+ end
63
+
64
+ end
@@ -0,0 +1,16 @@
1
+ require 'open3'
2
+
3
+ module Shellout
4
+ include Lime::Featurette
5
+
6
+ When 'I run `(((.*?)))`' do |cmd|
7
+ Dir.chdir(@working_directory) do
8
+ @stdout, @stderr, @status = Open3.capture3(cmd)
9
+ end
10
+ end
11
+
12
+ Then 'the exit status should be (((\d+)))' do |status|
13
+ @status = status.to_i
14
+ end
15
+
16
+ end
@@ -0,0 +1,10 @@
1
+ require 'vclog/metadata'
2
+
3
+ testcase "VCLog" do
4
+
5
+ test "VERSION is set" do
6
+ ::VCLog::VERSION.assert == File.read('meta/version').strip
7
+ end
8
+
9
+ end
10
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vclog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-13 00:00:00.000000000 Z
12
+ date: 2012-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: facets
16
- requirement: &32227220 !ruby/object:Gem::Requirement
16
+ requirement: &25232320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *32227220
24
+ version_requirements: *25232320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ansi
27
- requirement: &32226640 !ruby/object:Gem::Requirement
27
+ requirement: &25231500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,21 +32,10 @@ dependencies:
32
32
  version: '1.2'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *32226640
36
- - !ruby/object:Gem::Dependency
37
- name: confection
38
- requirement: &32226180 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :runtime
45
- prerelease: false
46
- version_requirements: *32226180
35
+ version_requirements: *25231500
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: rdoc
49
- requirement: &32225640 !ruby/object:Gem::Requirement
38
+ requirement: &25231040 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ! '>='
@@ -54,10 +43,10 @@ dependencies:
54
43
  version: '0'
55
44
  type: :runtime
56
45
  prerelease: false
57
- version_requirements: *32225640
46
+ version_requirements: *25231040
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: xml-simple
60
- requirement: &32241520 !ruby/object:Gem::Requirement
49
+ requirement: &25230480 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ! '>='
@@ -65,10 +54,10 @@ dependencies:
65
54
  version: '0'
66
55
  type: :runtime
67
56
  prerelease: false
68
- version_requirements: *32241520
57
+ version_requirements: *25230480
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: detroit
71
- requirement: &32241020 !ruby/object:Gem::Requirement
60
+ requirement: &25229980 !ruby/object:Gem::Requirement
72
61
  none: false
73
62
  requirements:
74
63
  - - ! '>='
@@ -76,21 +65,10 @@ dependencies:
76
65
  version: '0'
77
66
  type: :development
78
67
  prerelease: false
79
- version_requirements: *32241020
68
+ version_requirements: *25229980
80
69
  - !ruby/object:Gem::Dependency
81
70
  name: citron
82
- requirement: &32240520 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
89
- prerelease: false
90
- version_requirements: *32240520
91
- - !ruby/object:Gem::Dependency
92
- name: ae
93
- requirement: &32240020 !ruby/object:Gem::Requirement
71
+ requirement: &25229480 !ruby/object:Gem::Requirement
94
72
  none: false
95
73
  requirements:
96
74
  - - ! '>='
@@ -98,10 +76,10 @@ dependencies:
98
76
  version: '0'
99
77
  type: :development
100
78
  prerelease: false
101
- version_requirements: *32240020
79
+ version_requirements: *25229480
102
80
  - !ruby/object:Gem::Dependency
103
- name: cucumber
104
- requirement: &32239520 !ruby/object:Gem::Requirement
81
+ name: lime
82
+ requirement: &25245360 !ruby/object:Gem::Requirement
105
83
  none: false
106
84
  requirements:
107
85
  - - ! '>='
@@ -109,10 +87,10 @@ dependencies:
109
87
  version: '0'
110
88
  type: :development
111
89
  prerelease: false
112
- version_requirements: *32239520
90
+ version_requirements: *25245360
113
91
  - !ruby/object:Gem::Dependency
114
- name: aruba
115
- requirement: &32239020 !ruby/object:Gem::Requirement
92
+ name: ae
93
+ requirement: &25244820 !ruby/object:Gem::Requirement
116
94
  none: false
117
95
  requirements:
118
96
  - - ! '>='
@@ -120,7 +98,7 @@ dependencies:
120
98
  version: '0'
121
99
  type: :development
122
100
  prerelease: false
123
- version_requirements: *32239020
101
+ version_requirements: *25244820
124
102
  description: VCLog is a cross-VCS/SCM ChangeLog generator.
125
103
  email:
126
104
  - transfire@gmail.com
@@ -129,12 +107,13 @@ executables:
129
107
  - vclog
130
108
  - vclog-version
131
109
  - vclog-autotag
110
+ - vclog-news
132
111
  - vclog-formats
133
112
  extensions: []
134
113
  extra_rdoc_files:
135
- - HISTORY.rdoc
136
- - README.rdoc
137
- - COPYING.rdoc
114
+ - License.txt
115
+ - README.md
116
+ - History.md
138
117
  files:
139
118
  - .ruby
140
119
  - .yardopts
@@ -142,16 +121,8 @@ files:
142
121
  - bin/vclog-autotag
143
122
  - bin/vclog-bump
144
123
  - bin/vclog-formats
124
+ - bin/vclog-news
145
125
  - 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
155
126
  - lib/vclog/adapters/abstract.rb
156
127
  - lib/vclog/adapters/darcs.rb
157
128
  - lib/vclog/adapters/git.rb
@@ -166,8 +137,10 @@ files:
166
137
  - lib/vclog/cli/bump.rb
167
138
  - lib/vclog/cli/formats.rb
168
139
  - lib/vclog/cli/log.rb
140
+ - lib/vclog/cli/news.rb
169
141
  - lib/vclog/cli/version.rb
170
142
  - lib/vclog/cli.rb
143
+ - lib/vclog/config.rb
171
144
  - lib/vclog/core_ext.rb
172
145
  - lib/vclog/heuristics/rule.rb
173
146
  - lib/vclog/heuristics/type.rb
@@ -208,17 +181,25 @@ files:
208
181
  - man/man1/vclog-bump.1
209
182
  - man/man1/vclog-bump.1.html
210
183
  - man/man1/vclog-bump.1.ronn
184
+ - man/man1/vclog-news.1
185
+ - man/man1/vclog-news.1.html
186
+ - man/man1/vclog-news.1.ronn
211
187
  - man/man1/vclog-version.1
212
188
  - man/man1/vclog-version.1.html
213
189
  - man/man1/vclog-version.1.ronn
214
190
  - man/man1/vclog.1
215
191
  - man/man1/vclog.1.html
216
192
  - 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
193
+ - spec/feature_git_changes.rb
194
+ - spec/feature_git_history.rb
195
+ - spec/feature_hg_changes.rb
196
+ - spec/feature_hg_history.rb
197
+ - spec/featurettes/repo_creation.rb
198
+ - spec/featurettes/shellout.rb
199
+ - test/case_metadata.rb
200
+ - README.md
201
+ - History.md
202
+ - License.txt
222
203
  homepage: http://rubyworks.github.com/vclog
223
204
  licenses:
224
205
  - BSD-2-Clause
@@ -240,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
221
  version: '0'
241
222
  requirements: []
242
223
  rubyforge_project:
243
- rubygems_version: 1.8.10
224
+ rubygems_version: 1.8.11
244
225
  signing_key:
245
226
  specification_version: 3
246
227
  summary: Cross-VCS/SCM ChangeLog Generator