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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad4024db6f2cc825dec1eb8223812bd8da45c884
4
- data.tar.gz: af57d52095cb5daf9b530f9974b65b9d747cda11
3
+ metadata.gz: 7f06aeea996211efa89a8230086c61177c28b4fa
4
+ data.tar.gz: c1e5bcaacd35bfe0122f4bd5b522dd1fad86abe0
5
5
  SHA512:
6
- metadata.gz: b61533673c5f483625c6bd884236c7592a03cfa0c6c8f5a47b18600cbc2e903ff5f83864fd85d53a42c3430de7f5a53907222c2bf0b19fc53338eb47fe625be6
7
- data.tar.gz: 59212805b9b770b20a37e175e950f9df1a4ff973ce52d0ca4b8b88f41b94678025684591480251900a930d4236ade904120a4eb14cbf5965e1d1cd9376f1db16
6
+ metadata.gz: 4b933663d3edb5ceed9a492cf25189f8d838758f58fd6f88d7353018813267006981b05ede2a8d3057e0e5b1f5696e4636f2aa6778137a0b0f493795565b43a0
7
+ data.tar.gz: 03cfffac4886354d15a5d69aab5f444356e5ec69c5b4109ec5735e5138fa37775f463c7b75acda2fe001ca96d1762f15b1b7624e4e334180c26c9fbafc1b815a
@@ -1,9 +1,6 @@
1
1
  rvm:
2
- - 1.8.7
3
2
  - 1.9.2
4
3
  - 1.9.3
5
- - jruby-18mode
4
+ - 2.0
6
5
  - jruby-19mode
7
- - rbx-18mode
8
- - rbx-19mode
9
- - ree
6
+ - rbx
data/Gemfile CHANGED
@@ -4,3 +4,10 @@ gemspec
4
4
  gem 'simplecov', :require => false
5
5
  gem 'method_profiler', :require => false
6
6
  gem 'coveralls', :require => false
7
+
8
+ platform :rbx do
9
+ gem 'json'
10
+ gem 'racc'
11
+ gem 'rubysl'
12
+ gem 'rubinius-coverage'
13
+ end
@@ -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! /([A-Z]+)([A-Z][a-z])/, '\1_\2'
10
- str.gsub! /([a-z\d])([A-Z])/, '\1_\2'
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!
@@ -25,7 +25,9 @@ module Wasabi
25
25
  self.document = document
26
26
  end
27
27
 
28
- attr_accessor :document, :request, :xml
28
+ attr_accessor :document, :request
29
+
30
+ attr_writer :xml
29
31
 
30
32
  alias_method :document?, :document
31
33
 
@@ -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
- port_message_ns_id, port_message_type = port_type_input_output.attribute("message").to_s.split(':')
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
 
@@ -1,5 +1,3 @@
1
1
  module Wasabi
2
-
3
- VERSION = "3.2.0"
4
-
2
+ VERSION = "3.2.1"
5
3
  end
@@ -73,8 +73,8 @@
73
73
  <output message="typens:GetAllContactsResponse"/>
74
74
  </operation>
75
75
  <operation name="SearchUser">
76
- <input message="typens:SearchUser"/>
77
- <output message="typens:SearchUserResponse"/>
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 => "typens" } }
20
+ { :search_user => { :input => "SearchUser", :output =>"SearchUserResponse", :action => "/api/api/SearchUser", :namespace_identifier => nil } }
21
21
  )
22
22
  end
23
23
 
@@ -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", "< 1.6"
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.0
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-07-26 00:00:00.000000000 Z
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: '1.6'
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.6
168
+ rubygems_version: 2.0.3
161
169
  signing_key:
162
170
  specification_version: 4
163
171
  summary: A simple WSDL parser