-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
70 lines (63 loc) · 2.28 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
# encoding: UTF-8
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require File.join(File.dirname(__FILE__), 'lib', 'a_la_chart', 'version')
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "a_la_chart"
s.version = ALaChart::VERSION.dup
s.rubyforge_project = "a_la_chart"
s.summary = "a La Chart manages various types of charting implementations - from grabbing the data, to declaring how those values are mapped to the desired type of chart (pie, line, bar, etc)."
s.email = "eric.redmond@gmail.com"
s.homepage = "http://github.com/mobi/a_la_chart"
s.description = "A framework for managing various types of charting implementations."
s.authors = ['Eric Redmond']
s.files = FileList["[A-Z]*", "init.rb", "{lib}/**/*", "configs/**/*"]
s.add_dependency("responders", "~> 0.6.0")
s.add_dependency("has_scope", "~> 0.5.0")
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end
desc 'Run tests for ALaChart.'
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for ALaChart.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ALaChart'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('MIT-LICENSE')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# require 'rubygems'
# gem 'hoe', '>= 2.1.0'
# require 'hoe'
# require 'fileutils'
# # require './lib/a_la_chart'
#
# Hoe.plugin :newgem
# # Hoe.plugin :website
# # Hoe.plugin :cucumberfeatures
#
# # Generate all the Rake tasks
# # Run 'rake -T' to see list of generated tasks (from gem root directory)
# $hoe = Hoe.spec 'a_la_chart' do
# self.developer 'Eric Redmond', 'eric.redmond@gmail.com'
# self.rubyforge_name = self.name # TODO this is default value
# # self.extra_deps = [['activesupport','>= 2.0.2']]
#
# end
#
# # require 'newgem/tasks'
# # Dir['tasks/**/*.rake'].each { |t| load t }
#
# # TODO - want other tests/tasks run by default? Add them to the list
# # remove_task :default
# # task :default => [:spec, :features]