soap-object 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDIwMTlmZDU5ODgxODQwYjQxZjBiODJjYTRhZDQ1NTY0NGM0ZjFkMg==
4
+ MGFhODk0M2NiMTQ4NTRjMGZhOTkwOWViNzdjYjlhMGQxNDJkZDJmZQ==
5
5
  data.tar.gz: !binary |-
6
- NzMwMWY4Zjk4MmZlMTA5NGVmNDUyNWFkNWJlMzJlZDM3MmQ3NDI5Mw==
6
+ ODUyNjlhYTNmMjhiMWYzYWQwMDcwZjJjMTFjNmY2MzUxYjYxNWIyMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjQxMDkzODA0MjdjNWUzNDIwZWQ2Nzk2Nzc2MzYzNjU5NzFkZjY3NGMxYWU4
10
- MzJlOWQ2NzkxYzI2OTlhMThjOTgwYzJhNDU1OTI3NWE1YWQ5NjQ3NmEwMWRl
11
- N2UwYmMyY2I4NGFlMTA3NjY4YmYwNjU3MDU4NTM0NjUwNTJjMjk=
9
+ ZThhYmYyZTA2ZWI4NzRiZTAyMjUwMTUzMWU1YjUxN2I1MDE4ODBkYTlmZWJl
10
+ YThjYTMwOTkyYTU1NTRkMTk5MDRlNjY3NGNkMzlhZjBmZjg0N2NjYzczNmU2
11
+ MjNlMjNkNDY3ZDJhZDg1MjI5NTQzYTYxM2YxMDE0ZmI5MTNjMTg=
12
12
  data.tar.gz: !binary |-
13
- ZWU0MTQ5YWRkYjFmYjk1YmMxY2M5MjFjNDFlMDQ3MWEzMWQwMjNhMWYyOGNk
14
- NjI3NmRlMDc5MDZjMmI2MDE0ZjZjYmU2ZDQzZWRhZWE4Nzc2MGZjYjUzOTll
15
- M2ZiZmFiYzY2NjQxMjZkODkwOWUwNWFhNTgzMzA4NzM3ZDJiN2M=
13
+ OThjYzMxZWEyMWEyMGJkZjJmNDJjNzI1Yzc2M2I4NzgzYTA3ZThhMDVlYjNl
14
+ NGMwNjU4NGVhYzNjNjU0MDFjODAxODcyZjBkZjc0MmMzMmIzOTdlZDM0YTFk
15
+ ZWVhYjkwNTBlNWZmZWU3OWMzMWMwZDhiZGNiYjEwYWEwMWVmZTE=
data/.gitignore CHANGED
@@ -1,20 +1,20 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- *.swp
19
- TAGS
20
- .idea/
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.swp
19
+ TAGS
20
+ .idea/
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
- --color
1
+ --color
2
2
  --format doc
@@ -1 +1 @@
1
- soap-object
1
+ soap-object
@@ -1 +1 @@
1
- ruby-2.0.0-p195
1
+ ruby-2.0.0-p195
data/ChangeLog CHANGED
@@ -1,50 +1,50 @@
1
- === Version 0.6.3 / 2015-3-26
2
- * Enhancements
3
- * Added ability to disable ssl verification
4
-
5
- === Version 0.6.2 / 2015-3-12
6
- * Enhancements
7
- * Calling xpath on Savon response, to take advantage of namespace collecting from response.
8
-
9
- === Version 0.6.1 / 2015-3-12
10
- * Enhancements
11
- * Added xpath method to return to allow user to access path directly
12
-
13
- === Version 0.6 / 2014-12-22
14
- * Enhancements
15
- * Added ability to call operation with hand rolled xml
16
- * Disabled logging by default, setting log_level enables it
17
-
18
- === Version 0.5.1 / 2013-6-1
19
- * Enhancements
20
- * Added body method to return the body of the result as a Hash
21
-
22
- === Version 0.5 / 2013-6-1
23
- * Enhancements
24
- * Removed the body accessor
25
- * Removed the body_xml method
26
- * Added to_xml method to return the response as a String containing the XML
27
- * Added to_hash method to return the respons as a Hash
28
- * Added doc method to return response as a Nokogiri::XML::Document document
29
- * Updated method_missing so when services methods are called the raw XML is returned
30
-
31
- === Version 0.4 / 2013-3-18
32
- * Enhancements
33
- * Added body accessor to SoapObject to return raw body
34
- * Added body_xml method to SoapObject to return Nokogiri::XML::Document containing body
35
-
36
- === Version 0.3 / 2013-3-17
37
- * Enhancements
38
- * Added SoapObject::Factory to assist in creating new service objects
39
- * Added accessor for @response
40
-
41
- === Version 0.2 / 2013-3-11
42
- * Enhancements
43
- * Added ability to add XML to the soap header
44
- * Added ability to set the encoding for the messages
45
- * Added ability to use basic authentication
46
- * Added ability to use digest authentication
47
- * Added ability to set the log level
48
-
49
- === Version 0.1 / 2013-3-4
50
- Initial release
1
+ === Version 0.6.3 / 2015-3-26
2
+ * Enhancements
3
+ * Added ability to disable ssl verification
4
+
5
+ === Version 0.6.2 / 2015-3-12
6
+ * Enhancements
7
+ * Calling xpath on Savon response, to take advantage of namespace collecting from response.
8
+
9
+ === Version 0.6.1 / 2015-3-12
10
+ * Enhancements
11
+ * Added xpath method to return to allow user to access path directly
12
+
13
+ === Version 0.6 / 2014-12-22
14
+ * Enhancements
15
+ * Added ability to call operation with hand rolled xml
16
+ * Disabled logging by default, setting log_level enables it
17
+
18
+ === Version 0.5.1 / 2013-6-1
19
+ * Enhancements
20
+ * Added body method to return the body of the result as a Hash
21
+
22
+ === Version 0.5 / 2013-6-1
23
+ * Enhancements
24
+ * Removed the body accessor
25
+ * Removed the body_xml method
26
+ * Added to_xml method to return the response as a String containing the XML
27
+ * Added to_hash method to return the respons as a Hash
28
+ * Added doc method to return response as a Nokogiri::XML::Document document
29
+ * Updated method_missing so when services methods are called the raw XML is returned
30
+
31
+ === Version 0.4 / 2013-3-18
32
+ * Enhancements
33
+ * Added body accessor to SoapObject to return raw body
34
+ * Added body_xml method to SoapObject to return Nokogiri::XML::Document containing body
35
+
36
+ === Version 0.3 / 2013-3-17
37
+ * Enhancements
38
+ * Added SoapObject::Factory to assist in creating new service objects
39
+ * Added accessor for @response
40
+
41
+ === Version 0.2 / 2013-3-11
42
+ * Enhancements
43
+ * Added ability to add XML to the soap header
44
+ * Added ability to set the encoding for the messages
45
+ * Added ability to use basic authentication
46
+ * Added ability to use digest authentication
47
+ * Added ability to set the log level
48
+
49
+ === Version 0.1 / 2013-3-4
50
+ Initial release
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in soap-object.gemspec
4
-
5
- gem 'rake'
6
- gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
7
- gem 'growl'
8
- gem 'guard-rspec'
9
- gem 'guard-cucumber'
10
-
11
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in soap-object.gemspec
4
+
5
+ gem 'rake'
6
+ gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
7
+ gem 'growl'
8
+ gem 'guard-rspec'
9
+ gem 'guard-cucumber'
10
+
11
+ gemspec
data/Guardfile CHANGED
@@ -1,17 +1,17 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard 'rspec', :cli => '--color --format doc' do
5
- watch(%r{^spec/.+_spec\.rb$})
6
- watch(%r{^lib/(.+)\.rb$}) { "spec" }
7
- watch('spec/spec_helper.rb') { "spec" }
8
- end
9
-
10
-
11
- guard 'cucumber', :notification => true, :all_after_pass => false, :cli => '--profile focus' do
12
- watch(%r{^features/.+\.feature$})
13
- watch(%r{^features/support/.+$}) { 'features' }
14
- watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
15
- watch(%r{^lib/.+\.rb$}) { "features" }
16
- watch(%r{^cucumber.yml$}) { "features" }
17
- end
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'rspec', :cli => '--color --format doc' do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { "spec" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+ end
9
+
10
+
11
+ guard 'cucumber', :notification => true, :all_after_pass => false, :cli => '--profile focus' do
12
+ watch(%r{^features/.+\.feature$})
13
+ watch(%r{^features/support/.+$}) { 'features' }
14
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
15
+ watch(%r{^lib/.+\.rb$}) { "features" }
16
+ watch(%r{^cucumber.yml$}) { "features" }
17
+ end
@@ -1,22 +1,22 @@
1
- Copyright (c) 2013 Jeffrey S. Morgan
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1
+ Copyright (c) 2013 Jeffrey S. Morgan
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
22
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,42 +1,42 @@
1
- # Soap::Object
2
-
3
- Module to make it simpler to tests SOAP web services. The goal is
4
- to abstract all information about how your call and parse results
5
- from the web service within the soap objects.
6
-
7
- ````ruby
8
- class AirportService
9
- include SoapObject
10
-
11
- wsdl 'http://www.webservicex.net/airport.asmx?WSDL'
12
-
13
- def get_airport_name_for(airport_code)
14
- response = get_airport_information_by_airport_code airport_code: airport_code
15
- doc = Nokogiri::XML(response)
16
- doc.xpath('//Table/CityOrAirportName').first.content
17
- end
18
- end
19
- ````
20
-
21
- ## Installation
22
-
23
- Add this line to your application's Gemfile:
24
-
25
- gem 'soap-object'
26
-
27
- And then execute:
28
-
29
- $ bundle
30
-
31
- Or install it yourself as:
32
-
33
- $ gem install soap-object
34
-
35
-
36
- ## Contributing
37
-
38
- 1. Fork it
39
- 2. Create your feature branch (`git checkout -b my-new-feature`)
40
- 3. Commit your changes (`git commit -am 'Add some feature'`)
41
- 4. Push to the branch (`git push origin my-new-feature`)
42
- 5. Create new Pull Request
1
+ # Soap::Object
2
+
3
+ Module to make it simpler to tests SOAP web services. The goal is
4
+ to abstract all information about how your call and parse results
5
+ from the web service within the soap objects.
6
+
7
+ ````ruby
8
+ class AirportService
9
+ include SoapObject
10
+
11
+ wsdl 'http://www.webservicex.net/airport.asmx?WSDL'
12
+
13
+ def get_airport_name_for(airport_code)
14
+ response = get_airport_information_by_airport_code airport_code: airport_code
15
+ doc = Nokogiri::XML(response)
16
+ doc.xpath('//Table/CityOrAirportName').first.content
17
+ end
18
+ end
19
+ ````
20
+
21
+ ## Installation
22
+
23
+ Add this line to your application's Gemfile:
24
+
25
+ gem 'soap-object'
26
+
27
+ And then execute:
28
+
29
+ $ bundle
30
+
31
+ Or install it yourself as:
32
+
33
+ $ gem install soap-object
34
+
35
+
36
+ ## Contributing
37
+
38
+ 1. Fork it
39
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
40
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
41
+ 4. Push to the branch (`git push origin my-new-feature`)
42
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,21 +1,21 @@
1
- require "bundler/gem_tasks"
2
-
3
- require 'rspec/core/rake_task'
4
- require 'cucumber'
5
- require 'cucumber/rake/task'
6
-
7
- RSpec::Core::RakeTask.new(:spec) do |spec|
8
- spec.ruby_opts = "-I lib:spec"
9
- spec.pattern = 'spec/**/*_spec.rb'
10
- end
11
- task :spec
12
-
13
- Cucumber::Rake::Task.new(:features, "Run all features") do |t|
14
- t.profile = 'focus'
15
- end
16
-
17
- desc 'Run all specs and features'
18
- task :test => %w[spec features]
19
-
20
- task :default => :test
21
-
1
+ require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+ require 'cucumber'
5
+ require 'cucumber/rake/task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec) do |spec|
8
+ spec.ruby_opts = "-I lib:spec"
9
+ spec.pattern = 'spec/**/*_spec.rb'
10
+ end
11
+ task :spec
12
+
13
+ Cucumber::Rake::Task.new(:features, "Run all features") do |t|
14
+ t.profile = 'focus'
15
+ end
16
+
17
+ desc 'Run all specs and features'
18
+ task :test => %w[spec features]
19
+
20
+ task :default => :test
21
+
@@ -1,6 +1,6 @@
1
- <%
2
- std_opts = "--no-source --color --format pretty"
3
- %>
4
-
5
- default: <%= std_opts %>
6
- focus: <%= std_opts %> --tags @focus
1
+ <%
2
+ std_opts = "--no-source --color --format pretty"
3
+ %>
4
+
5
+ default: <%= std_opts %>
6
+ focus: <%= std_opts %> --tags @focus
@@ -1,40 +1,40 @@
1
- @focus
2
- Feature: This describes the core functionality of the SoapObject object
3
-
4
- Scenario: Establishing communications with remote wsdl
5
- Given I have the url for a remote wsdl
6
- When I create an instance of the SoapObject class
7
- Then I should have a connection
8
-
9
- Scenario: Establishing communications with a local wsdl
10
- Given I have a wsdl file residing locally
11
- When I create an instance of the SoapObject class
12
- Then I should have a connection
13
-
14
- Scenario: Providing operations when using wsdl
15
- Given I have the url for a remote wsdl
16
- When I create an instance of the SoapObject class
17
- Then I should be able to determine the operations
18
-
19
- Scenario: Calling a service when using wsdl
20
- Given I have the url for a remote wsdl
21
- When I create an instance of the SoapObject class
22
- Then I should be able to make a call and receive the correct results
23
-
24
- Scenario: Getting the xml from a response
25
- Given I have the url for a remote wsdl
26
- When I create an instance of the SoapObject class
27
- Then I should be able to make a call and receive the correct results
28
- And the results xml should contain "<STATE>CA"
29
-
30
- Scenario: Getting the doc from a response as a Nokogiri object
31
- Given I have the url for a remote wsdl
32
- When I create an instance of the SoapObject class
33
- Then I should be able to make a call and receive the correct results
34
- And the results doc should be a Nokogiri XML object
35
-
36
- Scenario: Calling another service with wsdl
37
- Given I am calling the Define service
38
- When I create an instance of the SoapObject class
39
- Then I should be able to get the correct definition results
40
-
1
+ @focus
2
+ Feature: This describes the core functionality of the SoapObject object
3
+
4
+ Scenario: Establishing communications with remote wsdl
5
+ Given I have the url for a remote wsdl
6
+ When I create an instance of the SoapObject class
7
+ Then I should have a connection
8
+
9
+ Scenario: Establishing communications with a local wsdl
10
+ Given I have a wsdl file residing locally
11
+ When I create an instance of the SoapObject class
12
+ Then I should have a connection
13
+
14
+ Scenario: Providing operations when using wsdl
15
+ Given I have the url for a remote wsdl
16
+ When I create an instance of the SoapObject class
17
+ Then I should be able to determine the operations
18
+
19
+ Scenario: Calling a service when using wsdl
20
+ Given I have the url for a remote wsdl
21
+ When I create an instance of the SoapObject class
22
+ Then I should be able to make a call and receive the correct results
23
+
24
+ Scenario: Getting the xml from a response
25
+ Given I have the url for a remote wsdl
26
+ When I create an instance of the SoapObject class
27
+ Then I should be able to make a call and receive the correct results
28
+ And the results xml should contain "<STATE>CA"
29
+
30
+ Scenario: Getting the doc from a response as a Nokogiri object
31
+ Given I have the url for a remote wsdl
32
+ When I create an instance of the SoapObject class
33
+ Then I should be able to make a call and receive the correct results
34
+ And the results doc should be a Nokogiri XML object
35
+
36
+ Scenario: Calling another service with wsdl
37
+ Given I am calling the Define service
38
+ When I create an instance of the SoapObject class
39
+ Then I should be able to get the correct definition results
40
+