Sha256: d531d6083645471f40d6a54b4130729e02bcbd8514dc405ae936ddf0db3e0fca
Contents?: true
Size: 1.95 KB
Versions: 2
Compression:
Stored size: 1.95 KB
Contents
require 'rubygems' require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "as_new-san" s.homepage = "http://github.com/Fingertips/as_new-san" s.email = "eloy.de.enige@gmail.com" s.authors = ["Eloy Duran"] s.summary = "A simple plugin which allows you to create records in the database, but treat them as if they were new records." s.files = FileList['**/**'] # tmp until we've patched Jeweler to be able to easily add files to defaults s.description = %{ The AsNewSan mixin makes it easier to create associations on a new Active Record instance. Use the as_new method to instantiate new empty objects that are immediately saved to the database with a special flag marking them as new. Because new instances are already stored in the database, you always have an id available for creating associations. This means you can use the same views and controller logic for new and edit actions which is especially helpful when you are creating new associated objects using Ajax calls. } end begin require 'jewelry_portfolio/tasks' JewelryPortfolio::Tasks.new do |p| p.account = 'Fingertips' end rescue LoadError puts "JewelryPortfolio not available. Install it with: sudo gem install Fingertips-jewelry_portfolio -s http://gems.github.com" end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'AsNewSan' rdoc.options << '--line-numbers' << '--inline-source' << '--charset=utf-8' rdoc.rdoc_files.include('README*', 'LICENSE') rdoc.rdoc_files.include('lib/**/*.rb') end require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = false end task :default => :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
Fingertips-as_new-san-0.1.1 | Rakefile |
Fingertips-as_new-san-0.2 | Rakefile |