ruby-swift 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +2 -1
- data/lib/ruby-swift.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e2b51e6f7f50074a4885cf8436c54b83182a17c
|
|
4
|
+
data.tar.gz: d20f0cdeb344b48e3dec8601af0d21736dc019a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5465aaf43d2e650ae7362e39474a6dbf1c451a2c4c5c8c3b8d3ddd92591b801438d2029221b040dcf026dfb4527038829ab6eb93886dfb77da7daa6518cb493f
|
|
7
|
+
data.tar.gz: 32a16945bdac5cfb53d2775b57531191e7b578aa9c3a0c77894b2b1ef7687d228b64ccc0fcaa65cdfe6244996455c76b29b36a473f8e32ccdade7f61c392541d
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@ RubySwift
|
|
|
3
3
|
|
|
4
4
|
A ruby wrapper of the [Swift Digital Suite Mail House API](https://suite.swiftdigital.com.au/login).
|
|
5
5
|
|
|
6
|
-
This is currently a relatively crude wrapper and does not tidy responses from Swift a lot.
|
|
6
|
+
This is currently a relatively crude wrapper and does not tidy responses from Swift a lot. Contributions are welcome.
|
|
7
7
|
|
|
8
8
|
INSTALLATION
|
|
9
9
|
------------
|
|
@@ -99,3 +99,4 @@ TODO
|
|
|
99
99
|
----
|
|
100
100
|
* Tidy up responses (Hashie?)
|
|
101
101
|
* Return true/false instead of "0" for write actions
|
|
102
|
+
* Allow custom fields in write/update
|
data/lib/ruby-swift.rb
CHANGED
|
@@ -74,7 +74,7 @@ class RubySwift
|
|
|
74
74
|
|
|
75
75
|
# Generates a raw XML SOAP request document.
|
|
76
76
|
# I need to do it this way because the Swift SOAP server expects a particularly weird XML
|
|
77
|
-
# format that
|
|
77
|
+
# format that Savon does not naturally produce.
|
|
78
78
|
def request_body(operation, data)
|
|
79
79
|
"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"urn:pl\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ns2=\"http://xml.apache.org/xml-soap\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><ns1:#{operation}><param0 xsi:type=\"xsd:string\">#{@password}</param0><param1 xsi:type=\"ns2:Map\">#{hash_to_soap(data)}</param1></ns1:#{operation}></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
|
80
80
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-swift
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Buntine
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|
|
@@ -25,7 +25,7 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
description: A ruby wrapper of the Swift Digital Suite Mail House API (https://suite.swiftdigital.com.au).
|
|
28
|
-
email: bunts
|
|
28
|
+
email: info@bunts.io
|
|
29
29
|
executables: []
|
|
30
30
|
extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
|
@@ -33,7 +33,7 @@ files:
|
|
|
33
33
|
- LICENSE
|
|
34
34
|
- README.md
|
|
35
35
|
- lib/ruby-swift.rb
|
|
36
|
-
homepage: http://github.com/buntine/
|
|
36
|
+
homepage: http://github.com/buntine/RubySwift
|
|
37
37
|
licenses:
|
|
38
38
|
- MIT
|
|
39
39
|
metadata: {}
|
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
53
53
|
version: '0'
|
|
54
54
|
requirements: []
|
|
55
55
|
rubyforge_project:
|
|
56
|
-
rubygems_version: 2.
|
|
56
|
+
rubygems_version: 2.4.8
|
|
57
57
|
signing_key:
|
|
58
58
|
specification_version: 4
|
|
59
59
|
summary: A ruby wrapper of the Swift Digital Suite API.
|