Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (56 sloc) 1.836 kb
01e6bf4 @midas Release 1.0.3.
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "g_form_submit_protector"
8 gem.summary = %Q{A Rails Guilded component that will disable form elements once the submit button has been used.}
9 gem.description = %Q{A Rails Guilded component that will disable form elements once the submit button has been used.}
10 gem.email = "jason@lookforwardenterprises.com"
11 gem.homepage = "http://github.com/midas/g_form_submit_protector"
12 gem.authors = ["C. Jason Harrelson (midas)"]
13 gem.add_dependency "rails", ">= 2.3"
14 gem.add_dependency "guilded", ">= 1.0"
15 end
16 Jeweler::GemcutterTasks.new
17 rescue LoadError
18 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
19 end
20
21 require 'spec/rake/spectask'
22 Spec::Rake::SpecTask.new(:spec) do |spec|
23 spec.libs << 'lib' << 'spec'
24 spec.spec_files = FileList['spec/**/*_spec.rb']
138d5c0 @midas Initial commit.
authored
25 end
26
01e6bf4 @midas Release 1.0.3.
authored
27 Spec::Rake::SpecTask.new(:rcov) do |spec|
28 spec.libs << 'lib' << 'spec'
29 spec.pattern = 'spec/**/*_spec.rb'
30 spec.rcov = true
31 end
32
33 task :spec => :check_dependencies
34
35 task :default => :spec
36
37 begin
38 require 'rcov/rcovtask'
39 Rcov::RcovTask.new do |test|
40 test.libs << 'test'
41 test.pattern = 'test/**/*_test.rb'
42 test.verbose = true
43 end
44 rescue LoadError
45 task :rcov do
46 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
47 end
48 end
49
50 task :test => :check_dependencies
51
52 task :default => :test
53
54 require 'rake/rdoctask'
55 Rake::RDocTask.new do |rdoc|
56 if File.exist?('VERSION')
57 version = File.read('VERSION')
58 else
59 version = ""
60 end
138d5c0 @midas Initial commit.
authored
61
01e6bf4 @midas Release 1.0.3.
authored
62 rdoc.rdoc_dir = 'rdoc'
63 rdoc.title = "tester #{version}"
64 rdoc.rdoc_files.include('README*')
65 rdoc.rdoc_files.include('lib/**/*.rb')
66 end
Something went wrong with that request. Please try again.