Rakefile in restfulx-1.2.5 vs Rakefile in restfulx-1.3.0

- old
+ new

@@ -3,29 +3,44 @@ begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "restfulx" gem.summary = "RestfulX Framework Code Generation Engine / Rails 2.1+ Integration Support" + gem.description = "RestfulX: The RESTful Way to develop Adobe Flex and AIR applications" gem.email = "dima.berastau@gmail.com" gem.homepage = "http://restfulx.org" gem.rubyforge_project = "restfulx" gem.authors = ["Dima Berastau"] gem.files = FileList["[A-Z]*", "{bin,app_generators,rails_generators,rxgen_generators,lib,test,spec,tasks}/**/*"] gem.files.exclude 'test/**/*.log', 'test/**/*.sqlite3' gem.test_files.exclude 'test/**/*.log', 'test/**/*.sqlite3' - gem.add_dependency('rubigen', '>= 1.5.0') + gem.add_dependency('rubigen', '>= 1.5.2') gem.add_dependency('activesupport', '>=2.0.0') end + + Jeweler::RubyforgeTasks.new do |rubyforge| + rubyforge.doc_task = "rdoc" + end rescue LoadError puts "jeweler not available. Install it with: sudo gem install jeweler" end +require 'rake/extensiontask' +Rake::ExtensionTask.new do |ext| + ext.name = 'serializer' + ext.gem_spec = Rake.application.jeweler_tasks.gemspec + # ext.cross_compile = true + # ext.cross_platform = %w[i386-mswin32 i386-mingw32] + ext.ext_dir = 'ext/restfulx/ext/amf/serializer' + ext.lib_dir = 'lib/restfulx/amf/ext' +end + require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| config = YAML.load(File.read('VERSION.yml')) rdoc.rdoc_dir = 'doc/api' rdoc.title = "RestfulX #{config[:major]}.#{config[:minor]}.#{config[:patch]}" - rdoc.options << '--line-numbers' << '--inline-source' #<< '-Tjamis' + rdoc.options << '--line-numbers' << '--inline-source' # << '-Tjamis' rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end begin