public
Rubygem
Description: Query Analyzer Plugin for ActiveRecord/MySQL on Merb
Clone URL: git://github.com/bchiu/merb_query_analyzer.git
updated rakefile
bchiu (author)
Mon Jun 02 22:01:25 -0700 2008
commit  4eebd2e82c8b6e652025ef89ca0b6ce6d4b8ef0a
tree    7e0138b6584b01d5ca5a2f48cb14ef25074270db
parent  2fcf6f7a6472756c9fb5b9e9fbadfe78fc572a82
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-Copyright (c) 2008 YOUR NAME
0
+Copyright (c) 2008 Ben Chiu
0
 
0
 Permission is hereby granted, free of charge, to any person obtaining
0
 a copy of this software and associated documentation files (the
...
1
2
3
 
 
 
4
5
6
...
1
 
2
3
4
5
6
7
8
0
@@ -1,6 +1,8 @@
0
 require 'rubygems'
0
-require 'rake/gempackagetask'
0
 require 'rubygems/specification'
0
+require 'rake/gempackagetask'
0
+require 'spec/rake/spectask'
0
+require 'merb-core/test/tasks/spectasks'
0
 require 'date'
0
 require 'merb_rake_helper'
0
 
...
13
14
15
 
 
 
 
 
 
 
 
 
16
...
13
14
15
16
17
18
19
20
21
22
23
24
25
0
@@ -13,3 +13,12 @@ def rakex
0
   win32 = (PLATFORM =~ /win32/) rescue nil
0
   win32 ? 'rake.bat' : 'rake'
0
 end
0
+
0
+def gems_path
0
+ d, cwd = nil, Dir.pwd
0
+ 3.times do
0
+ Dir.chdir('..')
0
+ d = Dir.pwd and break if Dir.pwd =~ /\/gems$/i
0
+ end
0
+ Dir.chdir(cwd) and d
0
+end
0
\ No newline at end of file

Comments

    No one has commented yet.