public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Search Repo:
fixed GitoriousConfig['gitorious_host'] interpolation
Johan Sørensen (author)
Tue Mar 11 14:31:07 -0700 2008
commit  4bef75107abc6cff1f0e2416aa5d514809487857
tree    4ab74f65f1de5b8d61dd3b2f0714404d4d948ecd
parent  1fe38d36cf3557a732f244c257d38d1efc44763a
...
2
3
4
5
 
6
7
8
...
18
19
20
21
 
22
23
24
...
26
27
28
29
 
30
31
32
...
35
36
37
38
 
39
40
41
...
2
3
4
 
5
6
7
8
...
18
19
20
 
21
22
23
24
...
26
27
28
 
29
30
31
32
...
35
36
37
 
38
39
40
41
0
@@ -2,7 +2,7 @@ class Mailer < ActionMailer::Base
0
   def signup_notification(user)
0
     setup_email(user)
0
     @subject += 'Please activate your new account'
0
- @body[:url] = "http://GitoriousConfig['gitorious_host']/users/activate/#{user.activation_code}"
0
+ @body[:url] = "http://#{GitoriousConfig['gitorious_host']}/users/activate/#{user.activation_code}"
0
   
0
   end
0
   
0
@@ -18,7 +18,7 @@ class Mailer < ActionMailer::Base
0
     @body[:cloner] = repository.user
0
     @body[:project] = repository.project
0
     @body[:repository] = repository
0
- @body[:url] = "http://GitoriousConfig['gitorious_host']/p/#{repository.project.slug}/repos/#{repository.name}"
0
+ @body[:url] = "http://#{GitoriousConfig['gitorious_host']}/p/#{repository.project.slug}/repos/#{repository.name}"
0
   end
0
   
0
   def merge_request_notification(merge_request)
0
@@ -26,7 +26,7 @@ class Mailer < ActionMailer::Base
0
     @subject += %Q{#{merge_request.source_repository.user.login} has requested a merge in #{merge_request.target_repository.project.title}}
0
     @body[:merge_request] = merge_request
0
     @body[:project] = merge_request.target_repository.project
0
- url = "http://GitoriousConfig['gitorious_host']/p/#{merge_request.target_repository.project.slug}"
0
+ url = "http://#{GitoriousConfig['gitorious_host']}/p/#{merge_request.target_repository.project.slug}"
0
     url << "/repos/#{merge_request.target_repository.name}"
0
     url << "/merge_requests/#{merge_request.id}"
0
     @body[:url] = url
0
@@ -35,7 +35,7 @@ class Mailer < ActionMailer::Base
0
   protected
0
     def setup_email(user)
0
       @recipients = "#{user.email}"
0
- @from = "Gitorious <no-reply@GitoriousConfig['gitorious_host']>"
0
+ @from = "Gitorious <no-reply@#{GitoriousConfig['gitorious_host']}>"
0
       @subject = "[Gitorious] "
0
       @sent_on = Time.now
0
       @body[:user] = user
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ atom_feed do |feed|
0
   feed.updated((@commits.blank? ? nil : @commits.first.committed_date))
0
 
0
   @commits.each do |commit|
0
- item_url = "http://GitoriousConfig['gitorious_host']" + project_repository_commit_path(@project, @repository, commit.id)
0
+ item_url = "http://#{GitoriousConfig['gitorious_host']}" + project_repository_commit_path(@project, @repository, commit.id)
0
     feed.entry(commit.id, {
0
       :url => item_url,
0
       :updated => commit.committed_date,
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ atom_feed do |feed|
0
   feed.updated((@comments.blank? ? Time.now : @comments.first.created_at))
0
 
0
   @comments.each do |comment|
0
- item_url = "http://GitoriousConfig['gitorious_host']" + project_repository_comments_path(@project,@repository)
0
+ item_url = "http://#{GitoriousConfig['gitorious_host']}" + project_repository_comments_path(@project,@repository)
0
     feed.entry(comment, :url => item_url) do |entry|
0
       entry.title("#{comment.user.login}: #{truncate(comment.body, 30)}")
0
       entry.content(comment.body)
...
1
2
3
 
4
5
6
7
 
8
...
1
2
 
3
4
5
6
 
7
8
0
@@ -1,8 +1,8 @@
0
 Hello <%= @user.login %>,
0
 
0
-your account has been activated. You can add your public SSH key here http://GitoriousConfig['gitorious_host']/account as well as change your details.
0
+your account has been activated. You can add your public SSH key here http://<%= GitoriousConfig['gitorious_host'] -%>/account as well as change your details.
0
 
0
 Thank you
0
 
0
-http://GitoriousConfig['gitorious_host']
0
+http://<%= GitoriousConfig['gitorious_host'] %>
0
 
...
13
14
15
16
 
...
13
14
15
 
16
0
@@ -13,4 +13,4 @@ You can review the request and its commits here:
0
 
0
 Thank you
0
 
0
-http://GitoriousConfig['gitorious_host']
0
+http://<%= GitoriousConfig['gitorious_host'] %>
...
6
7
8
9
10
 
11
...
6
7
8
 
9
10
11
0
@@ -6,4 +6,4 @@ Hello <%= @user.login -%>,
0
 
0
 Thank you
0
 
0
-http://GitoriousConfig['gitorious_host']
0
\ No newline at end of file
0
+http://<%= GitoriousConfig['gitorious_host'] %>
0
\ No newline at end of file
...
1
2
3
 
4
5
6
...
9
10
11
12
13
 
14
...
1
2
 
3
4
5
6
...
9
10
11
 
12
13
14
0
@@ -1,6 +1,6 @@
0
 Hello,
0
 
0
-Your GitoriousConfig['gitorious_host'] account has been created, your username is <%= @user.login %>
0
+Your <%= GitoriousConfig['gitorious_host'] -%> account has been created, your username is <%= @user.login %>
0
 
0
 Please visit this url to activate your account:
0
 
0
@@ -9,4 +9,4 @@ Please visit this url to activate your account:
0
 
0
 Thank you
0
 
0
-http://GitoriousConfig['gitorious_host']
0
\ No newline at end of file
0
+http://<%= GitoriousConfig['gitorious_host'] %>
0
\ No newline at end of file
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ atom_feed do |feed|
0
   feed.updated((@projects.blank? ? Time.now : @projects.first.created_at))
0
 
0
   @projects.each do |project|
0
- item_url = "http://GitoriousConfig['gitorious_host']" + project_path(project)
0
+ item_url = "http://#{GitoriousConfig['gitorious_host']}" + project_path(project)
0
     feed.entry(project, :url => item_url) do |entry|
0
       entry.title(project.title)
0
       entry.content(project.description)
...
15
16
17
18
 
19
20
21
...
24
25
26
27
 
28
29
30
31
 
32
33
34
...
44
45
46
47
 
48
49
50
...
15
16
17
 
18
19
20
21
...
24
25
26
 
27
28
29
30
 
31
32
33
34
...
44
45
46
 
47
48
49
50
0
@@ -15,7 +15,7 @@
0
   file of the repository you wish to push:
0
 <pre>
0
 [remote "origin"]
0
- url = git@GitoriousConfig['gitorious_host']:<em>project</em>/<em>repository.git</em>
0
+ url = git@<%= GitoriousConfig['gitorious_host'] -%>:<em>project</em>/<em>repository.git</em>
0
        fetch = +refs/heads/*:refs/remotes/origin/*
0
 [branch "master"]
0
        remote = origin
0
@@ -24,11 +24,11 @@
0
   and then <code>git push origin master</code> to push the code to Gitorious.
0
 </p>
0
 <p>
0
- You can also just run "<code>git push git@GitoriousConfig['gitorious_host']:tumbline/mainline.git</code>", or
0
+ You can also just run "<code>git push git@<%= GitoriousConfig['gitorious_host'] -%>:tumbline/mainline.git</code>", or
0
   you can setup a remote by doing the following (add --fetch to the add call to
0
   get the config from above):
0
   <pre>
0
- git remote add origin git@GitoriousConfig['gitorious_host']:<em>project</em>/<em>repository.git</em>
0
+ git remote add origin git@<%= GitoriousConfig['gitorious_host'] -%>:<em>project</em>/<em>repository.git</em>
0
   # to push the master branch to the origin remote we added above:
0
   git push origin master
0
   # after that you can just do:
0
@@ -44,7 +44,7 @@
0
   can contact you about your projects if they need to. We do however take light
0
   measures against crawlers by not displaying your email in completely plain text. <br />
0
   But just to be clear: we won't sell or use any information you give to
0
- GitoriousConfig['gitorious_host'] against you or anyone else for financial and/or personal gains.
0
+ <%= GitoriousConfig['gitorious_host'] -%> against you or anyone else for financial and/or personal gains.
0
 </p>
0
 
0
 <hr />
...
17
18
19
20
21
 
 
...
17
18
19
 
 
20
21
0
@@ -17,5 +17,5 @@ gitorious_client_port: 3000
0
 # Host the ./script/gitorious script should use:
0
 gitorious_client_host: localhost
0
 
0
-# Host which is serving the gitorious app
0
-gitorious_host: GitoriousConfig['gitorious_host']
0
+# Host which is serving the gitorious app, eg "gitorious.org"
0
+gitorious_host: gitorious.org

Comments

    No one has commented yet.