rscm 0.3.16 → 0.4.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.
@@ -23,30 +23,5 @@ module RSCM
23
23
  Cvs.local(repository_root_dir, path)
24
24
  end
25
25
 
26
- def test_should_fail_on_bad_command
27
- assert_raise(RuntimeError) do
28
- Cvs.new("").create_central
29
- end
30
- end
31
-
32
- LS_LOG = <<-EOF
33
- ---- 2005-11-22 21:24:40 -0500 1.1 afile
34
- ---- 2005-11-22 22:04:20 -0500 1.2 build.xml
35
- ---- 2005-11-22 22:12:43 -0500 1.1 foo bar
36
- ---- 2005-11-22 21:24:37 -0500 1.1.1.1 1.1 project.xml
37
- d--- 2005-11-22 22:12:43 -0500 1.1 src
38
- d--- 2005-11-22 22:12:43 -0500 togo
39
- EOF
40
- def test_should_parse_ls_log
41
- history_files = Cvs.new.parse_ls_log(StringIO.new(LS_LOG), "")
42
- assert_equal("afile", history_files[0].relative_path)
43
- assert_equal("foo bar", history_files[2].relative_path)
44
- assert_equal("1.1 project.xml", history_files[3].relative_path)
45
- assert(!history_files[3].directory?)
46
- assert_equal("1.1 src", history_files[4].relative_path)
47
- assert(history_files[4].directory?)
48
- assert_equal("togo", history_files[5].relative_path)
49
- assert(history_files[5].directory?)
50
- end
51
26
  end
52
27
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rscm
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.16
7
- date: 2005-11-23
6
+ version: 0.4.0
7
+ date: 2006-01-02
8
8
  summary: "RSCM - Ruby Source Control Management"
9
9
  require_paths:
10
10
  - lib
@@ -34,19 +34,21 @@ files:
34
34
  - lib/rscm.rb
35
35
  - lib/rscm/abstract_log_parser.rb
36
36
  - lib/rscm/base.rb
37
- - lib/rscm/better.rb
37
+ - lib/rscm/command_line.rb
38
38
  - lib/rscm/difftool.rb
39
39
  - lib/rscm/historic_file.rb
40
40
  - lib/rscm/line_editor.rb
41
41
  - lib/rscm/mockit.rb
42
42
  - lib/rscm/parser.rb
43
43
  - lib/rscm/path_converter.rb
44
+ - lib/rscm/platform.rb
44
45
  - lib/rscm/revision.rb
45
46
  - lib/rscm/revision_file.rb
46
47
  - lib/rscm/revision_poller.rb
47
48
  - lib/rscm/scm
48
49
  - lib/rscm/tempdir.rb
49
50
  - lib/rscm/time_ext.rb
51
+ - lib/rscm/version.rb
50
52
  - lib/rscm/scm/clearcase.rb
51
53
  - lib/rscm/scm/cvs.rb
52
54
  - lib/rscm/scm/cvs_log_parser.rb
data/lib/rscm/better.rb DELETED
@@ -1,12 +0,0 @@
1
- module RSCM
2
- class Better
3
- def self.popen(cmd, mode="r", expected_exit=0, &proc)
4
- ret = IO.popen(cmd, mode) do |io|
5
- proc.call(io)
6
- end
7
- exit_code = $? >> 8
8
- raise "Command\n'#{cmd}'\nfailed with code #{exit_code} in\n#{Dir.pwd}\nExpected exit code: #{expected_exit}" if exit_code != expected_exit
9
- ret
10
- end
11
- end
12
- end