public
Description: rails plugin that allows has_many :through to go through other has_many :throughs
Homepage:
Clone URL: git://github.com/ianwhite/nested_has_many_through.git
Updated README to point at plugins.ardes.com (where Rdoc is hosted) and set CI 
to push rdoc and garlic report
ianwhite (author)
Wed Sep 24 15:17:07 -0700 2008
commit  9dfeb76361f214b37df6f9e86abededc2f420829
tree    eda7295b24af5d04950e0e0eeaf38b9da0f15d12
parent  c7ba2df176ed7f52f69ebce3168a6244f574aecb
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+http://plugins.ardes.com > nested_has_many_through
0
+
0
 = nested_has_many_through
0
 
0
 A fantastic patch/plugin has been floating around for a while:
...
6
7
8
9
 
10
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15
16
...
6
7
8
 
9
10
11
12
 
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
0
@@ -6,11 +6,31 @@ require 'spec/rake/spectask'
0
 require 'spec/rake/verify_rcov'
0
 require 'rake/rdoctask'
0
 
0
-plugin_name = File.basename(File.dirname(__FILE__))
0
+plugin_name = 'nested_has_many_through'
0
 
0
 task :default => :spec
0
 
0
-task :cruise => "garlic:all"
0
+task :cruise do
0
+  # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
+  begin
0
+    sh "rake garlic:all > garlic_report.txt"
0
+    
0
+    # send abridged rpeort
0
+    report = File.read('garlic_report.txt').sub(/^.*?==========/m, '==========')
0
+    report = "garlic report for #{plugin_name}\n#{`git log -n 1 --pretty=oneline --no-color`}\n" + report
0
+    File.open('garlic_report.txt', 'w+') {|f| f << report }
0
+    sh "scp -i ~/.ssh/ardes garlic_report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt"
0
+
0
+    # build doc and send that
0
+    cd "garlic/work/edge/vendor/plugins/#{plugin_name}" do
0
+      sh "rake doc:all"
0
+      sh "scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}"
0
+    end
0
+    
0
+  ensure
0
+    puts File.read('garlic_report.txt')
0
+  end
0
+end
0
 
0
 desc "Run the specs for #{plugin_name}"
0
 Spec::Rake::SpecTask.new(:spec) do |t|

Comments