savon 2.10.1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18f0b7e0ce70c3e4875a47aec303544e0bddd385
4
- data.tar.gz: baff63ce5ef87a00e0b3737c69a31f86fdfa1694
3
+ metadata.gz: 0909b11e5dac2bc60b3e2e15f8bf614dff389309
4
+ data.tar.gz: bbf115546c00147d8703abada768abd1fa5b1abe
5
5
  SHA512:
6
- metadata.gz: 45cdba7801e11d255ebf71aa73a7fc8f56249b9a4e58362957326b99e1fedc7b6ef53c1ed543228626d56316fedfc94c151e6596cd09b84d832ab0834f5500de
7
- data.tar.gz: 1f8fdf10425799438c3be1619311360406756ffad3aa22007196227050f766ad2b021abbbc6a457e845c5e05ef157ab89c623612639189ff11d5db3bc16f0073
6
+ metadata.gz: ae80080f90960964cf8f71f017193bf454fa5027f6607076942c9144c2cc2bfd1d7ea4d8afcc3013e1fc4a1170588b8693a654f6c0a8d714c61777aa5b48fe37
7
+ data.tar.gz: f05c5afce92f799b1cf96c019f51e7cb224f6364e4c82677cfdffd9b1a49de149879c0099b0f535b50257fd8e83b188e62e36e9bb6bfb7bf3a6f45aa8236ad7d
@@ -1,8 +1,12 @@
1
- * 2.10.1 (2015-03-15)
1
+ # 2.11.0 (2015-03-31)
2
+
3
+ * Formally drop support for 1.8.7.
4
+
5
+ # 2.10.1 (2015-03-15)
2
6
 
3
7
  * Feature: [#673](https://github.com/savonrb/savon/pull/673) Adds an :unwrap option that is passed to Gyoku.
4
8
 
5
- * 2.10.0 (2015-03-02)
9
+ # 2.10.0 (2015-03-02)
6
10
 
7
11
  * Fix: This reverts a purported "fix" to operation names.
8
12
 
data/README.md CHANGED
@@ -5,7 +5,7 @@ Heavy metal SOAP client
5
5
  [Documentation](http://savonrb.com) | [RDoc](http://rubydoc.info/gems/savon) |
6
6
  [Mailing list](https://groups.google.com/forum/#!forum/savonrb) | [Twitter](http://twitter.com/savonrb)
7
7
 
8
- [![Build Status](https://secure.travis-ci.org/savonrb/savon.png?branch=version2)](http://travis-ci.org/savonrb/savon)
8
+ [![Build Status](https://secure.travis-ci.org/savonrb/savon.png?branch=master)](http://travis-ci.org/savonrb/savon)
9
9
  [![Gem Version](https://badge.fury.io/rb/savon.png)](http://badge.fury.io/rb/savon)
10
10
  [![Code Climate](https://codeclimate.com/github/savonrb/savon.png)](https://codeclimate.com/github/savonrb/savon)
11
11
  [![Coverage Status](https://coveralls.io/repos/savonrb/savon/badge.png?branch=version2)](https://coveralls.io/r/savonrb/savon)
@@ -22,7 +22,7 @@ $ gem install savon
22
22
  or add it to your Gemfile like this:
23
23
 
24
24
  ```
25
- gem 'savon', '~> 2.8.0'
25
+ gem 'savon', '~> 2.10.0'
26
26
  ```
27
27
 
28
28
  ## Usage example
@@ -1,3 +1,3 @@
1
1
  module Savon
2
- VERSION = '2.10.1'
2
+ VERSION = '2.11.0'
3
3
  end
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.homepage = "http://savonrb.com"
13
13
  s.summary = "Heavy metal SOAP client"
14
14
  s.description = s.summary
15
+ s.required_ruby_version = '>= 1.9.2'
15
16
 
16
17
  s.rubyforge_project = s.name
17
18
  s.license = 'MIT'
@@ -22,15 +23,8 @@ Gem::Specification.new do |s|
22
23
  s.add_dependency "akami", "~> 1.2"
23
24
  s.add_dependency "gyoku", "~> 1.2"
24
25
  s.add_dependency "uuid", "~> 2.3.7"
25
-
26
26
  s.add_dependency "builder", ">= 2.1.2"
27
-
28
- if RUBY_VERSION[0,3] == "1.8"
29
- # nokogiri 1.6 dropped support for ruby 1.8
30
- s.add_dependency "nokogiri", ">= 1.4.0", "< 1.6"
31
- else
32
- s.add_dependency "nokogiri", ">= 1.4.0"
33
- end
27
+ s.add_dependency "nokogiri", ">= 1.4.0"
34
28
 
35
29
  s.add_development_dependency "rack"
36
30
  s.add_development_dependency "puma", "2.0.0.b4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savon
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.1
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Harrington
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nori
@@ -219,7 +219,6 @@ files:
219
219
  - CONTRIBUTING.md
220
220
  - Gemfile
221
221
  - LICENSE
222
- - NotificationBroker.wsdl
223
222
  - README.md
224
223
  - Rakefile
225
224
  - donate.png
@@ -304,7 +303,6 @@ files:
304
303
  - spec/support/fixture.rb
305
304
  - spec/support/integration.rb
306
305
  - spec/support/stdout.rb
307
- - test.rb
308
306
  homepage: http://savonrb.com
309
307
  licenses:
310
308
  - MIT
@@ -317,7 +315,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
317
315
  requirements:
318
316
  - - ">="
319
317
  - !ruby/object:Gem::Version
320
- version: '0'
318
+ version: 1.9.2
321
319
  required_rubygems_version: !ruby/object:Gem::Requirement
322
320
  requirements:
323
321
  - - ">="
@@ -1,126 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <wsdl:definitions name="NotificationBrokerService"
3
- targetNamespace="http://docs.oasis-open.org/wsn/brw-2"
4
- xmlns:tns="http://docs.oasis-open.org/wsn/brw-2"
5
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
6
- xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
7
- xmlns:ns1="http://docs.oasis-open.org/wsn/brw-2">
8
-
9
- <wsdl:import namespace="http://docs.oasis-open.org/wsn/brw-2" location="http://docs.oasis-open.org/wsn/brw-2.wsdl"/>
10
-
11
- <wsdl:binding name="NotificationBrokerSoapBinding" type="ns1:NotificationBroker">
12
- <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
13
- <wsdl:operation name="Notify">
14
- <soap12:operation soapAction="" soapActionRequired="false" style="document"/>
15
- <wsdl:input name="Notify">
16
- <soap12:body use="literal"/>
17
- </wsdl:input>
18
- </wsdl:operation>
19
- <wsdl:operation name="GetCurrentMessage">
20
- <soap12:operation soapAction="" soapActionRequired="false" style="document"/>
21
- <wsdl:input name="GetCurrentMessageRequest">
22
- <soap12:body use="literal"/>
23
- </wsdl:input>
24
- <wsdl:output name="GetCurrentMessageResponse">
25
- <soap12:body use="literal"/>
26
- </wsdl:output>
27
- <wsdl:fault name="TopicNotSupportedFault">
28
- <soap12:fault name="TopicNotSupportedFault" use="literal"/>
29
- </wsdl:fault>
30
- <wsdl:fault name="TopicExpressionDialectUnknownFault">
31
- <soap12:fault name="TopicExpressionDialectUnknownFault" use="literal"/>
32
- </wsdl:fault>
33
- <wsdl:fault name="MultipleTopicsSpecifiedFault">
34
- <soap12:fault name="MultipleTopicsSpecifiedFault" use="literal"/>
35
- </wsdl:fault>
36
- <wsdl:fault name="InvalidTopicExpressionFault">
37
- <soap12:fault name="InvalidTopicExpressionFault" use="literal"/>
38
- </wsdl:fault>
39
- <wsdl:fault name="ResourceUnknownFault">
40
- <soap12:fault name="ResourceUnknownFault" use="literal"/>
41
- </wsdl:fault>
42
- <wsdl:fault name="NoCurrentMessageOnTopicFault">
43
- <soap12:fault name="NoCurrentMessageOnTopicFault" use="literal"/>
44
- </wsdl:fault>
45
- </wsdl:operation>
46
- <wsdl:operation name="RegisterPublisher">
47
- <soap12:operation soapAction="" soapActionRequired="false" style="document"/>
48
- <wsdl:input name="RegisterPublisherRequest">
49
- <soap12:body use="literal"/>
50
- </wsdl:input>
51
- <wsdl:output name="RegisterPublisherResponse">
52
- <soap12:body use="literal"/>
53
- </wsdl:output>
54
- <wsdl:fault name="TopicNotSupportedFault">
55
- <soap12:fault name="TopicNotSupportedFault" use="literal"/>
56
- </wsdl:fault>
57
- <wsdl:fault name="PublisherRegistrationFailedFault">
58
- <soap12:fault name="PublisherRegistrationFailedFault" use="literal"/>
59
- </wsdl:fault>
60
- <wsdl:fault name="UnacceptableInitialTerminationTimeFault">
61
- <soap12:fault name="UnacceptableInitialTerminationTimeFault" use="literal"/>
62
- </wsdl:fault>
63
- <wsdl:fault name="InvalidTopicExpressionFault">
64
- <soap12:fault name="InvalidTopicExpressionFault" use="literal"/>
65
- </wsdl:fault>
66
- <wsdl:fault name="ResourceUnknownFault">
67
- <soap12:fault name="ResourceUnknownFault" use="literal"/>
68
- </wsdl:fault>
69
- <wsdl:fault name="PublisherRegistrationRejectedFault">
70
- <soap12:fault name="PublisherRegistrationRejectedFault" use="literal"/>
71
- </wsdl:fault>
72
- </wsdl:operation>
73
- <wsdl:operation name="Subscribe">
74
- <soap12:operation soapAction="" soapActionRequired="false" style="document"/>
75
- <wsdl:input name="SubscribeRequest">
76
- <soap12:body use="literal"/>
77
- </wsdl:input>
78
- <wsdl:output name="SubscribeResponse">
79
- <soap12:body use="literal"/>
80
- </wsdl:output>
81
- <wsdl:fault name="TopicNotSupportedFault">
82
- <soap12:fault name="TopicNotSupportedFault" use="literal"/>
83
- </wsdl:fault>
84
- <wsdl:fault name="InvalidFilterFault">
85
- <soap12:fault name="InvalidFilterFault" use="literal"/>
86
- </wsdl:fault>
87
- <wsdl:fault name="TopicExpressionDialectUnknownFault">
88
- <soap12:fault name="TopicExpressionDialectUnknownFault" use="literal"/>
89
- </wsdl:fault>
90
- <wsdl:fault name="UnacceptableInitialTerminationTimeFault">
91
- <soap12:fault name="UnacceptableInitialTerminationTimeFault" use="literal"/>
92
- </wsdl:fault>
93
- <wsdl:fault name="SubscribeCreationFailedFault">
94
- <soap12:fault name="SubscribeCreationFailedFault" use="literal"/>
95
- </wsdl:fault>
96
- <wsdl:fault name="InvalidMessageContentExpressionFault">
97
- <soap12:fault name="InvalidMessageContentExpressionFault" use="literal"/>
98
- </wsdl:fault>
99
- <wsdl:fault name="InvalidTopicExpressionFault">
100
- <soap12:fault name="InvalidTopicExpressionFault" use="literal"/>
101
- </wsdl:fault>
102
- <wsdl:fault name="UnrecognizedPolicyRequestFault">
103
- <soap12:fault name="UnrecognizedPolicyRequestFault" use="literal"/>
104
- </wsdl:fault>
105
- <wsdl:fault name="ResourceUnknownFault">
106
- <soap12:fault name="ResourceUnknownFault" use="literal"/>
107
- </wsdl:fault>
108
- <wsdl:fault name="UnsupportedPolicyRequestFault">
109
- <soap12:fault name="UnsupportedPolicyRequestFault" use="literal"/>
110
- </wsdl:fault>
111
- <wsdl:fault name="NotifyMessageNotSupportedFault">
112
- <soap12:fault name="NotifyMessageNotSupportedFault" use="literal"/>
113
- </wsdl:fault>
114
- <wsdl:fault name="InvalidProducerPropertiesExpressionFault">
115
- <soap12:fault name="InvalidProducerPropertiesExpressionFault" use="literal"/>
116
- </wsdl:fault>
117
- </wsdl:operation>
118
- </wsdl:binding>
119
-
120
- <wsdl:service name="NotificationBrokerService">
121
- <wsdl:port binding="tns:NotificationBrokerSoapBinding" name="NotificationBrokerPort">
122
- <soap12:address location="http://192.70.89.113:9000/wsn/NotificationBroker"/>
123
- </wsdl:port>
124
- </wsdl:service>
125
-
126
- </wsdl:definitions>
data/test.rb DELETED
@@ -1,64 +0,0 @@
1
- require 'savon'
2
-
3
- class MyConfig
4
- def wsdl; "NotificationBroker.wsdl"; end
5
- def base; "base"; end
6
- end
7
-
8
-
9
- # Main module
10
- module Surv
11
- class Client
12
- attr_accessor :topics
13
- attr_reader :client, :config
14
-
15
- def initialize(config)
16
- @topics = Hash.new
17
-
18
- #$stderr.puts("Entry point is #{config.proto}://#{config.site}:#{config.port}/#{config.entry}.")
19
-
20
- client = Savon.client(wsdl: config.wsdl,
21
- strip_namespaces: false,
22
- log_level: :info,
23
- convert_request_keys_to: :camelcase,
24
- #pretty_print_xml: true,
25
- )
26
-
27
- #$stderr.puts("Entry point: #{client.wsdl.endpoint}")
28
- $stderr.puts("Init done.")
29
- $stderr.puts("Available methods: #{client.operations}")
30
- @client = client
31
- @config = config
32
- end
33
-
34
- def subscribe(topic, callback="callback")
35
- my_topic = "#{@config.base}/#{callback}"
36
- message = {
37
- ConsumerReference: {
38
- Address: my_topic,
39
- },
40
- Filter: {
41
- TopicExpression: topic,
42
- },
43
- }
44
-
45
- $stderr.puts(message)
46
- $stderr.puts(" Subscribing #{my_topic} for #{topic}")
47
-
48
- # @topics[callback] = Topic.new(callback)
49
- # @topics[callback].bytes = 0
50
- # @topics[callback].pkts = 0
51
-
52
- begin
53
- resp = client.call(:subscribe, message: message)
54
- rescue Savon::Error => error
55
- $stderr.puts("Error: #{error.http.code} #{error}")
56
- else
57
- puts "ZOMG request was successful??? #{resp}"
58
- end
59
- end
60
- end
61
- end
62
-
63
-
64
- Surv::Client.new(MyConfig.new).subscribe('AsterixJSONGzipped')