Skip to content

Commit

Permalink
Added 'encoding: UTF-8' magic string to all *.rb files
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyjedi committed Jun 17, 2010
1 parent 0a35602 commit c8071a5
Show file tree
Hide file tree
Showing 67 changed files with 70 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/googlesearch/autoloading/google_search_api.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
class DirectoryCategory < ActionWebService::Struct
member :fullViewableName, :string
member :specialEncoding, :string
Expand Down
@@ -1,3 +1,4 @@
# encoding: UTF-8
class GoogleSearchController < ApplicationController
wsdl_service_name 'GoogleSearch'

Expand Down
1 change: 1 addition & 0 deletions examples/googlesearch/delegated/google_search_service.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
class DirectoryCategory < ActionWebService::Struct
member :fullViewableName, :string
member :specialEncoding, :string
Expand Down
1 change: 1 addition & 0 deletions examples/googlesearch/delegated/search_controller.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'google_search_service'

class SearchController < ApplicationController
Expand Down
1 change: 1 addition & 0 deletions examples/googlesearch/direct/google_search_api.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
class DirectoryCategory < ActionWebService::Struct
member :fullViewableName, :string
member :specialEncoding, :string
Expand Down
1 change: 1 addition & 0 deletions 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'
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions examples/metaWeblog/apis/blogger_service.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'blogger_api'

class BloggerService < ActionWebService::Base
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions examples/metaWeblog/apis/meta_weblog_service.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'meta_weblog_api'

class MetaWeblogService < ActionWebService::Base
Expand Down
1 change: 1 addition & 0 deletions 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.
Expand Down
1 change: 1 addition & 0 deletions 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 %>
Expand Down
1 change: 1 addition & 0 deletions 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 -%>
Expand Down
1 change: 1 addition & 0 deletions 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'

Expand Down
1 change: 1 addition & 0 deletions generators/web_service/web_service_generator.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
class WebServiceGenerator < Rails::Generator::NamedBase
def manifest
record do |m|
Expand Down
3 changes: 2 additions & 1 deletion init.rb
@@ -1 +1,2 @@
require 'action_web_service'
# encoding: UTF-8
require 'action_web_service'
1 change: 1 addition & 0 deletions install.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'rbconfig'
require 'find'

Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
#--
# Copyright (C) 2005 Leon Breedt
#
Expand Down
3 changes: 2 additions & 1 deletion lib/action_web_service/acts_as_web_service.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService
module ActsAsWebService

Expand All @@ -21,4 +22,4 @@ def acts_as_web_service
end
end
end
end
end
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/base.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
class ActionWebServiceError < StandardError # :nodoc:
end
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/casting.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'time'
require 'date'
require 'xmlrpc/datetime'
Expand Down
1 change: 1 addition & 0 deletions 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'
1 change: 1 addition & 0 deletions lib/action_web_service/client/base.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Client # :nodoc:
class ClientError < StandardError # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/client/soap_client.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'soap/rpc/driver'
require 'uri'

Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/client/xmlrpc_client.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'uri'
require 'xmlrpc/client'

Expand Down
1 change: 1 addition & 0 deletions 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'
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Container # :nodoc:
module ActionController # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/container/delegated_container.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Container # :nodoc:
module Delegated # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/container/direct_container.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Container # :nodoc:
module Direct # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions 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'
1 change: 1 addition & 0 deletions lib/action_web_service/dispatcher/abstract.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'benchmark'

module ActionWebService # :nodoc:
Expand Down
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'benchmark'
require 'builder/xmlmarkup'

Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/invocation.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Invocation # :nodoc:
class InvocationError < ActionWebService::ActionWebServiceError # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions 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'
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/protocol/abstract.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Protocol # :nodoc:
class ProtocolError < ActionWebServiceError # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/protocol/discovery.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService # :nodoc:
module Protocol # :nodoc:
module Discovery # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions 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'
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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'

Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/scaffolding.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'benchmark'
require 'pathname'

Expand Down
3 changes: 2 additions & 1 deletion 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,
Expand Down Expand Up @@ -50,4 +51,4 @@ def restrictions

end

end
end
1 change: 1 addition & 0 deletions lib/action_web_service/string_to_datetime_for_soap.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module StringToDatetimeForSoap
def to_datetime
begin
Expand Down
1 change: 1 addition & 0 deletions 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.
Expand Down
@@ -1,3 +1,4 @@
# encoding: UTF-8
class Class # :nodoc:
def class_inheritable_option(sym, default_value=nil)
write_inheritable_attribute sym, default_value
Expand Down
1 change: 1 addition & 0 deletions 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:
#
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/test_invoke.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'test/unit'

module Test # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions lib/action_web_service/version.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
module ActionWebService
module VERSION #:nodoc:
MAJOR = 2
Expand Down
1 change: 1 addition & 0 deletions lib/actionwebservice.rb
@@ -1 +1,2 @@
# encoding: UTF-8
require 'action_web_service'
1 change: 1 addition & 0 deletions setup.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
#
# setup.rb
#
Expand Down
1 change: 1 addition & 0 deletions test/abstract_client.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'
require 'webrick'
require 'webrick/log'
Expand Down
1 change: 1 addition & 0 deletions test/abstract_dispatcher.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'
require 'stringio'

Expand Down
1 change: 1 addition & 0 deletions test/abstract_unit.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
$: << "#{File.dirname(__FILE__)}/../lib"
ENV["RAILS_ENV"] = "test"
require 'rubygems'
Expand Down
1 change: 1 addition & 0 deletions test/api_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

module APITest
Expand Down
1 change: 1 addition & 0 deletions test/apis/auto_load_api.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
class AutoLoadAPI < ActionWebService::API::Base
api_method :void
end
1 change: 1 addition & 0 deletions test/apis/broken_auto_load_api.rb
@@ -1,2 +1,3 @@
# encoding: UTF-8


1 change: 1 addition & 0 deletions test/base_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

module BaseTest
Expand Down
1 change: 1 addition & 0 deletions test/casting_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

module CastingTest
Expand Down
1 change: 1 addition & 0 deletions test/client_soap_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_client'


Expand Down
1 change: 1 addition & 0 deletions test/client_xmlrpc_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_client'


Expand Down
1 change: 1 addition & 0 deletions test/container_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

module ContainerTest
Expand Down
1 change: 1 addition & 0 deletions 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'
Expand Down
1 change: 1 addition & 0 deletions test/dispatcher_action_controller_xmlrpc_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_dispatcher'

class TC_DispatcherActionControllerXmlRpc < Test::Unit::TestCase
Expand Down
1 change: 1 addition & 0 deletions test/invocation_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

module InvocationTest
Expand Down
1 change: 1 addition & 0 deletions test/scaffolded_controller_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

ActionController::Routing::Routes.draw do |map|
Expand Down
1 change: 1 addition & 0 deletions test/struct_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'

module StructTest
Expand Down
1 change: 1 addition & 0 deletions test/test_invoke_test.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
require 'abstract_unit'
require 'action_web_service/test_invoke'

Expand Down

0 comments on commit c8071a5

Please sign in to comment.