public
Description: A Rails plugin to use open_flash_chart version 2
Homepage: http://ofcl.onrails.com.ar/
Clone URL: git://github.com/peterpunk/open_flash_chart_lazy.git
100644 44 lines (38 sloc) 1.215 kb
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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the open_flash_chart_lazy plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the open_flash_chart_lazy plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'OpenFlashChartLazy'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
 
spec = Gem::Specification.new do |s|
  s.name = "OpenFlashChartLazy"
  s.version = "0.0.1"
  s.author = "Pedro Visintin"
  s.email = "pedro.visintin@gmail.com"
  s.homepage = "http://blogs.onrails.com.ar/plugins/"
  s.platform = Gem::Platform::RUBY
  s.summary = "A ruby implementation of OpenFlashChart"
  s.files = FileList["{bin,lib}/**/*"].to_a
  s.require_path = "lib"
  s.test_files = FileList["{test}/**/*test.rb"].to_a
  s.has_rdoc = true
  #s.extra_rdoc_files = ["README"]
  #s.add_dependency("dependency", ">= 0.x.x")
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_tar = true
end