Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6550

Show
Ignore:
Timestamp:
04/23/07 18:55:54 (1 year ago)
Author:
david
Message:

Include Active Resource instead of Action Web Service [DHH]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activeresource/lib/active_resource/version.rb

    r4492 r6550  
    22  module VERSION #:nodoc: 
    33    MAJOR = 0 
    4     MINOR = 5 
     4    MINOR = 9 
    55    TINY  = 0 
    66 
  • trunk/activeresource/Rakefile

    r5747 r6550  
    5656  s.name = PKG_NAME 
    5757  s.version = PKG_VERSION 
    58   s.summary = "Implements the ActiveRecord pattern for ORM." 
    59   s.description = %q{Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.} 
     58  s.summary = "Think Active Record for web resources." 
     59  s.description = %q{Wraps web resources in model classes that can be manipulated through XML over REST.} 
    6060 
    6161  s.files = [ "Rakefile", "install.rb", "README", "RUNNING_UNIT_TESTS", "CHANGELOG" ] 
     
    6464  end 
    6565   
    66   s.add_dependency('activesupport', '= 1.3.1' + PKG_BUILD) 
     66  s.add_dependency('activesupport', '= 1.4.2' + PKG_BUILD) 
    6767 
    68   s.files.delete "test/fixtures/fixture_database.sqlite" 
    69   s.files.delete "test/fixtures/fixture_database_2.sqlite" 
    70   s.files.delete "test/fixtures/fixture_database.sqlite3" 
    71   s.files.delete "test/fixtures/fixture_database_2.sqlite3" 
    7268  s.require_path = 'lib' 
    73   s.autorequire = 'active_record
     69  s.autorequire = 'active_resource
    7470 
    7571  s.has_rdoc = true 
     
    8076  s.email = "david@loudthinking.com" 
    8177  s.homepage = "http://www.rubyonrails.org" 
    82   s.rubyforge_project = "activerecord
     78  s.rubyforge_project = "activeresource
    8379end 
    8480   
     
    9288  lines, codelines, total_lines, total_codelines = 0, 0, 0, 0 
    9389 
    94   for file_name in FileList["lib/active_record/**/*.rb"] 
     90  for file_name in FileList["lib/active_resource/**/*.rb"] 
    9591    next if file_name =~ /vendor/ 
    9692    f = File.open(file_name) 
  • trunk/pushgems.rb

    r5087 r6550  
    55end 
    66 
    7 %w( actionwebservice actionmailer actionpack activerecord railties activesupport ).each do |pkg| 
     7%w( activeresource actionmailer actionpack activerecord railties activesupport ).each do |pkg| 
    88  puts "Pushing: #{pkg} (#{build_number})" 
    99  if build_number 
  • trunk/railties/CHANGELOG

    r6470 r6550  
    11*SVN* 
     2 
     3* Include Active Resource instead of Action Web Service [DHH] You can add AWS back with this in config/environment.rb: 
     4 
     5    config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/actionwebservice/lib ) 
     6   
     7  ...or just gem 'actionwebservice' 
    28 
    39* Give generate scaffold a more descriptive database message.  Closes #7316 [jeremymcanally] 
  • trunk/railties/environments/environment.rb

    r6224 r6550  
    1515   
    1616  # Skip frameworks you're not going to use (only works if using vendor/rails) 
    17   # config.frameworks -= [ :action_web_service, :action_mailer ] 
     17  # config.frameworks -= [ :active_resource, :action_mailer ] 
    1818 
    1919  # Only load the plugins named here, by default all plugins in vendor/plugins are loaded 
  • trunk/railties/lib/initializer.rb

    r6531 r6550  
    2424  # 
    2525  #   Rails::Initializer.run do |config| 
    26   #     config.frameworks -= [ :action_web_service
     26  #     config.frameworks -= [ :action_mailer
    2727  #   end 
    2828  # 
     
    380380    attr_accessor :action_view 
    381381 
    382     # A stub for setting options on ActionWebService::Base 
    383     attr_accessor :action_web_service 
    384  
    385382    # A stub for setting options on ActiveRecord::Base 
    386383    attr_accessor :active_record 
     384 
     385    # A stub for setting options on ActiveRecord::Base 
     386    attr_accessor :active_resource 
    387387 
    388388    # Whether or not to use the breakpoint server (boolean) 
     
    561561        activesupport/lib 
    562562        activerecord/lib 
     563        activeresource/lib 
    563564        actionmailer/lib 
    564         actionwebservice/lib 
    565565      ).map { |dir| "#{framework_root_path}/#{dir}" }.select { |dir| File.directory?(dir) } 
    566566    end 
     
    572572 
    573573      def default_frameworks 
    574         [ :active_record, :action_controller, :action_view, :action_mailer, :action_web_service ] 
     574        [ :active_record, :action_controller, :action_view, :action_mailer, :active_resource ] 
    575575      end 
    576576 
     
    591591          app/helpers 
    592592          app/services 
    593           app/apis 
    594593          components 
    595594          config 
  • trunk/railties/Rakefile

    r6548 r6550  
    314314  s.add_dependency('actionpack',       '= 1.13.3' + PKG_BUILD) 
    315315  s.add_dependency('actionmailer',     '= 1.3.3' + PKG_BUILD) 
    316   s.add_dependency('actionwebservice', '= 1.2.3' + PKG_BUILD) 
     316  s.add_dependency('actionresource',   '= 0.9.0' + PKG_BUILD) 
    317317 
    318318  s.rdoc_options << '--exclude' << '.'