vclog 1.9.2 → 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 (43) hide show
  1. checksums.yaml +7 -0
  2. data/History.md +40 -0
  3. data/License.txt +1 -6
  4. data/README.md +38 -35
  5. data/lib/vclog/adapters/abstract.rb +3 -8
  6. data/lib/vclog/adapters/git.rb +71 -133
  7. data/lib/vclog/adapters/svn.rb +1 -1
  8. data/lib/vclog/change.rb +8 -8
  9. data/lib/vclog/change_point.rb +0 -1
  10. data/lib/vclog/cli/abstract.rb +2 -2
  11. data/lib/vclog/config.rb +47 -49
  12. data/lib/vclog/core_ext.rb +14 -101
  13. data/lib/vclog/heuristics.rb +6 -6
  14. data/lib/vclog/history_file.rb +10 -3
  15. data/lib/vclog/metadata.rb +1 -16
  16. data/lib/vclog/repo.rb +7 -15
  17. data/lib/vclog/report.rb +10 -5
  18. data/lib/vclog/tag.rb +19 -6
  19. data/lib/vclog/version.rb +3 -0
  20. data/man/man1/vclog-autotag.1.ronn +1 -1
  21. data/man/man1/vclog-bump.1.ronn +1 -1
  22. data/man/man1/vclog-news.1.ronn +2 -2
  23. data/man/man1/vclog-version.1.ronn +1 -1
  24. metadata +111 -91
  25. data/.ruby +0 -55
  26. data/lib/vclog.yml +0 -55
  27. data/man/man1/vclog-autotag.1 +0 -29
  28. data/man/man1/vclog-autotag.1.html +0 -117
  29. data/man/man1/vclog-bump.1 +0 -23
  30. data/man/man1/vclog-bump.1.html +0 -111
  31. data/man/man1/vclog-news.1 +0 -25
  32. data/man/man1/vclog-news.1.html +0 -112
  33. data/man/man1/vclog-version.1 +0 -16
  34. data/man/man1/vclog-version.1.html +0 -100
  35. data/man/man1/vclog.1 +0 -51
  36. data/man/man1/vclog.1.html +0 -131
  37. data/spec/feature_git_changes.rb +0 -58
  38. data/spec/feature_git_history.rb +0 -58
  39. data/spec/feature_hg_changes.rb +0 -58
  40. data/spec/feature_hg_history.rb +0 -58
  41. data/spec/featurettes/repo_creation.rb +0 -64
  42. data/spec/featurettes/shellout.rb +0 -16
  43. data/test/case_metadata.rb +0 -10
@@ -1,58 +0,0 @@
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
@@ -1,58 +0,0 @@
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
@@ -1,64 +0,0 @@
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
@@ -1,16 +0,0 @@
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
@@ -1,10 +0,0 @@
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
-