Permalink
Browse files

Added 'encoding: UTF-8' magic string to all *.rb files

  • Loading branch information...
1 parent 0a35602 commit c8071a522053fda2588a57de0eb7159096144477 @rubyjedi rubyjedi committed Jun 17, 2010
Showing with 70 additions and 3 deletions.
  1. +1 −0 examples/googlesearch/autoloading/google_search_api.rb
  2. +1 −0 examples/googlesearch/autoloading/google_search_controller.rb
  3. +1 −0 examples/googlesearch/delegated/google_search_service.rb
  4. +1 −0 examples/googlesearch/delegated/search_controller.rb
  5. +1 −0 examples/googlesearch/direct/google_search_api.rb
  6. +1 −0 examples/googlesearch/direct/search_controller.rb
  7. +1 −0 examples/metaWeblog/apis/blogger_api.rb
  8. +1 −0 examples/metaWeblog/apis/blogger_service.rb
  9. +1 −0 examples/metaWeblog/apis/meta_weblog_api.rb
  10. +1 −0 examples/metaWeblog/apis/meta_weblog_service.rb
  11. +1 −0 examples/metaWeblog/controllers/xmlrpc_controller.rb
  12. +1 −0 generators/web_service/templates/api_definition.rb
  13. +1 −0 generators/web_service/templates/controller.rb
  14. +1 −0 generators/web_service/templates/functional_test.rb
  15. +1 −0 generators/web_service/web_service_generator.rb
  16. +2 −1 init.rb
  17. +1 −0 install.rb
  18. +1 −0 lib/action_web_service.rb
  19. +2 −1 lib/action_web_service/acts_as_web_service.rb
  20. +1 −0 lib/action_web_service/api.rb
  21. +1 −0 lib/action_web_service/base.rb
  22. +1 −0 lib/action_web_service/casting.rb
  23. +1 −0 lib/action_web_service/client.rb
  24. +1 −0 lib/action_web_service/client/base.rb
  25. +1 −0 lib/action_web_service/client/soap_client.rb
  26. +1 −0 lib/action_web_service/client/xmlrpc_client.rb
  27. +1 −0 lib/action_web_service/container.rb
  28. +1 −0 lib/action_web_service/container/action_controller_container.rb
  29. +1 −0 lib/action_web_service/container/delegated_container.rb
  30. +1 −0 lib/action_web_service/container/direct_container.rb
  31. +1 −0 lib/action_web_service/dispatcher.rb
  32. +1 −0 lib/action_web_service/dispatcher/abstract.rb
  33. +1 −0 lib/action_web_service/dispatcher/action_controller_dispatcher.rb
  34. +1 −0 lib/action_web_service/invocation.rb
  35. +1 −0 lib/action_web_service/protocol.rb
  36. +1 −0 lib/action_web_service/protocol/abstract.rb
  37. +1 −0 lib/action_web_service/protocol/discovery.rb
  38. +1 −0 lib/action_web_service/protocol/soap_protocol.rb
  39. +1 −0 lib/action_web_service/protocol/soap_protocol/marshaler.rb
  40. +1 −0 lib/action_web_service/protocol/xmlrpc_protocol.rb
  41. +1 −0 lib/action_web_service/scaffolding.rb
  42. +2 −1 lib/action_web_service/simple.rb
  43. +1 −0 lib/action_web_service/string_to_datetime_for_soap.rb
  44. +1 −0 lib/action_web_service/struct.rb
  45. +1 −0 lib/action_web_service/support/class_inheritable_options.rb
  46. +1 −0 lib/action_web_service/support/signature_types.rb
  47. +1 −0 lib/action_web_service/test_invoke.rb
  48. +1 −0 lib/action_web_service/version.rb
  49. +1 −0 lib/actionwebservice.rb
  50. +1 −0 setup.rb
  51. +1 −0 test/abstract_client.rb
  52. +1 −0 test/abstract_dispatcher.rb
  53. +1 −0 test/abstract_unit.rb
  54. +1 −0 test/api_test.rb
  55. +1 −0 test/apis/auto_load_api.rb
  56. +1 −0 test/apis/broken_auto_load_api.rb
  57. +1 −0 test/base_test.rb
  58. +1 −0 test/casting_test.rb
  59. +1 −0 test/client_soap_test.rb
  60. +1 −0 test/client_xmlrpc_test.rb
  61. +1 −0 test/container_test.rb
  62. +1 −0 test/dispatcher_action_controller_soap_test.rb
  63. +1 −0 test/dispatcher_action_controller_xmlrpc_test.rb
  64. +1 −0 test/invocation_test.rb
  65. +1 −0 test/scaffolded_controller_test.rb
  66. +1 −0 test/struct_test.rb
  67. +1 −0 test/test_invoke_test.rb
View
1 examples/googlesearch/autoloading/google_search_api.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class DirectoryCategory < ActionWebService::Struct
member :fullViewableName, :string
member :specialEncoding, :string
View
1 examples/googlesearch/autoloading/google_search_controller.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class GoogleSearchController < ApplicationController
wsdl_service_name 'GoogleSearch'
View
1 examples/googlesearch/delegated/google_search_service.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class DirectoryCategory < ActionWebService::Struct
member :fullViewableName, :string
member :specialEncoding, :string
View
1 examples/googlesearch/delegated/search_controller.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'google_search_service'
class SearchController < ApplicationController
View
1 examples/googlesearch/direct/google_search_api.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class DirectoryCategory < ActionWebService::Struct
member :fullViewableName, :string
member :specialEncoding, :string
View
1 examples/googlesearch/direct/search_controller.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class SearchController < ApplicationController
web_service_api :google_search
wsdl_service_name 'GoogleSearch'
View
1 examples/metaWeblog/apis/blogger_api.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
#
# see the blogger API spec at http://www.blogger.com/developers/api/1_docs/
# note that the method signatures are subtly different to metaWeblog, they
View
1 examples/metaWeblog/apis/blogger_service.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'blogger_api'
class BloggerService < ActionWebService::Base
View
1 examples/metaWeblog/apis/meta_weblog_api.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
#
# here lie structures, cousins of those on http://www.xmlrpc.com/metaWeblog
# but they don't necessarily the real world reflect
View
1 examples/metaWeblog/apis/meta_weblog_service.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'meta_weblog_api'
class MetaWeblogService < ActionWebService::Base
View
1 examples/metaWeblog/controllers/xmlrpc_controller.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
#
# example controller implementing both blogger and metaWeblog APIs
# in a way that should be compatible with clients supporting both/either.
View
1 generators/web_service/templates/api_definition.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class <%= class_name %>Api < ActionWebService::API::Base
<% for method_name in args -%>
api_method :<%= method_name %>
View
1 generators/web_service/templates/controller.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class <%= class_name %>Controller < ApplicationController
wsdl_service_name '<%= class_name %>'
<% for method_name in args -%>
View
1 generators/web_service/templates/functional_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
require '<%= file_path %>_controller'
View
1 generators/web_service/web_service_generator.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class WebServiceGenerator < Rails::Generator::NamedBase
def manifest
record do |m|
View
3 init.rb
@@ -1 +1,2 @@
-require 'action_web_service'
+# encoding: UTF-8
+require 'action_web_service'
View
1 install.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'rbconfig'
require 'find'
View
1 lib/action_web_service.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
#--
# Copyright (C) 2005 Leon Breedt
#
View
3 lib/action_web_service/acts_as_web_service.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService
module ActsAsWebService
@@ -21,4 +22,4 @@ def acts_as_web_service
end
end
end
-end
+end
View
1 lib/action_web_service/api.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module API # :nodoc:
# A web service API class specifies the methods that will be available for
View
1 lib/action_web_service/base.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
class ActionWebServiceError < StandardError # :nodoc:
end
View
1 lib/action_web_service/casting.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'time'
require 'date'
require 'xmlrpc/datetime'
View
1 lib/action_web_service/client.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'action_web_service/client/base'
require 'action_web_service/client/soap_client'
require 'action_web_service/client/xmlrpc_client'
View
1 lib/action_web_service/client/base.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Client # :nodoc:
class ClientError < StandardError # :nodoc:
View
1 lib/action_web_service/client/soap_client.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'soap/rpc/driver'
require 'uri'
View
1 lib/action_web_service/client/xmlrpc_client.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'uri'
require 'xmlrpc/client'
View
1 lib/action_web_service/container.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'action_web_service/container/direct_container'
require 'action_web_service/container/delegated_container'
require 'action_web_service/container/action_controller_container'
View
1 lib/action_web_service/container/action_controller_container.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Container # :nodoc:
module ActionController # :nodoc:
View
1 lib/action_web_service/container/delegated_container.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Container # :nodoc:
module Delegated # :nodoc:
View
1 lib/action_web_service/container/direct_container.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Container # :nodoc:
module Direct # :nodoc:
View
1 lib/action_web_service/dispatcher.rb
@@ -1,2 +1,3 @@
+# encoding: UTF-8
require 'action_web_service/dispatcher/abstract'
require 'action_web_service/dispatcher/action_controller_dispatcher'
View
1 lib/action_web_service/dispatcher/abstract.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'benchmark'
module ActionWebService # :nodoc:
View
1 lib/action_web_service/dispatcher/action_controller_dispatcher.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'benchmark'
require 'builder/xmlmarkup'
View
1 lib/action_web_service/invocation.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Invocation # :nodoc:
class InvocationError < ActionWebService::ActionWebServiceError # :nodoc:
View
1 lib/action_web_service/protocol.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'action_web_service/protocol/abstract'
require 'action_web_service/protocol/discovery'
require 'action_web_service/protocol/soap_protocol'
View
1 lib/action_web_service/protocol/abstract.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Protocol # :nodoc:
class ProtocolError < ActionWebServiceError # :nodoc:
View
1 lib/action_web_service/protocol/discovery.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
module Protocol # :nodoc:
module Discovery # :nodoc:
View
1 lib/action_web_service/protocol/soap_protocol.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'action_web_service/protocol/soap_protocol/marshaler'
require 'soap/streamHandler'
require 'action_web_service/client/soap_client'
View
1 lib/action_web_service/protocol/soap_protocol/marshaler.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'soap/mapping'
# hack to improve the .Net interoperability
View
1 lib/action_web_service/protocol/xmlrpc_protocol.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'xmlrpc/marshal'
require 'action_web_service/client/xmlrpc_client'
View
1 lib/action_web_service/scaffolding.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'benchmark'
require 'pathname'
View
3 lib/action_web_service/simple.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService
# To send simple types across the wire, derive from ActionWebService::Simple,
# and use +base+ to declare the base type for it restriction and,
@@ -50,4 +51,4 @@ def restrictions
end
-end
+end
View
1 lib/action_web_service/string_to_datetime_for_soap.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module StringToDatetimeForSoap
def to_datetime
begin
View
1 lib/action_web_service/struct.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService
# To send structured types across the wire, derive from ActionWebService::Struct,
# and use +member+ to declare structure members.
View
1 lib/action_web_service/support/class_inheritable_options.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class Class # :nodoc:
def class_inheritable_option(sym, default_value=nil)
write_inheritable_attribute sym, default_value
View
1 lib/action_web_service/support/signature_types.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService # :nodoc:
# Action Web Service supports the following base types in a signature:
#
View
1 lib/action_web_service/test_invoke.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'test/unit'
module Test # :nodoc:
View
1 lib/action_web_service/version.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module ActionWebService
module VERSION #:nodoc:
MAJOR = 2
View
1 lib/actionwebservice.rb
@@ -1 +1,2 @@
+# encoding: UTF-8
require 'action_web_service'
View
1 setup.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
#
# setup.rb
#
View
1 test/abstract_client.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
require 'webrick'
require 'webrick/log'
View
1 test/abstract_dispatcher.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
require 'stringio'
View
1 test/abstract_unit.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
$: << "#{File.dirname(__FILE__)}/../lib"
ENV["RAILS_ENV"] = "test"
require 'rubygems'
View
1 test/api_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
module APITest
View
1 test/apis/auto_load_api.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class AutoLoadAPI < ActionWebService::API::Base
api_method :void
end
View
1 test/apis/broken_auto_load_api.rb
@@ -1,2 +1,3 @@
+# encoding: UTF-8
View
1 test/base_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
module BaseTest
View
1 test/casting_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
module CastingTest
View
1 test/client_soap_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_client'
View
1 test/client_xmlrpc_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_client'
View
1 test/container_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
module ContainerTest
View
1 test/dispatcher_action_controller_soap_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
$:.unshift(File.dirname(__FILE__) + '/apis')
require 'abstract_dispatcher'
require 'wsdl/parser'
View
1 test/dispatcher_action_controller_xmlrpc_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_dispatcher'
class TC_DispatcherActionControllerXmlRpc < Test::Unit::TestCase
View
1 test/invocation_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
module InvocationTest
View
1 test/scaffolded_controller_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
ActionController::Routing::Routes.draw do |map|
View
1 test/struct_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
module StructTest
View
1 test/test_invoke_test.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'abstract_unit'
require 'action_web_service/test_invoke'

0 comments on commit c8071a5

Please sign in to comment.