wash_out 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -1
- data/README.md +29 -10
- data/lib/wash_out/dispatcher.rb +1 -1
- data/lib/wash_out/version.rb +1 -1
- metadata +12 -12
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wash_out (0.2.
|
4
|
+
wash_out (0.2.4)
|
5
5
|
nori
|
6
6
|
|
7
7
|
GEM
|
@@ -39,8 +39,10 @@ GEM
|
|
39
39
|
rack
|
40
40
|
i18n (0.6.0)
|
41
41
|
json (1.6.1)
|
42
|
+
json (1.6.1-java)
|
42
43
|
multi_json (1.0.3)
|
43
44
|
nokogiri (1.5.0)
|
45
|
+
nokogiri (1.5.0-java)
|
44
46
|
nori (1.0.2)
|
45
47
|
rack (1.3.5)
|
46
48
|
rack-cache (1.1)
|
@@ -93,6 +95,7 @@ GEM
|
|
93
95
|
nokogiri (>= 1.4.0)
|
94
96
|
|
95
97
|
PLATFORMS
|
98
|
+
java
|
96
99
|
ruby
|
97
100
|
|
98
101
|
DEPENDENCIES
|
data/README.md
CHANGED
@@ -1,7 +1,21 @@
|
|
1
|
-
|
1
|
+
WashOut
|
2
2
|
========
|
3
3
|
|
4
|
-
|
4
|
+
WashOut is a gem that greatly simplifies creation of SOAP service providers.
|
5
|
+
|
6
|
+
Compatibility
|
7
|
+
--------------
|
8
|
+
|
9
|
+
Rails >3.0 only.
|
10
|
+
|
11
|
+
WashOut should work like a charm on CRuby 1.9.x.
|
12
|
+
|
13
|
+
We do support CRuby 1.8.7. However it is not a goal and it is not well supported by our specs. According to
|
14
|
+
this fact it maybe sometimes broken from the start on major releases. You are welcome to hold on an old
|
15
|
+
version and give us enough issues and pull-requests to make it work.
|
16
|
+
|
17
|
+
All dependencies are JRuby-compatible so again it will work well in --1.9 mode but it can fail with
|
18
|
+
fresh releases if you go --1.8.
|
5
19
|
|
6
20
|
Installation
|
7
21
|
------------
|
@@ -21,8 +35,8 @@ demonstrated.
|
|
21
35
|
[soap_action]: http://rubydoc.info/gems/wash_out/WashOut/SOAP/ClassMethods#soap_action-instance_method
|
22
36
|
|
23
37
|
```ruby
|
24
|
-
# app/controllers/
|
25
|
-
class
|
38
|
+
# app/controllers/rumbas_controller.rb
|
39
|
+
class RumbasController < ApplicationController
|
26
40
|
include WashOut::SOAP
|
27
41
|
|
28
42
|
soap_action "integer_to_string",
|
@@ -66,8 +80,8 @@ end
|
|
66
80
|
|
67
81
|
```ruby
|
68
82
|
# config/routes.rb
|
69
|
-
|
70
|
-
wash_out :
|
83
|
+
WashOutSample::Application.routes.draw do
|
84
|
+
wash_out :rumbas
|
71
85
|
end
|
72
86
|
```
|
73
87
|
|
@@ -77,13 +91,18 @@ gem like Savon, a request can be done using this path:
|
|
77
91
|
```ruby
|
78
92
|
require 'savon'
|
79
93
|
|
80
|
-
client = Savon::Client.new("http://localhost:3000/
|
81
|
-
|
82
|
-
client.
|
94
|
+
client = Savon::Client.new("http://localhost:3000/rumbas/wsdl")
|
95
|
+
|
96
|
+
client.wsdl.soap_actions # => [:integer_to_string, :concat, :add_circle]
|
97
|
+
|
98
|
+
result = client.request(:concat) do
|
83
99
|
soap.body = { :a => "123", :b => "abc" }
|
84
|
-
end
|
100
|
+
end
|
101
|
+
result.to_hash # => {:value=>"123abc"}
|
85
102
|
```
|
86
103
|
|
104
|
+
Take a look at [WashOut sample application](https://github.com/roundlake/wash_out-sample).
|
105
|
+
|
87
106
|
License
|
88
107
|
-------
|
89
108
|
|
data/lib/wash_out/dispatcher.rb
CHANGED
@@ -23,7 +23,7 @@ module WashOut
|
|
23
23
|
|
24
24
|
@_params = HashWithIndifferentAccess.new
|
25
25
|
(xml_data || {}).map do |opt, value|
|
26
|
-
unless opt
|
26
|
+
unless opt.to_s.starts_with? '@'
|
27
27
|
param = action_spec[:in].find { |param| param.name.underscore.to_sym == opt }
|
28
28
|
raise SOAPError, "unknown parameter #{opt}" unless param
|
29
29
|
|
data/lib/wash_out/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wash_out
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nori
|
17
|
-
requirement: &
|
17
|
+
requirement: &70170254732680 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70170254732680
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rspec-rails
|
28
|
-
requirement: &
|
28
|
+
requirement: &70170254730240 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70170254730240
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: appraisal
|
39
|
-
requirement: &
|
39
|
+
requirement: &70170254745120 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70170254745120
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: tzinfo
|
50
|
-
requirement: &
|
50
|
+
requirement: &70170254743600 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70170254743600
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: savon
|
61
|
-
requirement: &
|
61
|
+
requirement: &70170254742840 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70170254742840
|
70
70
|
description: Dead simple Rails 3 SOAP server library
|
71
71
|
email: boris@roundlake.ru
|
72
72
|
executables: []
|