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 +7 -0
- data/Rakefile +1 -1
- data/lib/scm_web/view_cvs.rb +1 -1
- data/lib/tracker/trac/project.rb +7 -7
- data/lib/xforge/rubyforge.rb +1 -1
- data/lib/xforge/sourceforge.rb +1 -1
- metadata +1 -1
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
data/lib/scm_web/view_cvs.rb
CHANGED
@@ -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
|
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]
|
data/lib/tracker/trac/project.rb
CHANGED
@@ -3,9 +3,9 @@ module Tracker
|
|
3
3
|
class Project < Base
|
4
4
|
include DigitIssues
|
5
5
|
|
6
|
-
|
7
|
-
def initialize(uri=nil,
|
8
|
-
@uri, @
|
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/\#{@
|
31
|
-
HTML = "\#{@uri}/file/\#{@
|
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 = {
|
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 =>
|
39
|
+
def uri(path=nil, options={:type => "overview"})
|
40
40
|
return @uri unless path
|
41
41
|
|
42
42
|
type = options[:type]
|
data/lib/xforge/rubyforge.rb
CHANGED
@@ -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
|
-
{
|
32
|
+
{"overview" => OVERVIEW, "raw" => RAW, "html" => HTML, "diff" => DIFF},
|
33
33
|
cvs_host_name,
|
34
34
|
cvs_server_path,
|
35
35
|
project.unix_name,
|
data/lib/xforge/sourceforge.rb
CHANGED
@@ -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
|
-
{
|
31
|
+
{"overview" => OVERVIEW, "raw" => RAW, "html" => HTML, "diff" => DIFF},
|
32
32
|
cvs_host_name,
|
33
33
|
cvs_server_path,
|
34
34
|
project.unix_name,
|