Changeset 411

Show
Ignore:
Timestamp:
08/12/07 20:44:12 (1 year ago)
Author:
rogelio.samo..@gmail.com
Message:

- More references to the 'dist' are now removed. Closes #123 [ivey@gweezlebur.com]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r398 r411  
    247247=== Helpers 
    248248 
    249 dist/app/helpers/global_helper.rb will be available to all of your views. 
     249app/helpers/global_helper.rb will be available to all of your views. 
    250250 Helpers named after your controller plus _helper.rb will be included in the views 
    251251 for that controller only. 
     
    254254 
    255255right now you add your routes in 
    256 the appdir/dist/conf/router.rb file. So by default it runs on port 4000 
     256the appdir/conf/router.rb file. So by default it runs on port 4000 
    257257 
    258258        $ cd /path/to/your/merb/app 
  • trunk/Rakefile

    r403 r411  
    1919CLEAN.include ['**/.*.sw?', '*.gem', '.config'] 
    2020 
    21 setup_clean [ "pkg", "lib/*.bundle", "*.gem",  
    22             "doc", ".config", "examples/sample_app/dist/public/files/**/*", 'examples/sample_app/log/*', 'coverage'] 
     21setup_clean [ "pkg", "lib/*.bundle", "*.gem", "doc", ".config", 'coverage'] 
    2322 
    2423 
  • trunk/examples/skeleton/conf/merb.yml

    r366 r411  
    2929 
    3030# Uncomment to use the merb upload progress 
    31 #:config: dist/conf/upload.conf 
     31#:config: conf/upload.conf 
    3232 
    3333# Uncomment to cache templates in dev mode. Templates are cached 
  • trunk/examples/skeleton/script/new_migration

    r258 r411  
    1414 
    1515class_name = ARGV[0] 
    16 highest_migration = Dir[Dir.pwd+'/dist/schema/migrations/*'].map{|f| File.basename(f) =~ /^(\d+)/; $1}.max 
     16highest_migration = Dir[Dir.pwd+'/schema/migrations/*'].map{|f| File.basename(f) =~ /^(\d+)/; $1}.max 
    1717filename = format("%03d_%s", (highest_migration.to_i+1), class_name.snake_case) 
    1818 
    19 File.open(Dir.pwd+"/dist/schema/migrations/#{filename}.rb", 'w+') do |file| 
     19File.open(Dir.pwd+"/schema/migrations/#{filename}.rb", 'w+') do |file| 
    2020  file.write Erubis::Eruby.new(TMPL).result(binding) 
    2121end 
  • trunk/lib/merb/mail_controller.rb

    r401 r411  
    3232    # 
    3333    # First of all, you'll need to store email files in your 
    34     # dist/app/mailers/views directory. They should be under a directory that 
     34    # app/mailers/views directory. They should be under a directory that 
    3535    # matches the name of your mailer (e.g. TestMailer's views would be stored 
    3636    # under test_mailer). 
  • trunk/lib/merb/server.rb

    r399 r411  
    134134        # We need to reload the options that exist in the App's merb.yml 
    135135        # This is needed when one calls merb NOT from the merb_app ROOT 
    136         # like so: merb --merb-config /path/to/dist/conf/merb.yml -m /path/to/merb/app 
     136        # like so: merb --merb-config /path/to/conf/merb.yml -m /path/to/merb/app 
    137137        # or if we add :merb_root: /path/to/merb/app in the merb.yml we can now only call it  
    138         # like so: merb --merb-config /path/to/dist/conf/merb.yml 
     138        # like so: merb --merb-config /path/to/conf/merb.yml 
    139139        if options[:merb_config] 
    140140          # Check and see if an environment has been set through the CLI 
     
    325325        puts "Starting merb drb server on port: #{port}" 
    326326        require 'merb/merb_drb_server' 
    327         drb_init = File.join(@@merb_opts[:merb_root], "/dist/conf/merb_drb_init") 
     327        drb_init = File.join(@@merb_opts[:merb_root], "/conf/merb_drb_init") 
    328328        require drb_init if File.exist?(drb_init) 
    329329        DRb.start_service("druby://#{@@merb_opts[:host]}:#{port}", Merb::DrbServiceProvider) 
  • trunk/lib/tasks/db.rake

    r321 r411  
    77  Merb::Server.config[:environment] = ENV['MERB_ENV'] if ENV['MERB_ENV'] 
    88  MERB_ENV  = Merb::Server.config[:environment].nil? ? 'development' : Merb::Server.config[:environment] 
    9   load MERB_ROOT+'/dist/conf/merb_init.rb' 
     9  load MERB_ROOT+'/conf/merb_init.rb' 
    1010end 
    1111 
    1212namespace :db do 
    13   desc "Migrate the database through scripts in dist/schema/migrate. Target specific version with VERSION=x" 
     13  desc "Migrate the database through scripts in schema/migrate. Target specific version with VERSION=x" 
    1414  task :migrate => :merb_env do 
    15     ActiveRecord::Migrator.migrate("dist/schema/migrations/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) 
     15    ActiveRecord::Migrator.migrate("schema/migrations/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) 
    1616    Rake::Task["db:schema:dump"].invoke 
    1717  end 
     
    2121    task :dump => :merb_env do 
    2222      require 'active_record/schema_dumper' 
    23       File.open(ENV['SCHEMA'] || "dist/schema/schema.rb", "w") do |file| 
     23      File.open(ENV['SCHEMA'] || "schema/schema.rb", "w") do |file| 
    2424        ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file) 
    2525      end 
     
    2828    desc "Load a schema.rb file into the database" 
    2929    task :load => :merb_env do 
    30       file = ENV['SCHEMA'] || "dist/schema/schema.rb" 
     30      file = ENV['SCHEMA'] || "schema/schema.rb" 
    3131      load(file) 
    3232    end 
  • trunk/lib/tasks/merb.rake

    r410 r411  
    22  script_filepath = MERB_ROOT / 'script/merb' 
    33  FileUtils.rm script_filepath if File.exist? script_filepath 
    4   tmpl = "#!/usr/bin/env ruby\nrequire File.expand_path(File.dirname(__FILE__)+'/../dist/framework/merb/merb_server')\nMerb::Server.run\n" 
     4  tmpl = "#!/usr/bin/env ruby\nrequire File.expand_path(File.dirname(__FILE__)+'/../framework/merb/merb_server')\nMerb::Server.run\n" 
    55  File.open(script_filepath, 'wb') {|f| 
    66    f.write tmpl  
     
    1010 
    1111namespace :merb do 
    12   desc "freeze the merb framework into dist/merb for portability" 
     12  desc "freeze the merb framework into merb for portability" 
    1313  task :freeze do 
    14     FileUtils.rm_rf MERB_ROOT / 'dist/framework' 
    15     FileUtils.cp_r MERB_FRAMEWORK_ROOT, (MERB_ROOT / 'dist/framework') 
     14    FileUtils.rm_rf MERB_ROOT / 'framework' 
     15    FileUtils.cp_r MERB_FRAMEWORK_ROOT, (MERB_ROOT / 'framework') 
    1616    install_merb_script 
    1717     
    18     puts "  Freezing Merb Framework into dist/framework" 
     18    puts "  Freezing Merb Framework into framework" 
    1919    puts "  Use script/merb to start instead of plain merb" 
    2020  end 
    2121  desc "unfreeze this app from the framework and use system gem." 
    2222  task :unfreeze do 
    23     FileUtils.rm_rf MERB_ROOT / 'dist/framework' 
     23    FileUtils.rm_rf MERB_ROOT / 'framework' 
    2424    FileUtils.rm MERB_ROOT / 'script/merb' 
    2525     
    2626    puts "  Removed: " 
    27     puts "   - #{MERB_ROOT / 'dist/framework'} (recursive) " 
     27    puts "   - #{MERB_ROOT / 'framework'} (recursive) " 
    2828    puts "   - #{MERB_ROOT / 'script/merb'}" 
    2929  end 
     
    3131  desc "freeze the merb framework from svn" 
    3232  task :freeze_from_svn do 
    33     install_path = MERB_ROOT / 'dist/framework' 
     33    install_path = MERB_ROOT / 'framework' 
    3434    puts "  Removing old framework" if File.exist? install_path 
    3535    FileUtils.rm_rf install_path 
     
    4040     
    4141    puts "  Use script/merb to start instead of plain merb" 
    42     tmpl = "#!/usr/local/bin/ruby\nrequire File.expand_path(File.dirname(__FILE__)+'/../dist/framework/merb/merb_server')\nMerb::Server.run\n" 
     42    tmpl = "#!/usr/local/bin/ruby\nrequire File.expand_path(File.dirname(__FILE__)+'/../framework/merb/merb_server')\nMerb::Server.run\n" 
    4343    File.open(MERB_ROOT / 'script/merb', 'wb') {|f| 
    4444      f.write tmpl