Skip to content
Newer
Older
100644 52 lines (46 sloc) 1.67 KB
476be04 @grimen Tests fixed to run on Ruby 1.9.1 (and pass). Renamed gemspec.
authored Sep 27, 2009
1 # encoding: utf-8
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 26, 2009
2 require 'rubygems'
1fcc8aa Adding plugin
christian authored Oct 28, 2008
3 require 'rake'
4 require 'rake/testtask'
5 require 'rake/rdoctask'
6
476be04 @grimen Tests fixed to run on Ruby 1.9.1 (and pass). Renamed gemspec.
authored Sep 27, 2009
7 NAME = "validatious-on-rails"
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
8 SUMMARY = %Q{Rails plugin that maps model validations to class names on form elements to integrate with Validatious.}
9 HOMEPAGE = "http://github.com/grimen/#{NAME}"
eaa38e9 @grimen Updated Rakefile, and removed ORIGINAL_README.
authored Oct 19, 2009
10 AUTHORS = ["Jonas Grimfelt", "Christian Johansen"]
11 EMAIL = "grimen@gmail.com"
d1b5a0c @grimen Gemified.
authored Sep 26, 2009
12 SUPPORT_FILES = %w(README)
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
13
14 begin
eaa38e9 @grimen Updated Rakefile, and removed ORIGINAL_README.
authored Oct 18, 2009
15 gem 'jeweler', '>= 1.2.1'
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
16 require 'jeweler'
17 Jeweler::Tasks.new do |gemspec|
18 gemspec.name = NAME
19 gemspec.summary = SUMMARY
20 gemspec.description = SUMMARY
21 gemspec.homepage = HOMEPAGE
22 gemspec.authors = AUTHORS
23 gemspec.email = EMAIL
24
25 gemspec.require_paths = %w{lib}
f7ec6ec @grimen Ignore log files.
authored Sep 26, 2009
26 gemspec.files = SUPPORT_FILES << %w(Rakefile) <<
2601e32 @grimen First RemoteValidator draft - work in progress pt. 1.
authored Oct 11, 2009
27 Dir.glob(File.join('{app,config,generators,lib,test,rails}', '**', '*').to_s).reject { |v| v =~ /\.log/i }
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
28 gemspec.executables = %w()
29 gemspec.extra_rdoc_files = SUPPORT_FILES
30 end
31 rescue LoadError
32 puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
33 end
34
35 desc %Q{Default: Run unit tests for "#{NAME}".}
1fcc8aa Adding plugin
christian authored Oct 28, 2008
36 task :default => :test
37
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
38 desc %Q{Run unit tests for "#{NAME}".}
39 Rake::TestTask.new(:test) do |test|
40 test.libs << %w(lib test)
41 test.pattern = File.join('test', '**', '*_test.rb')
42 test.verbose = true
1fcc8aa Adding plugin
christian authored Oct 28, 2008
43 end
44
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
45 desc %Q{Generate documentation for "#{NAME}".}
1fcc8aa Adding plugin
christian authored Oct 28, 2008
46 Rake::RDocTask.new(:rdoc) do |rdoc|
47 rdoc.rdoc_dir = 'rdoc'
698da95 @grimen Adding a standard Rakefile with support for gemspec generation using …
authored Sep 25, 2009
48 rdoc.title = NAME
49 rdoc.options << '--line-numbers' << '--inline-source' << '--charset=UTF-8'
50 rdoc.rdoc_files.include(SUPPORT_FILES)
51 rdoc.rdoc_files.include(File.join('lib', '**', '*.rb'))
52 end
Something went wrong with that request. Please try again.