Changeset 462

Show
Ignore:
Timestamp:
10/03/08 10:56:35 (7 weeks ago)
Author:
deveiant
Message:
  • Updated build system
  • Fixed the formvalidator log message in Arrow::Applet.
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Rakefile

    r459 r462  
    3535### Config constants 
    3636BASEDIR       = Pathname.new( __FILE__ ).dirname.relative_path_from( Pathname.getwd ) 
     37BINDIR        = BASEDIR + 'bin' 
    3738LIBDIR        = BASEDIR + 'lib' 
    3839EXTDIR        = BASEDIR + 'ext' 
     
    4041PKGDIR        = BASEDIR + 'pkg' 
    4142 
    42 PKG_NAME      = 'arrow' 
     43PROJECT_NAME  = 'Arrow' 
     44PKG_NAME      = PROJECT_NAME.downcase 
    4345PKG_SUMMARY   = 'A mod_ruby web application framework' 
    4446VERSION_FILE  = LIBDIR + 'arrow.rb' 
     
    5052 
    5153TEXT_FILES    = %w( Rakefile ChangeLog README LICENSE ).collect {|filename| BASEDIR + filename } 
     54BIN_FILES     = Pathname.glob( BINDIR + '*' ).delete_if {|item| item =~ /\.svn/ } 
    5255LIB_FILES     = Pathname.glob( LIBDIR + '**/*.rb' ).delete_if {|item| item =~ /\.svn/ } 
    5356EXT_FILES     = Pathname.glob( EXTDIR + '**/*.{c,h,rb}' ).delete_if {|item| item =~ /\.svn/ } 
    5457 
    5558SPECDIR       = BASEDIR + 'spec' 
    56 SPEC_FILES    = Pathname.glob( SPECDIR + '**/*_spec.rb' ).delete_if {|item| item =~ /\.svn/ } 
     59SPECLIBDIR    = SPECDIR + 'lib' 
     60SPEC_FILES    = Pathname.glob( SPECDIR + '**/*_spec.rb' ).delete_if {|item| item =~ /\.svn/ } + 
     61                Pathname.glob( SPECLIBDIR + '**/*.rb' ).delete_if {|item| item =~ /\.svn/ } 
    5762 
    5863TESTDIR       = BASEDIR + 'tests' 
     
    7176    SPEC_FILES +  
    7277    TEST_FILES +  
     78    BIN_FILES + 
    7379    LIB_FILES +  
    7480    EXT_FILES +  
     
    110116 
    111117# Documentation constants 
     118RDOCDIR = DOCSDIR + 'api' 
    112119RDOC_OPTIONS = [ 
    113120    '-w', '4', 
     
    140147} 
    141148 
     149# Developer Gem dependencies: gemname => version 
     150DEVELOPMENT_DEPENDENCIES = { 
     151    'amatch'      => '>= 0.2.3', 
     152    'rake'        => '>= 0.8.1', 
     153    'rcodetools'  => '>= 0.7.0.0', 
     154    'rcov'        => '>= 0', 
     155    'RedCloth'    => '>= 4.0.3', 
     156    'rspec'       => '>= 0', 
     157    'rubyforge'   => '>= 0', 
     158    'termios'     => '>= 0', 
     159    'text-format' => '>= 1.0.0', 
     160    'tmail'       => '>= 1.2.3.1', 
     161    'ultraviolet' => '>= 0.10.2', 
     162    'libxml-ruby' => '>= 0.8.3', 
     163} 
     164 
    142165# Non-gem requirements: packagename => version 
    143166REQUIREMENTS = { 
     
    165188    gem.has_rdoc          = true 
    166189    gem.rdoc_options      = RDOC_OPTIONS 
     190 
     191    gem.bindir            = BINDIR.relative_path_from(BASEDIR).to_s 
     192     
    167193 
    168194    gem.files             = RELEASE_FILES. 
     
    173199    DEPENDENCIES.each do |name, version| 
    174200        version = '>= 0' if version.length.zero? 
    175         gem.add_dependency( name, version ) 
     201        gem.add_runtime_dependency( name, version ) 
     202    end 
     203     
     204    # Developmental dependencies don't work as of RubyGems 1.2.0 
     205    unless Gem::Version.new( Gem::RubyGemsVersion ) <= Gem::Version.new( "1.2.0" ) 
     206        DEVELOPMENT_DEPENDENCIES.each do |name, version| 
     207            version = '>= 0' if version.length.zero? 
     208            gem.add_development_dependency( name, version ) 
     209        end 
    176210    end 
    177211     
     
    180214    end 
    181215end 
     216 
     217# Manual-generation config 
     218MANUALDIR = DOCSDIR + 'manual' 
    182219 
    183220$trace = Rake.application.options.trace ? true : false 
     
    236273### Task: cruise (Cruisecontrol task) 
    237274desc "Cruisecontrol build" 
    238 task :cruise => [:clean, :spec, :package] do |task| 
     275task :cruise => [:clean, 'spec:quiet', :package] do |task| 
    239276    raise "Artifacts dir not set." if ARTIFACTS_DIR.to_s.empty? 
    240277    artifact_dir = ARTIFACTS_DIR.cleanpath 
  • trunk/lib/arrow/applet.rb

    r452 r462  
    690690        # Create a new validator object, map the request args into a regular 
    691691        # hash, and then send them to the validaator with the applicable profile 
    692         self.log.debug "Creating form validator for profile: %p" % profile 
     692        self.log.debug "Creating form validator for profile: %p" % [ profile ] 
    693693 
    694694        params = {} 
  • trunk/project.yml

    r460 r462  
    2121- applets/**/*.rb 
    2222- docs/manual/** 
     23dev_dependencies: {} 
     24 
    2325author_email: ged@FaerieMUD.org