washout_builder 0.16.4 → 0.16.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +23 -21
  3. data/lib/washout_builder/version.rb +1 -1
  4. metadata +1 -61
  5. data/example/test_app/.gitignore +0 -17
  6. data/example/test_app/Gemfile +0 -53
  7. data/example/test_app/README.rdoc +0 -28
  8. data/example/test_app/Rakefile +0 -6
  9. data/example/test_app/app/assets/images/.keep +0 -0
  10. data/example/test_app/app/assets/javascripts/application.js +0 -16
  11. data/example/test_app/app/assets/stylesheets/application.css +0 -15
  12. data/example/test_app/app/controllers/api/core.rb +0 -20
  13. data/example/test_app/app/controllers/api/project_service_controller.rb +0 -28
  14. data/example/test_app/app/controllers/api/rumbas_controller.rb +0 -83
  15. data/example/test_app/app/controllers/application_controller.rb +0 -20
  16. data/example/test_app/app/controllers/concerns/.keep +0 -0
  17. data/example/test_app/app/helpers/application_helper.rb +0 -2
  18. data/example/test_app/app/mailers/.keep +0 -0
  19. data/example/test_app/app/models/.keep +0 -0
  20. data/example/test_app/app/models/api/fluffy.rb +0 -6
  21. data/example/test_app/app/models/api/fluffy_container.rb +0 -5
  22. data/example/test_app/app/models/api/project_type.rb +0 -14
  23. data/example/test_app/app/models/api/test_namespace/test_type.rb +0 -13
  24. data/example/test_app/app/models/concerns/.keep +0 -0
  25. data/example/test_app/app/models/user.rb +0 -2
  26. data/example/test_app/app/views/layouts/application.html.erb +0 -14
  27. data/example/test_app/bin/bundle +0 -3
  28. data/example/test_app/bin/rails +0 -8
  29. data/example/test_app/bin/rake +0 -8
  30. data/example/test_app/bin/setup +0 -29
  31. data/example/test_app/bin/spring +0 -15
  32. data/example/test_app/config.ru +0 -4
  33. data/example/test_app/config/application.rb +0 -39
  34. data/example/test_app/config/boot.rb +0 -3
  35. data/example/test_app/config/database.yml +0 -25
  36. data/example/test_app/config/environment.rb +0 -5
  37. data/example/test_app/config/environments/development.rb +0 -43
  38. data/example/test_app/config/environments/production.rb +0 -79
  39. data/example/test_app/config/environments/test.rb +0 -42
  40. data/example/test_app/config/initializers/api_token.rb +0 -2
  41. data/example/test_app/config/initializers/assets.rb +0 -11
  42. data/example/test_app/config/initializers/backtrace_silencers.rb +0 -7
  43. data/example/test_app/config/initializers/cookies_serializer.rb +0 -3
  44. data/example/test_app/config/initializers/filter_parameter_logging.rb +0 -4
  45. data/example/test_app/config/initializers/inflections.rb +0 -16
  46. data/example/test_app/config/initializers/mime_types.rb +0 -4
  47. data/example/test_app/config/initializers/session_store.rb +0 -6
  48. data/example/test_app/config/initializers/wrap_parameters.rb +0 -14
  49. data/example/test_app/config/locales/en.yml +0 -23
  50. data/example/test_app/config/routes.rb +0 -62
  51. data/example/test_app/config/secrets.yml +0 -22
  52. data/example/test_app/db/migrate/20150826095420_create_users.rb +0 -34
  53. data/example/test_app/db/schema.rb +0 -34
  54. data/example/test_app/db/seeds.rb +0 -7
  55. data/example/test_app/lib/assets/.keep +0 -0
  56. data/example/test_app/lib/tasks/.keep +0 -0
  57. data/example/test_app/log/.keep +0 -0
  58. data/example/test_app/public/404.html +0 -67
  59. data/example/test_app/public/422.html +0 -67
  60. data/example/test_app/public/500.html +0 -66
  61. data/example/test_app/public/favicon.ico +0 -0
  62. data/example/test_app/public/robots.txt +0 -5
  63. data/example/test_app/vendor/assets/javascripts/.keep +0 -0
  64. data/example/test_app/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43e83e0edb7d4949ee51ce2e81ce046cd56c3fe0
4
- data.tar.gz: 54b316fadb23c7f03eb7ea48d7ff92ea59cbf9fe
3
+ metadata.gz: 4c29c616804c414323cef5873a40c5dc32dda16d
4
+ data.tar.gz: fcc127cab6b7b6c839df8a93f614d4d05bd9b6b2
5
5
  SHA512:
6
- metadata.gz: db3f828270ebe965afb3f4db0db59eda59dc27cba1f517c51edac8ef5542923d37fe01559c7d186793775ef0e3cd76f384af70c71969ca993cbe46efac3217e2
7
- data.tar.gz: 000637b4606ec221796d1efd7f976cdabaa1c43ca8d4ced6a6e5561c47d9ee75523e59506f1b1c20424545e9ba07a6fc3867fdb16dfb0819e92f6221eb4e15b6
6
+ metadata.gz: 99929f3655c1dc6a46df4fdeec82e9aaf2ce3c0c23046a9414df4c3fd40297f151ad697b11ea25ba9bff4cc4ec9b7983a4093c1a6a49034e228e859ad92c0c07
7
+ data.tar.gz: 4c95effbfe698198b8704b4111b99f335cb11a2a4d88e6e3eba6b7aaf59aa33215689e46e98653a80bd2a43944a321e21a6cc4c8680bcaa8e1bde80d00a2298e
@@ -1,5 +1,5 @@
1
1
  = washout_builder {<img src="https://badge.fury.io/rb/washout_builder.png" alt="Gem Version" />}[http://badge.fury.io/rb/washout_builder]
2
- {<img src="https://travis-ci.org/bogdanRada/washout_builder.png?branch=master,develop" />}[https://travis-ci.org/bogdanRada/washout_builder]
2
+ {<img src="https://travis-ci.org/bogdanRada/washout_builder.png?branch=master,develop" />}[https://travis-ci.org/bogdanRada/washout_builder]
3
3
  {<img src="https://gemnasium.com/bogdanRada/washout_builder.svg" alt="Dependency Status" />}[https://gemnasium.com/bogdanRada/washout_builder]
4
4
  {<img src="https://coveralls.io/repos/bogdanRada/washout_builder/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/bogdanRada/washout_builder?branch=master]
5
5
  {<img src="https://codeclimate.com/github/bogdanRada/washout_builder.png" />}[https://codeclimate.com/github/bogdanRada/washout_builder]
@@ -17,11 +17,13 @@ The way WashOut is used is not modified, it just extends its functionality by ge
17
17
  * Provides way of seeing the available services with links to documentation, endpoint and namespace
18
18
  * Provides a human-readable HTML documentation generated for each service that you write
19
19
 
20
- = Screenshots (just an example)
20
+ = LIVE DEMO!!!
21
21
 
22
- * {Screenshot 1}[https://f.cloud.github.com/assets/1104923/1582604/53ad8c04-51f1-11e3-963c-fb6c58d0a6a6.png]
23
- * {Screenshot 2}[https://f.cloud.github.com/assets/1104923/1563031/0efe630c-5058-11e3-8502-1e0b145de80c.png]
24
- * {Screenshot 3}[https://f.cloud.github.com/assets/1104923/1563032/0f43ddb0-5058-11e3-91d1-35409d4017b0.png]
22
+ * {Demo Application}[http://washout-builder.herokuapp.com/]
23
+
24
+ = Demo app source code:
25
+
26
+ * {Source code}[https://github.com/bogdanRada/washout_builder_demo]
25
27
 
26
28
  = Requirements
27
29
 
@@ -33,9 +35,9 @@ The way WashOut is used is not modified, it just extends its functionality by ge
33
35
 
34
36
  Rails >3.0 only. MRI 1.9, 2.0, .
35
37
 
36
- JRuby is not offically supported since 0.15.0.
38
+ JRuby is not offically supported since 0.15.0.
37
39
 
38
- Ruby 1.8 is not officially supported since 0.5.3.
40
+ Ruby 1.8 is not officially supported since 0.5.3.
39
41
 
40
42
  We will accept further compatibilty pull-requests but no upcoming versions will be tested against it.
41
43
 
@@ -45,23 +47,23 @@ Rubinius support temporarily dropped since 0.6.2 due to Rails 4 incompatibility.
45
47
 
46
48
  Type the following from the command line to install:
47
49
 
48
- gem install washout_builder
50
+ gem install washout_builder
49
51
 
50
52
  Add the following to your Gemfile:
51
53
 
52
-
54
+
53
55
  gem "washout_builder"
54
56
 
55
57
  it will automatically install also +wash_out+ gem that is currently used
56
58
 
57
59
  Or if you want this to be available only in development mode , you can do something like this inside the Gemfile:
58
60
 
59
- gem 'wash_out' # The WashOut gem would be used also in production
61
+ gem 'wash_out' # The WashOut gem would be used also in production
60
62
 
61
63
  group :development, :test do
62
- gem 'washout_builder' # only available in development mode.
64
+ gem 'washout_builder' # only available in development mode.
63
65
  end
64
-
66
+
65
67
 
66
68
  Please read {release details}[https://github.com/bogdanRada/washout_builder/releases] if you are upgrading. We break backward compatibility between large ticks but you can expect it to be specified at release notes.
67
69
 
@@ -72,7 +74,7 @@ You can still do everything that gem does .
72
74
 
73
75
  In order to see the documentation you must write something like this in the routes (exactly like you would do when using only WashOut)
74
76
 
75
- In the following file +config/routes.rb+ you can put this configuration
77
+ In the following file +config/routes.rb+ you can put this configuration
76
78
 
77
79
  WashOutSample::Application.routes.draw do
78
80
  wash_out :rumbas
@@ -82,32 +84,32 @@ In the following file +config/routes.rb+ you can put this configuration
82
84
  wash_out :project_service
83
85
  end
84
86
 
85
- mount WashoutBuilder::Engine => "/washout"
87
+ mount WashoutBuilder::Engine => "/washout"
86
88
  end
87
89
 
88
90
  You can access the url +/washout+ and you will see a list with available services ( in our case there are only two : The RumbasController and MyOtherServiceController) with links to their documentation and where you can find the WSDL.
89
91
 
90
- If you want to access directly the hml documentation that was generated for RumbasController you can do that by accessing url like this:
92
+ If you want to access directly the hml documentation that was generated for RumbasController you can do that by accessing url like this:
91
93
 
92
- /washout/Rumbas #camelcase name
93
- /washout/rumbas #without camelcase
94
+ /washout/Rumbas #camelcase name
95
+ /washout/rumbas #without camelcase
94
96
 
95
97
  /washout/Api::ProjectService # for namespaced services with camelcase
96
98
  /washout/api/project_service # without camelcase
97
99
 
98
100
  When specifying the <b>soap_service</b> you can also pass a <b>option for description</b> . Here is an example
99
101
 
100
- soap_service namespace: "http://my.app.com/my_service/wsdl",
102
+ soap_service namespace: "http://my.app.com/my_service/wsdl",
101
103
  :description => "here goes some description for your service"
102
104
 
103
105
  When specifying the <b>soap_action</b> you can also pass a <b>option for description</b> and a <b>list of exceptions(need to be classes)</b> that the method can raise at a certain moment.
104
106
 
105
107
  Here is an example :
106
108
 
107
- soap_action "find",
109
+ soap_action "find",
108
110
  :args => {:number => :integer} ,
109
- :return => :boolean,
110
- :raises => [MyCustomSoapError, MyOtherCustomSoapError ] ,
111
+ :return => :boolean,
112
+ :raises => [MyCustomSoapError, MyOtherCustomSoapError ] ,
111
113
  :description => "some description about this method to show in the documentation"
112
114
 
113
115
 
@@ -12,7 +12,7 @@ module WashoutBuilder
12
12
  # the minor version of the gem
13
13
  MINOR = 16
14
14
  # the tiny version of the gem
15
- TINY = 4
15
+ TINY = 5
16
16
  # if the version should be a e
17
17
  PRE = nil
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: washout_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.4
4
+ version: 0.16.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
@@ -568,66 +568,6 @@ files:
568
568
  - app/views/wash_with_html/all_services.builder
569
569
  - app/views/wash_with_html/doc.builder
570
570
  - config/routes.rb
571
- - example/test_app/.gitignore
572
- - example/test_app/Gemfile
573
- - example/test_app/README.rdoc
574
- - example/test_app/Rakefile
575
- - example/test_app/app/assets/images/.keep
576
- - example/test_app/app/assets/javascripts/application.js
577
- - example/test_app/app/assets/stylesheets/application.css
578
- - example/test_app/app/controllers/api/core.rb
579
- - example/test_app/app/controllers/api/project_service_controller.rb
580
- - example/test_app/app/controllers/api/rumbas_controller.rb
581
- - example/test_app/app/controllers/application_controller.rb
582
- - example/test_app/app/controllers/concerns/.keep
583
- - example/test_app/app/helpers/application_helper.rb
584
- - example/test_app/app/mailers/.keep
585
- - example/test_app/app/models/.keep
586
- - example/test_app/app/models/api/fluffy.rb
587
- - example/test_app/app/models/api/fluffy_container.rb
588
- - example/test_app/app/models/api/project_type.rb
589
- - example/test_app/app/models/api/test_namespace/test_type.rb
590
- - example/test_app/app/models/concerns/.keep
591
- - example/test_app/app/models/user.rb
592
- - example/test_app/app/views/layouts/application.html.erb
593
- - example/test_app/bin/bundle
594
- - example/test_app/bin/rails
595
- - example/test_app/bin/rake
596
- - example/test_app/bin/setup
597
- - example/test_app/bin/spring
598
- - example/test_app/config.ru
599
- - example/test_app/config/application.rb
600
- - example/test_app/config/boot.rb
601
- - example/test_app/config/database.yml
602
- - example/test_app/config/environment.rb
603
- - example/test_app/config/environments/development.rb
604
- - example/test_app/config/environments/production.rb
605
- - example/test_app/config/environments/test.rb
606
- - example/test_app/config/initializers/api_token.rb
607
- - example/test_app/config/initializers/assets.rb
608
- - example/test_app/config/initializers/backtrace_silencers.rb
609
- - example/test_app/config/initializers/cookies_serializer.rb
610
- - example/test_app/config/initializers/filter_parameter_logging.rb
611
- - example/test_app/config/initializers/inflections.rb
612
- - example/test_app/config/initializers/mime_types.rb
613
- - example/test_app/config/initializers/session_store.rb
614
- - example/test_app/config/initializers/wrap_parameters.rb
615
- - example/test_app/config/locales/en.yml
616
- - example/test_app/config/routes.rb
617
- - example/test_app/config/secrets.yml
618
- - example/test_app/db/migrate/20150826095420_create_users.rb
619
- - example/test_app/db/schema.rb
620
- - example/test_app/db/seeds.rb
621
- - example/test_app/lib/assets/.keep
622
- - example/test_app/lib/tasks/.keep
623
- - example/test_app/log/.keep
624
- - example/test_app/public/404.html
625
- - example/test_app/public/422.html
626
- - example/test_app/public/500.html
627
- - example/test_app/public/favicon.ico
628
- - example/test_app/public/robots.txt
629
- - example/test_app/vendor/assets/javascripts/.keep
630
- - example/test_app/vendor/assets/stylesheets/.keep
631
571
  - init.rb
632
572
  - lib/washout_builder.rb
633
573
  - lib/washout_builder/document/complex_type.rb
@@ -1,17 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*
16
- !/log/.keep
17
- /tmp
@@ -1,53 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
-
4
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
- gem 'rails', '4.2.4'
6
- # Use sqlite3 as the database for Active Record
7
- gem 'sqlite3'
8
- # Use SCSS for stylesheets
9
- gem 'sass-rails', '~> 5.0'
10
- # Use Uglifier as compressor for JavaScript assets
11
- gem 'uglifier', '>= 1.3.0'
12
- # Use CoffeeScript for .coffee assets and views
13
- gem 'coffee-rails', '~> 4.1.0'
14
- # See https://github.com/rails/execjs#readme for more supported runtimes
15
- # gem 'therubyracer', platforms: :ruby
16
-
17
- # Use jquery as the JavaScript library
18
- gem 'jquery-rails'
19
- # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
20
- gem 'turbolinks'
21
-
22
-
23
- gem 'wash_out', git: 'git://github.com/inossidabile/wash_out.git'
24
- # Gems used only for assets and not required in production environments by
25
- # default.
26
- gem 'washout_builder', :path => '../../../washout_builder'
27
-
28
-
29
-
30
-
31
- # Use ActiveModel has_secure_password
32
- # gem 'bcrypt', '~> 3.1.7'
33
-
34
- # Use Unicorn as the app server
35
- # gem 'unicorn'
36
-
37
- # Use Capistrano for deployment
38
- # gem 'capistrano-rails', group: :development
39
-
40
- group :development, :test do
41
- gem 'better_errors'
42
- gem 'binding_of_caller'
43
- #codesmell and speed tests
44
- gem 'rack-mini-profiler'
45
- gem 'rails-footnotes'
46
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
47
- gem 'byebug'
48
- # Access an IRB console on exception pages or by using <%= console %> in views
49
- gem 'web-console', '~> 2.0'
50
-
51
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
52
- gem 'spring'
53
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
File without changes
@@ -1,16 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require turbolinks
16
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,20 +0,0 @@
1
-
2
- class Api::Core < ApplicationController
3
-
4
- before_filter :dump_parameters
5
-
6
-
7
- def require_api_authorization
8
- unless Rails.env.development?
9
- if request.parameters['Envelope'].present? && request.parameters['Envelope']['Header'].present? && request.parameters['Envelope']['Header']['authToken'].present? && request.parameters['Envelope']['Header']['authToken']== TestApp::Application.config.api__auth_token
10
- return true
11
- else
12
- head :forbidden
13
- end
14
- end
15
- end
16
-
17
- def dump_parameters
18
- Rails.logger.debug params.inspect if Rails.env.development?
19
- end
20
- end
@@ -1,28 +0,0 @@
1
- class Api::ProjectServiceController < Api::Core
2
- before_filter :require_api_authorization
3
-
4
- soap_service namespace: "#{Rails.configuration.api_namespace}project_service/wsdl"
5
-
6
- # Simple case
7
- soap_action "create_or_update", :args => Api::ProjectType , :return => :boolean, :to => :create_or_update
8
-
9
-
10
- def create_or_update
11
- render :soap => true
12
- end
13
-
14
- soap_action "delete_member", :args => {:mail => :string, 'redmine_projectid' => :integer, "project_type"=> Api::TestNamespace::TestType } , :return => :boolean, :to => :set_inactive_project_assignment
15
-
16
- def set_inactive_project_assignment
17
- render :soap => true
18
- end
19
-
20
-
21
-
22
- soap_action "add_members", :args => {:members => [{:mail => :string }] , 'redmine_projectid' => :integer, 'project_type' => :string} , :return => :boolean, :to => :create_or_set_active_project_assignment
23
-
24
- def create_or_set_active_project_assignment
25
- render :soap => true
26
- end
27
-
28
- end
@@ -1,83 +0,0 @@
1
- class Api::RumbasController < Api::Core
2
- soap_service namespace: 'urn:WashOut'
3
-
4
- # Simple case
5
- soap_action "integer_to_string",
6
- :args => :integer,
7
- :return => :string
8
- def integer_to_string
9
- render :soap => params[:value].to_s
10
- end
11
-
12
- soap_action "concat",
13
- :args => { :a => :string, :b => :string },
14
- :return => :string
15
- def concat
16
- render :soap => (params[:a] + params[:b])
17
- end
18
-
19
- # Complex structures
20
- soap_action "AddCircle",
21
- :args => { :circle => { :center => { :x => :integer,
22
- :y => :integer },
23
- :radius => :double } },
24
- :return => nil, # [] for wash_out below 0.3.0
25
- :to => :add_circle
26
- def add_circle
27
- circle = params[:circle]
28
-
29
- raise SOAPError, "radius is too small" if circle[:radius] < 3.0
30
-
31
- Circle.new(circle[:center][:x], circle[:center][:y], circle[:radius])
32
-
33
- render :soap => nil
34
- end
35
-
36
- # Arrays
37
- soap_action "integers_to_boolean",
38
- :args => { :data => [:integer] },
39
- :return => [:boolean]
40
- def integers_to_boolean
41
- render :soap => params[:data].map{|x| x ? 1 : 0}
42
- end
43
-
44
- # Params from XML attributes;
45
- # e.g. for a request to the 'AddCircle' action:
46
- # <soapenv:Envelope>
47
- # <soapenv:Body>
48
- # <AddCircle>
49
- # <Circle radius="5.0">
50
- # <Center x="10" y="12" />
51
- # </Circle>
52
- # </AddCircle>
53
- # </soapenv:Body>
54
- # </soapenv:Envelope>
55
- soap_action "AddCircle",
56
- :args => { :circle => { :center => { :@x => :integer,
57
- :@y => :integer },
58
- :@radius => :double } },
59
- :return => nil, # [] for wash_out below 0.3.0
60
- :to => :add_circle
61
- def add_circle
62
- circle = params[:circle]
63
- Circle.new(circle[:center][:x], circle[:center][:y], circle[:radius])
64
-
65
- render :soap => nil
66
- end
67
-
68
- # With a customised input tag name, in case params are wrapped;
69
- # e.g. for a request to the 'IntegersToBoolean' action:
70
- # <soapenv:Envelope>
71
- # <soapenv:Body>
72
- # <MyRequest> <!-- not <IntegersToBoolean> -->
73
- # <Data>...</Data>
74
- # </MyRequest>
75
- # </soapenv:Body>
76
- # </soapenv:Envelope>
77
- soap_action "integers_to_boolean",
78
- :args => { :my_request => { :data => [:integer] } },
79
- :as => 'MyRequest',
80
- :return => [:boolean]
81
-
82
-
83
- end