From ec03a601811587dd4265667aadd50c101c23b116 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Fri, 18 Feb 2005 23:55:29 +0000 Subject: rename entire package to Action Web Service git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../googlesearch/autoloading/google_search_api.rb | 8 ++++---- .../googlesearch/delegated/google_search_service.rb | 10 +++++----- .../examples/googlesearch/direct/google_search_api.rb | 8 ++++---- actionwebservice/examples/metaWeblog/README | 16 ++-------------- actionwebservice/examples/metaWeblog/blog_controller.rb | 10 +++++----- 5 files changed, 20 insertions(+), 32 deletions(-) (limited to 'actionwebservice/examples') diff --git a/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb b/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb index e7e33a1105..ed69fed7bc 100644 --- a/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb +++ b/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb @@ -1,9 +1,9 @@ -class DirectoryCategory < ActionService::Struct +class DirectoryCategory < ActionWebService::Struct member :fullViewableName, :string member :specialEncoding, :string end -class ResultElement < ActionService::Struct +class ResultElement < ActionWebService::Struct member :summary, :string member :URL, :string member :snippet, :string @@ -15,7 +15,7 @@ class ResultElement < ActionService::Struct member :directoryTitle, :string end -class GoogleSearchResult < ActionService::Struct +class GoogleSearchResult < ActionWebService::Struct member :documentFiltering, :bool member :searchComments, :string member :estimatedTotalResultsCount, :int @@ -29,7 +29,7 @@ class GoogleSearchResult < ActionService::Struct member :searchTime, :float end -class GoogleSearchAPI < ActionService::API::Base +class GoogleSearchAPI < ActionWebService::API::Base inflect_names false api_method :doGetCachedPage, :returns => [:string], :expects => [{:key=>:string}, {:url=>:string}] diff --git a/actionwebservice/examples/googlesearch/delegated/google_search_service.rb b/actionwebservice/examples/googlesearch/delegated/google_search_service.rb index da7f8f4529..ade354d89d 100644 --- a/actionwebservice/examples/googlesearch/delegated/google_search_service.rb +++ b/actionwebservice/examples/googlesearch/delegated/google_search_service.rb @@ -1,9 +1,9 @@ -class DirectoryCategory < ActionService::Struct +class DirectoryCategory < ActionWebService::Struct member :fullViewableName, :string member :specialEncoding, :string end -class ResultElement < ActionService::Struct +class ResultElement < ActionWebService::Struct member :summary, :string member :URL, :string member :snippet, :string @@ -15,7 +15,7 @@ class ResultElement < ActionService::Struct member :directoryTitle, :string end -class GoogleSearchResult < ActionService::Struct +class GoogleSearchResult < ActionWebService::Struct member :documentFiltering, :bool member :searchComments, :string member :estimatedTotalResultsCount, :int @@ -29,7 +29,7 @@ class GoogleSearchResult < ActionService::Struct member :searchTime, :float end -class GoogleSearchAPI < ActionService::API::Base +class GoogleSearchAPI < ActionWebService::API::Base inflect_names false api_method :doGetCachedPage, :returns => [:string], :expects => [{:key=>:string}, {:url=>:string}] @@ -49,7 +49,7 @@ class GoogleSearchAPI < ActionService::API::Base ] end -class GoogleSearchService < ActionService::Base +class GoogleSearchService < ActionWebService::Base web_service_api GoogleSearchAPI def doGetCachedPage(key, url) diff --git a/actionwebservice/examples/googlesearch/direct/google_search_api.rb b/actionwebservice/examples/googlesearch/direct/google_search_api.rb index e7e33a1105..ed69fed7bc 100644 --- a/actionwebservice/examples/googlesearch/direct/google_search_api.rb +++ b/actionwebservice/examples/googlesearch/direct/google_search_api.rb @@ -1,9 +1,9 @@ -class DirectoryCategory < ActionService::Struct +class DirectoryCategory < ActionWebService::Struct member :fullViewableName, :string member :specialEncoding, :string end -class ResultElement < ActionService::Struct +class ResultElement < ActionWebService::Struct member :summary, :string member :URL, :string member :snippet, :string @@ -15,7 +15,7 @@ class ResultElement < ActionService::Struct member :directoryTitle, :string end -class GoogleSearchResult < ActionService::Struct +class GoogleSearchResult < ActionWebService::Struct member :documentFiltering, :bool member :searchComments, :string member :estimatedTotalResultsCount, :int @@ -29,7 +29,7 @@ class GoogleSearchResult < ActionService::Struct member :searchTime, :float end -class GoogleSearchAPI < ActionService::API::Base +class GoogleSearchAPI < ActionWebService::API::Base inflect_names false api_method :doGetCachedPage, :returns => [:string], :expects => [{:key=>:string}, {:url=>:string}] diff --git a/actionwebservice/examples/metaWeblog/README b/actionwebservice/examples/metaWeblog/README index f8a56d7018..0550b06623 100644 --- a/actionwebservice/examples/metaWeblog/README +++ b/actionwebservice/examples/metaWeblog/README @@ -8,21 +8,9 @@ blogging application. = Running - 1. Ensure you have the 'actionservice' Gem installed. You can generate it using - this command: + 1. Copy blog_controller.rb to "app/controllers" in a Rails project. - $ rake package - - 2. Edit config/environment.rb, and add the following line after the rest of the - require_gem statements: - - require_gem 'actionservice' - - - 3. Copy blog_controller.rb to "app/controllers" in a Rails project. - - - 4. Fire up a desktop blogging application (such as BloGTK on Linux), + 2. Fire up a desktop blogging application (such as BloGTK on Linux), point it at http://localhost:3000/blog/api, and try creating or editing blog posts. diff --git a/actionwebservice/examples/metaWeblog/blog_controller.rb b/actionwebservice/examples/metaWeblog/blog_controller.rb index aff2e909ea..e575203311 100644 --- a/actionwebservice/examples/metaWeblog/blog_controller.rb +++ b/actionwebservice/examples/metaWeblog/blog_controller.rb @@ -4,18 +4,18 @@ # structures as defined by the metaWeblog/blogger # specifications. module Blog - class Enclosure < ActionService::Struct + class Enclosure < ActionWebService::Struct member :url, :string member :length, :int member :type, :string end - class Source < ActionService::Struct + class Source < ActionWebService::Struct member :url, :string member :name, :string end - class Post < ActionService::Struct + class Post < ActionWebService::Struct member :title, :string member :link, :string member :description, :string @@ -28,7 +28,7 @@ module Blog member :source, Source end - class Blog < ActionService::Struct + class Blog < ActionWebService::Struct member :url, :string member :blogid, :string member :blogName, :string @@ -36,7 +36,7 @@ module Blog end # skeleton metaWeblog API -class MetaWeblogAPI < ActionService::API::Base +class MetaWeblogAPI < ActionWebService::API::Base inflect_names false api_method :newPost, :returns => [:string], :expects => [ -- cgit v1.2.3