public
Rubygem
Description: Most awesome pagination solution for Ruby
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/mislav/will_paginate.git
Search Repo:
set up rake spec:rcov
mislav (author)
Sat Jun 07 20:10:22 -0700 2008
commit  c21486bf2eaee5a149320beb8163d25af66b4d27
tree    2ade9b1b85ece11bcc45334f90598e7055a7bad5
parent  c5db3e43a530a4da64ac40118e06eb9a63634812
...
1
2
3
 
4
5
6
...
18
19
20
 
21
22
23
...
59
60
61
62
 
63
...
1
2
 
3
4
5
6
...
18
19
20
21
22
23
24
...
60
61
62
 
63
64
0
@@ -1,6 +1,6 @@
0
 require 'rubygems'
0
 begin
0
- hanna_dir = '/home/mislav/projects/hanna/lib'
0
+ hanna_dir = '/Users/mislav/Projects/Hanna/lib'
0
   $:.unshift hanna_dir if File.exists? hanna_dir
0
   require 'hanna/rdoctask'
0
 rescue LoadError
0
@@ -18,6 +18,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
0
   rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG').
0
     include('lib/**/*.rb').
0
     exclude('lib/will_paginate/named_scope*').
0
+ exclude('lib/will_paginate/deprecation.rb').
0
     exclude('lib/will_paginate/version.rb')
0
   
0
   rdoc.main = "README.rdoc" # page to start on
0
@@ -59,4 +60,4 @@ end
0
 task :examples do
0
   %x(haml examples/index.haml examples/index.html)
0
   %x(sass examples/pagination.sass examples/pagination.css)
0
-end
0
+end
0
\ No newline at end of file
...
1
2
3
4
5
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
37
38
39
...
1
2
3
 
4
 
5
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
0
@@ -1,39 +1,34 @@
0
 require 'spec/rake/spectask'
0
 
0
 spec_opts = 'spec/spec.opts'
0
-spec_glob = FileList['spec/**/*_spec.rb']
0
 
0
-desc 'Run all specs in spec directory'
0
+desc 'Run all specs'
0
 Spec::Rake::SpecTask.new(:spec) do |t|
0
   t.libs << 'lib' << 'spec'
0
   t.spec_opts = ['--options', spec_opts]
0
- t.spec_files = spec_glob
0
 end
0
 
0
 namespace :spec do
0
- desc 'Run all specs in spec directory with RCov'
0
+ desc 'Analyze spec coverage with RCov'
0
   Spec::Rake::SpecTask.new(:rcov) do |t|
0
     t.libs << 'lib' << 'spec'
0
     t.spec_opts = ['--options', spec_opts]
0
- t.spec_files = spec_glob
0
     t.rcov = true
0
- # t.rcov_opts = lambda do
0
- # IO.readlines('spec/rcov.opts').map {|l| l.chomp.split " "}.flatten
0
- # end
0
+ t.rcov_opts = lambda do
0
+ IO.readlines('spec/rcov.opts').map { |l| l.chomp.split(" ") }.flatten
0
+ end
0
   end
0
   
0
   desc 'Print Specdoc for all specs'
0
   Spec::Rake::SpecTask.new(:doc) do |t|
0
     t.libs << 'lib' << 'spec'
0
     t.spec_opts = ['--format', 'specdoc', '--dry-run']
0
- t.spec_files = spec_glob
0
   end
0
   
0
   desc 'Generate HTML report'
0
   Spec::Rake::SpecTask.new(:html) do |t|
0
     t.libs << 'lib' << 'spec'
0
     t.spec_opts = ['--format', 'html:doc/spec_results.html', '--diff']
0
- t.spec_files = spec_glob
0
     t.fail_on_error = false
0
   end
0
 end

Comments

    No one has commented yet.