aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activeresource/Rakefile18
-rw-r--r--activeresource/lib/active_resource/version.rb2
-rwxr-xr-xpushgems.rb2
-rw-r--r--railties/CHANGELOG6
-rw-r--r--railties/Rakefile2
-rw-r--r--railties/environments/environment.rb2
-rw-r--r--railties/lib/initializer.rb15
7 files changed, 24 insertions, 23 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile
index 033789481e..69221bed18 100644
--- a/activeresource/Rakefile
+++ b/activeresource/Rakefile
@@ -55,22 +55,18 @@ dist_dirs = [ "lib", "test", "examples", "dev-utils" ]
spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
- s.summary = "Implements the ActiveRecord pattern for ORM."
- 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.}
+ s.summary = "Think Active Record for web resources."
+ s.description = %q{Wraps web resources in model classes that can be manipulated through XML over REST.}
s.files = [ "Rakefile", "install.rb", "README", "RUNNING_UNIT_TESTS", "CHANGELOG" ]
dist_dirs.each do |dir|
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
end
- s.add_dependency('activesupport', '= 1.3.1' + PKG_BUILD)
+ s.add_dependency('activesupport', '= 1.4.2' + PKG_BUILD)
- s.files.delete "test/fixtures/fixture_database.sqlite"
- s.files.delete "test/fixtures/fixture_database_2.sqlite"
- s.files.delete "test/fixtures/fixture_database.sqlite3"
- s.files.delete "test/fixtures/fixture_database_2.sqlite3"
s.require_path = 'lib'
- s.autorequire = 'active_record'
+ s.autorequire = 'active_resource'
s.has_rdoc = true
s.extra_rdoc_files = %w( README )
@@ -79,7 +75,7 @@ spec = Gem::Specification.new do |s|
s.author = "David Heinemeier Hansson"
s.email = "david@loudthinking.com"
s.homepage = "http://www.rubyonrails.org"
- s.rubyforge_project = "activerecord"
+ s.rubyforge_project = "activeresource"
end
Rake::GemPackageTask.new(spec) do |p|
@@ -91,7 +87,7 @@ end
task :lines do
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
- for file_name in FileList["lib/active_record/**/*.rb"]
+ for file_name in FileList["lib/active_resource/**/*.rb"]
next if file_name =~ /vendor/
f = File.open(file_name)
@@ -135,4 +131,4 @@ task :release => [ :package ] do
puts release_command
system(release_command)
end
-end
+end \ No newline at end of file
diff --git a/activeresource/lib/active_resource/version.rb b/activeresource/lib/active_resource/version.rb
index f4e3220932..29c6837af8 100644
--- a/activeresource/lib/active_resource/version.rb
+++ b/activeresource/lib/active_resource/version.rb
@@ -1,7 +1,7 @@
module ActiveResource
module VERSION #:nodoc:
MAJOR = 0
- MINOR = 5
+ MINOR = 9
TINY = 0
STRING = [MAJOR, MINOR, TINY].join('.')
diff --git a/pushgems.rb b/pushgems.rb
index 87c83ce864..9053e58dff 100755
--- a/pushgems.rb
+++ b/pushgems.rb
@@ -4,7 +4,7 @@ unless ARGV.first == "no_build"
build_number = build_number = `svn log -q -rhead http://dev.rubyonrails.org/svn/rails`.scan(/r([0-9]*)/).first.first.to_i
end
-%w( actionwebservice actionmailer actionpack activerecord railties activesupport ).each do |pkg|
+%w( activeresource actionmailer actionpack activerecord railties activesupport ).each do |pkg|
puts "Pushing: #{pkg} (#{build_number})"
if build_number
`cd #{pkg} && rm -rf pkg && PKG_BUILD=#{build_number} rake pgem && cd ..`
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 73378b9c4e..e607c0a2fc 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,5 +1,11 @@
*SVN*
+* Include Active Resource instead of Action Web Service [DHH] You can add AWS back with this in config/environment.rb:
+
+ config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/actionwebservice/lib )
+
+ ...or just gem 'actionwebservice'
+
* Give generate scaffold a more descriptive database message. Closes #7316 [jeremymcanally]
* Canonicalize RAILS_ROOT by using File.expand_path on Windows, which doesn't have to worry about symlinks, and Pathname#realpath elsewhere, which respects symlinks in relative paths but is incompatible with Windows. #6755 [Jeremy Kemper, trevor]
diff --git a/railties/Rakefile b/railties/Rakefile
index da79ea9963..598eabb396 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -313,7 +313,7 @@ spec = Gem::Specification.new do |s|
s.add_dependency('activerecord', '= 1.15.3' + PKG_BUILD)
s.add_dependency('actionpack', '= 1.13.3' + PKG_BUILD)
s.add_dependency('actionmailer', '= 1.3.3' + PKG_BUILD)
- s.add_dependency('actionwebservice', '= 1.2.3' + PKG_BUILD)
+ s.add_dependency('actionresource', '= 0.9.0' + PKG_BUILD)
s.rdoc_options << '--exclude' << '.'
s.has_rdoc = false
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index 05403ad88a..2e485a5738 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -14,7 +14,7 @@ Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those specified here
# Skip frameworks you're not going to use (only works if using vendor/rails)
- # config.frameworks -= [ :action_web_service, :action_mailer ]
+ # config.frameworks -= [ :active_resource, :action_mailer ]
# Only load the plugins named here, by default all plugins in vendor/plugins are loaded
# config.plugins = %W( exception_notification ssl_requirement )
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index b391be6acc..577a3c88f1 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -23,7 +23,7 @@ module Rails
# through the block running:
#
# Rails::Initializer.run do |config|
- # config.frameworks -= [ :action_web_service ]
+ # config.frameworks -= [ :action_mailer ]
# end
#
# This will use the default configuration options from Rails::Configuration,
@@ -379,12 +379,12 @@ module Rails
# A stub for setting options on ActionView::Base
attr_accessor :action_view
- # A stub for setting options on ActionWebService::Base
- attr_accessor :action_web_service
-
# A stub for setting options on ActiveRecord::Base
attr_accessor :active_record
+ # A stub for setting options on ActiveRecord::Base
+ attr_accessor :active_resource
+
# Whether or not to use the breakpoint server (boolean)
attr_accessor :breakpoint_server
@@ -560,8 +560,8 @@ module Rails
actionpack/lib
activesupport/lib
activerecord/lib
+ activeresource/lib
actionmailer/lib
- actionwebservice/lib
).map { |dir| "#{framework_root_path}/#{dir}" }.select { |dir| File.directory?(dir) }
end
@@ -571,7 +571,7 @@ module Rails
end
def default_frameworks
- [ :active_record, :action_controller, :action_view, :action_mailer, :action_web_service ]
+ [ :active_record, :action_controller, :action_view, :action_mailer, :active_resource ]
end
def default_load_paths
@@ -590,7 +590,6 @@ module Rails
app/controllers
app/helpers
app/services
- app/apis
components
config
lib
@@ -694,4 +693,4 @@ class Rails::OrderedOptions < Array #:nodoc:
self.each { |i| return i if i.first == key }
return false
end
-end
+end \ No newline at end of file