wasabi 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -5
- data/Gemfile +7 -0
- data/lib/wasabi/core_ext/string.rb +3 -3
- data/lib/wasabi/document.rb +3 -1
- data/lib/wasabi/parser.rb +5 -1
- data/lib/wasabi/version.rb +1 -3
- data/spec/fixtures/no_namespace.wsdl +2 -2
- data/spec/wasabi/document/no_namespace_spec.rb +1 -1
- data/wasabi.gemspec +2 -1
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f06aeea996211efa89a8230086c61177c28b4fa
|
4
|
+
data.tar.gz: c1e5bcaacd35bfe0122f4bd5b522dd1fad86abe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b933663d3edb5ceed9a492cf25189f8d838758f58fd6f88d7353018813267006981b05ede2a8d3057e0e5b1f5696e4636f2aa6778137a0b0f493795565b43a0
|
7
|
+
data.tar.gz: 03cfffac4886354d15a5d69aab5f444356e5ec69c5b4109ec5735e5138fa37775f463c7b75acda2fe001ca96d1762f15b1b7624e4e334180c26c9fbafc1b815a
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -5,9 +5,9 @@ module Wasabi
|
|
5
5
|
# Returns the String in snakecase.
|
6
6
|
def snakecase
|
7
7
|
str = dup
|
8
|
-
str.gsub!
|
9
|
-
str.gsub!
|
10
|
-
str.gsub!
|
8
|
+
str.gsub!(/::/, '/')
|
9
|
+
str.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
|
10
|
+
str.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
|
11
11
|
str.tr! ".", "_"
|
12
12
|
str.tr! "-", "_"
|
13
13
|
str.downcase!
|
data/lib/wasabi/document.rb
CHANGED
data/lib/wasabi/parser.rb
CHANGED
@@ -249,7 +249,11 @@ module Wasabi
|
|
249
249
|
# TODO: Stupid fix for missing support for imports.
|
250
250
|
# Sometimes portTypes are actually included in a separate WSDL.
|
251
251
|
if port_type_input_output
|
252
|
-
|
252
|
+
if port_type_input_output.attribute("message").to_s.include? ':'
|
253
|
+
port_message_ns_id, port_message_type = port_type_input_output.attribute("message").to_s.split(':')
|
254
|
+
else
|
255
|
+
port_message_type = port_type_input_output.attribute("message").to_s
|
256
|
+
end
|
253
257
|
|
254
258
|
message_ns_id, message_type = nil
|
255
259
|
|
data/lib/wasabi/version.rb
CHANGED
@@ -73,8 +73,8 @@
|
|
73
73
|
<output message="typens:GetAllContactsResponse"/>
|
74
74
|
</operation>
|
75
75
|
<operation name="SearchUser">
|
76
|
-
<input message="
|
77
|
-
<output message="
|
76
|
+
<input message="SearchUser"/>
|
77
|
+
<output message="SearchUserResponse"/>
|
78
78
|
</operation>
|
79
79
|
</portType>
|
80
80
|
<binding name="ApiApiBinding" type="typens:ApiApiPort">
|
@@ -17,7 +17,7 @@ describe Wasabi::Document do
|
|
17
17
|
should include(
|
18
18
|
{ :get_user_login_by_id => { :input => "GetUserLoginById", :output => "GetUserLoginByIdResponse", :action => "/api/api/GetUserLoginById", :namespace_identifier => "typens" } },
|
19
19
|
{ :get_all_contacts => { :input => "GetAllContacts", :output =>"GetAllContactsResponse", :action => "/api/api/GetAllContacts", :namespace_identifier => "typens" } },
|
20
|
-
{ :search_user => { :input => "SearchUser", :output =>"SearchUserResponse", :action => "/api/api/SearchUser", :namespace_identifier =>
|
20
|
+
{ :search_user => { :input => "SearchUser", :output =>"SearchUserResponse", :action => "/api/api/SearchUser", :namespace_identifier => nil } }
|
21
21
|
)
|
22
22
|
end
|
23
23
|
|
data/wasabi.gemspec
CHANGED
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.license = 'MIT'
|
16
16
|
|
17
17
|
s.add_dependency "httpi", "~> 2.0"
|
18
|
-
s.add_dependency "nokogiri", ">= 1.4.0"
|
18
|
+
s.add_dependency "nokogiri", ">= 1.4.0"
|
19
|
+
s.add_dependency "mime-types", "< 2.0.0"
|
19
20
|
|
20
21
|
s.add_development_dependency "rake", "~> 0.9"
|
21
22
|
s.add_development_dependency "rspec", "~> 2.10"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wasabi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpi
|
@@ -31,9 +31,6 @@ dependencies:
|
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.4.0
|
34
|
-
- - <
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '1.6'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -41,9 +38,20 @@ dependencies:
|
|
41
38
|
- - '>='
|
42
39
|
- !ruby/object:Gem::Version
|
43
40
|
version: 1.4.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mime-types
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - <
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
44
52
|
- - <
|
45
53
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
54
|
+
version: 2.0.0
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rake
|
49
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
165
|
version: '0'
|
158
166
|
requirements: []
|
159
167
|
rubyforge_project: wasabi
|
160
|
-
rubygems_version: 2.0.
|
168
|
+
rubygems_version: 2.0.3
|
161
169
|
signing_key:
|
162
170
|
specification_version: 4
|
163
171
|
summary: A simple WSDL parser
|