rscm 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,5 +1,12 @@
1
1
  = RSCM Changelog
2
2
 
3
+ == Version 0.3.16
4
+
5
+ Bugfix release
6
+
7
+ * Added some minor checks for file history
8
+ * Documented Base.open
9
+
3
10
  == Version 0.3.15
4
11
 
5
12
  This release adds support for directory listings and fixes some incompatibilities with CVS 1.12.x
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = RSCM - Ruby Source Control Management (0.3.15)
1
+ = RSCM - Ruby Source Control Management (0.3.16)
2
2
 
3
3
  RSCM is to SCM what DBI/JDBC/ODBC are to databases - an SCM-independent API for accessing different SCMs. The high level features are roughly:
4
4
 
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ require 'meta_project'
10
10
 
11
11
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
12
12
  PKG_NAME = 'rscm'
13
- PKG_VERSION = '0.3.15' + PKG_BUILD
13
+ PKG_VERSION = '0.3.16' + PKG_BUILD
14
14
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
15
15
 
16
16
  desc "Default Task"
data/lib/rscm/base.rb CHANGED
@@ -212,6 +212,11 @@ module RSCM
212
212
  def ls(relative_path)
213
213
  raise NotImplementedError
214
214
  end
215
+
216
+ # Opens a revision_file
217
+ def open(revision_file, &block) #:yield: io
218
+ raise NotImplementedError
219
+ end
215
220
 
216
221
  # Whether the working copy is in synch with the central
217
222
  # repository's revision/time identified by +identifier+.
@@ -4,6 +4,7 @@ module RSCM
4
4
  attr_reader :relative_path
5
5
 
6
6
  def initialize(relative_path, directory, scm)
7
+ raise "Not a String: '#{relative_path}' (#{relative_path.class.name})" unless relative_path.is_a? String
7
8
  @relative_path, @directory, @scm = relative_path, directory, scm
8
9
  end
9
10
 
@@ -18,8 +19,8 @@ module RSCM
18
19
  files_s = revision.files.collect{|f| f.to_s}.join("\n")
19
20
  raise "The file-specific revision didn't have exactly one file, but #{revision.files.length}:\n#{files_s}"
20
21
  end
21
- if(revision.files[0].path != @relative_path)
22
- raise "The file-specific revision didn't have expected path #{@relative_path}, but #{revision.files[0].path}"
22
+ if(!revision.files[0].path.eql?(@relative_path))
23
+ raise "The file-specific revision didn't have expected path '#{@relative_path}', but '#{revision.files[0].path}'"
23
24
  end
24
25
  revision.files[0]
25
26
  end
@@ -37,7 +37,7 @@ module RSCM
37
37
 
38
38
  # Returns/yields an IO containing the contents of this file, using the +scm+ this
39
39
  # file lives in.
40
- def open(scm, &block)
40
+ def open(scm, &block) #:yield: io
41
41
  scm.open(self, &block)
42
42
  end
43
43
 
metadata CHANGED
@@ -3,7 +3,7 @@ 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.15
6
+ version: 0.3.16
7
7
  date: 2005-11-23
8
8
  summary: "RSCM - Ruby Source Control Management"
9
9
  require_paths: