Skip to content

Commit

Permalink
move rails interface to sub directory and enable relative require als…
Browse files Browse the repository at this point in the history
…o update some community

documentaion
  • Loading branch information
gnufied committed Feb 27, 2008
1 parent d458f8c commit 9f4a772
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 22 deletions.
13 changes: 12 additions & 1 deletion doc/content/bugs/bugs.txt
@@ -1 +1,12 @@
Hi, I'm a new page!
<div id="content">

%(entry-title)<a name="trac">Submit Bug Report or Patch </a>%

_BackgrounDRb_ causing trouble, or you have a potential fix? Why not submit the bug report "here":http://backgroundrb.devjavu.com/report/ .
You can also submit potential patches that fix known bugs or add exciting features to the above trac url.

Also, if you are using older version of _BackgrounDRb_ and having a problem, why not upgrade to latest code from git, your bug
might have been fixed there.

</div>

1 change: 1 addition & 0 deletions doc/content/bugs/bugs.yaml
Expand Up @@ -2,3 +2,4 @@
filters_pre: "textile"
# Custom
title: "Report Bugs"
sidebar_items: [["Trac", "#trac"]]
10 changes: 9 additions & 1 deletion doc/content/community/community.txt
@@ -1 +1,9 @@
Hi, I'm a new page!
<div id="content">

%(entry-title)<a name="mailing_list"> Mailing List </a>%

You can join BackgrounDRb mailing list "here":http://rubyforge.org/mailman/listinfo/backgroundrb-devel .
Its a perfect place for discussing new ideas, asking questions, submitting patches and stuff.

</div>

1 change: 1 addition & 0 deletions doc/content/community/community.yaml
Expand Up @@ -2,3 +2,4 @@
filters_pre: "textile"
# Custom
title: "Join the BackgrounDRb Community"
sidebar_items: [["MailingList", "#mailing_list"]]
19 changes: 18 additions & 1 deletion doc/output/bugs/index.html
Expand Up @@ -32,14 +32,31 @@ <h1> BackgrounDRb </h1>
</div>
<ul>


<li><a href="#trac"> Trac </a></li>


</ul>

<div id="sidebar-bottom">
&nbsp;
</div>
</div>

<p>Hi, I&#8217;m a new page!</p>
<div id="content">

<p><span class="entry-title"><a name="trac">Submit Bug Report or Patch </a></span></p>


<p><em>BackgrounDRb</em> causing trouble, or you have a potential fix? Why not submit the bug report <a href="http://backgroundrb.devjavu.com/report/">here</a> .
You can also submit potential patches that fix known bugs or add exciting features to the above trac url.</p>


<p>Also, if you are using older version of <em>BackgrounDRb</em> and having a problem, why not upgrade to latest code from git, your bug
might have been fixed there.</p>


</div>

<div id="footer">
<div id="footer-valid">
Expand Down
15 changes: 14 additions & 1 deletion doc/output/community/index.html
Expand Up @@ -32,14 +32,27 @@ <h1> BackgrounDRb </h1>
</div>
<ul>


<li><a href="#mailing_list"> MailingList </a></li>


</ul>

<div id="sidebar-bottom">
&nbsp;
</div>
</div>

<p>Hi, I&#8217;m a new page!</p>
<div id="content">

<p><span class="entry-title"><a name="mailing_list"> Mailing List </a></span></p>


<p>You can join BackgrounDRb mailing list <a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel">here</a> .
Its a perfect place for discussing new ideas, asking questions, submitting patches and stuff.</p>


</div>

<div id="footer">
<div id="footer-valid">
Expand Down
5 changes: 3 additions & 2 deletions lib/backgroundrb.rb
Expand Up @@ -3,8 +3,9 @@
require "pathname"
require "packet"
BACKGROUNDRB_ROOT = Pathname.new(RAILS_ROOT).realpath.to_s
require "bdrb_conn_error"
require "bdrb_config"
require "backgroundrb/bdrb_conn_error"
require "backgroundrb/bdrb_config"
require "backgroundrb/rails_worker_proxy"

module BackgrounDRb
end
Expand Down
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions lib/backgroundrb/rails_worker_proxy.rb
@@ -0,0 +1,42 @@
module BackgrounDRb
class RailsWorkerProxy
attr_accessor :worker_name, :worker_method, :data, :job_key
def self.worker(p_worker_name,p_job_key = nil)
t = new
t.worker_name = p_worker_name
t.job_key = p_job_key
t
end

def method_missing(method_id,*args)
@worker_method = method_id
@data = args[0]
flag = args[1]
case @worker_method
when :ask_status
if job_key
MiddleMan.ask_status(:worker => worker_name,:job_key => job_key)
else
MiddleMan.ask_status(:worker => worker_name)
end
when :worker_info

when :all_worker_info

when :new_worker

when :delete

else


end
end

def pack_modifers(p_option = { })
end


end # end of RailsWorkerProxy class

end # end of BackgrounDRb module
15 changes: 0 additions & 15 deletions lib/rails_worker_proxy.rb

This file was deleted.

2 changes: 1 addition & 1 deletion script/backgroundrb
Expand Up @@ -5,7 +5,7 @@ RAILS_HOME = rails_root
PACKET_APP = rails_root + "/vendor/plugins/backgroundrb"
WORKER_ROOT = rails_root + "/lib/workers"

["server","server/lib","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")}
["server","server/lib","lib","lib/backgroundrb"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")}
$LOAD_PATH.unshift(WORKER_ROOT)

require RAILS_HOME + '/config/boot.rb'
Expand Down

0 comments on commit 9f4a772

Please sign in to comment.