forked from trailblazer/cells
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
78 lines (66 loc) · 2.03 KB
/
Rakefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# encoding: utf-8
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require File.join(File.dirname(__FILE__), 'lib', 'cells', 'version')
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the cells plugin.'
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
desc 'Generate documentation for the cells plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Cells Documentation'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('init.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# rdoc -m "README.rdoc" init.rb lib/ generators/ README.rdoc
# Gem managment tasks.
#
# == Bump gem version (any):
#
# rake version:bump:major
# rake version:bump:minor
# rake version:bump:patch
#
# == Generate gemspec, build & install locally:
#
# rake gemspec
# rake build
# sudo rake install
#
# == Git tag & push to origin/master
#
# rake release
#
# == Release to Gemcutter.org:
#
# rake gemcutter:release
#
begin
gem 'jeweler'
require 'jeweler'
Jeweler::Tasks.new do |spec|
spec.name = "cells"
spec.version = ::Cells::VERSION
spec.summary = %{Cells are lightweight controllers for Rails and can be rendered in controllers and views, providing an elegant and fast way for encapsulation and component-orientation.}
spec.description = spec.summary
spec.homepage = "http://cells.rubyforge.org"
spec.authors = ["Nick Sutterer"]
spec.email = "apotonick@gmail.com"
spec.files = FileList["[A-Z]*", File.join(*%w[{lib,rails,rails_generators} ** *]).to_s]
# spec.add_dependency 'activesupport', '>= 2.3.0' # Dependencies and minimum versions?
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler - or one of its dependencies - is not available. " <<
"Install it with: sudo gem install jeweler -s http://gemcutter.org"
end