xforge 0.3.2 → 0.3.3

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.
data/CHANGES CHANGED
@@ -1,5 +1,12 @@
1
1
  = XForge Changelog
2
2
 
3
+ == Version 0.3.3
4
+
5
+ This is a minor refactoring release
6
+
7
+ * Decoupled Trac::Project from RSCM::Subversion
8
+ * Made Tracker::ViewCvs use Strings as values instead of symbols (to make it easier to post from a web form)
9
+
3
10
  == Version 0.3.2
4
11
 
5
12
  This release adds more support for other issue trackers ans scm browsers.
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ require 'rake/rdoctask'
24
24
  #
25
25
  # REMEMBER TO KEEP PKG_VERSION IN SYNC WITH THE CHANGES FILE!
26
26
  PKG_NAME = "xforge"
27
- PKG_VERSION = "0.3.2"
27
+ PKG_VERSION = "0.3.3"
28
28
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
29
29
  PKG_FILES = FileList[
30
30
  '[A-Z]*',
@@ -40,7 +40,7 @@ module ScmWeb
40
40
  # Options are:
41
41
  # :type (can be one of :overview, :raw or :html)
42
42
  # :revision (the revision of the file. must be specified when :type is :raw or :html)
43
- def uri(path="", options={:type=>:overview})
43
+ def uri(path="", options={:type=>"overview"})
44
44
  type = options[:type]
45
45
  raise "No :type specified" unless type
46
46
  uri_spec = @uri_specs[type]
@@ -3,9 +3,9 @@ module Tracker
3
3
  class Project < Base
4
4
  include DigitIssues
5
5
 
6
- attr_reader :uri, :svn
7
- def initialize(uri=nil, svn=nil)
8
- @uri, @svn = uri, svn
6
+ attr_accessor :uri, :svn_path
7
+ def initialize(uri=nil, svn_path=nil)
8
+ @uri, @svn_path = uri, svn_path
9
9
  end
10
10
 
11
11
  def issue(issue_identifier)
@@ -27,16 +27,16 @@ module Tracker
27
27
  end
28
28
  end
29
29
 
30
- OVERVIEW = "\#{@uri}/log/\#{@svn.path}/\#{path}"
31
- HTML = "\#{@uri}/file/\#{@svn.path}/\#{path}?rev=\#{revision}"
30
+ OVERVIEW = "\#{@uri}/log/\#{@svn_path}/\#{path}"
31
+ HTML = "\#{@uri}/file/\#{@svn_path}/\#{path}?rev=\#{revision}"
32
32
  RAW = "#{HTML}&format=txt"
33
33
  DIFF = "\#{@uri}/changeset/\#{revision}"
34
- URI_SPECS = {:overview => OVERVIEW, :raw => RAW, :html => HTML, :diff => DIFF}
34
+ URI_SPECS = {"overview" => OVERVIEW, "raw" => RAW, "html" => HTML, "diff" => DIFF}
35
35
 
36
36
  # This method can mean two things, since this class both implements the ScmWeb and Tracker API
37
37
  # If called with no arguments, returns the uri of the project page, otherwise the uri of a file
38
38
  # in the scm
39
- def uri(path=nil, options={:type => :overview})
39
+ def uri(path=nil, options={:type => "overview"})
40
40
  return @uri unless path
41
41
 
42
42
  type = options[:type]
@@ -29,7 +29,7 @@ module XForge
29
29
  def scm_web(project)
30
30
  module_regexp = /href=\"(\w+)\/\?cvsroot=#{project.unix_name}/
31
31
  ::ScmWeb::ViewCvs.new(
32
- {:overview => OVERVIEW, :raw => RAW, :html => HTML, :diff => DIFF},
32
+ {"overview" => OVERVIEW, "raw" => RAW, "html" => HTML, "diff" => DIFF},
33
33
  cvs_host_name,
34
34
  cvs_server_path,
35
35
  project.unix_name,
@@ -28,7 +28,7 @@ module XForge
28
28
  def scm_web(project)
29
29
  module_regexp = /viewcvs\.py\/#{project.unix_name}\/(\w+)\//
30
30
  ::ScmWeb::ViewCvs.new(
31
- {:overview => OVERVIEW, :raw => RAW, :html => HTML, :diff => DIFF},
31
+ {"overview" => OVERVIEW, "raw" => RAW, "html" => HTML, "diff" => DIFF},
32
32
  cvs_host_name,
33
33
  cvs_server_path,
34
34
  project.unix_name,
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: xforge
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.2
6
+ version: 0.3.3
7
7
  date: 2005-08-16 00:00:00 -04:00
8
8
  summary: Ruby based make-like utility.
9
9
  require_paths: