Skip to content

Commit 75632a9

Browse files
committed
Tiny renamings to make internal things more consistent
1 parent 2a4bba2 commit 75632a9

File tree

10 files changed

+17
-4
lines changed

10 files changed

+17
-4
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ gem 'appraisal'
1414
gem 'tzinfo'
1515
gem 'pry'
1616
gem 'simplecov'
17-
gem 'simplecov-summary'
17+
gem 'simplecov-summary'

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ RSpec::Core::RakeTask.new(:spec)
88
desc "Default: run the unit tests."
99
task :default => [:all]
1010

11+
task :console do
12+
require "action_controller/railtie"
13+
require "rails/test_unit/railtie"
14+
Bundler.require
15+
binding.pry
16+
end
17+
1118
desc 'Test the plugin under all supported Rails versions.'
1219
task :all => ["appraisal:install"] do |t|
1320
exec('rake appraisal spec')

lib/wash_out.rb

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
require 'wash_out/wsse'
1212
require 'wash_out/middleware'
1313

14+
module WashOut
15+
def self.root
16+
File.expand_path '../..', __FILE__
17+
end
18+
end
19+
1420
module ActionDispatch::Routing
1521
class Mapper
1622
# Adds the routes for a SOAP endpoint at +controller+.

lib/wash_out/dispatcher.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _generate_wsdl
6969
@namespace = soap_config.namespace
7070
@name = controller_path.gsub('/', '_')
7171

72-
render :template => "wash_with_soap/#{soap_config.wsdl_style}/wsdl", :layout => false,
72+
render :template => "wash_out/#{soap_config.wsdl_style}/wsdl", :layout => false,
7373
:content_type => 'text/xml'
7474
end
7575

@@ -124,7 +124,7 @@ def _render_soap(result, options)
124124
return result_spec
125125
}
126126

127-
render :template => "wash_with_soap/#{soap_config.wsdl_style}/response",
127+
render :template => "wash_out/#{soap_config.wsdl_style}/response",
128128
:layout => false,
129129
:locals => { :result => inject.call(result, @action_spec[:out]) },
130130
:content_type => 'text/xml'
@@ -146,7 +146,7 @@ def _catch_soap_errors
146146
# Rails do not support sequental rescue_from handling, that is, rescuing an
147147
# exception from a rescue_from handler. Hence this function is a public API.
148148
def render_soap_error(message, code=nil)
149-
render :template => "wash_with_soap/#{soap_config.wsdl_style}/error", :status => 500,
149+
render :template => "wash_out/#{soap_config.wsdl_style}/error", :status => 500,
150150
:layout => false,
151151
:locals => { :error_message => message, :error_code => (code || 'Server') },
152152
:content_type => 'text/xml'

0 commit comments

Comments
 (0)