docusignsdk 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.6.4"
12
+ gem "rcov", ">= 0"
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,20 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.6.4)
6
+ bundler (~> 1.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.9.2)
10
+ rcov (0.9.10)
11
+ shoulda (2.11.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 1.0.0)
18
+ jeweler (~> 1.6.4)
19
+ rcov
20
+ shoulda
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 nicholas reed
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = docusignsdk
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to docusignsdk
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
+ * Fork the project
10
+ * Start a feature/bugfix branch
11
+ * Commit and push until you are happy with your contribution
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2011 nicholas reed. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "docusignsdk"
18
+ gem.homepage = "http://github.com/nicholasareed/docusignsdk"
19
+ gem.license = "MIT"
20
+ gem.summary = "DocuSign Ruby Gem"
21
+ gem.description = "DocuSign Ruby Gem"
22
+ gem.email = "nicholas.a.reed@gmail.com"
23
+ gem.authors = ["nicholas reed"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "docusignsdk #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,84 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{docusignsdk}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["nicholas reed"]
12
+ s.date = %q{2011-08-28}
13
+ s.description = %q{DocuSign Ruby Gem}
14
+ s.email = %q{nicholas.a.reed@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "docusignsdk.gemspec",
28
+ "lib/Credential.wsdl",
29
+ "lib/docusign.rb",
30
+ "lib/docusign/anchor_tab.rb",
31
+ "lib/docusign/auth_header_handler.rb",
32
+ "lib/docusign/base.rb",
33
+ "lib/docusign/builder/anchor_builder.rb",
34
+ "lib/docusign/builder/base.rb",
35
+ "lib/docusign/builder/tab_builder.rb",
36
+ "lib/docusign/credential.rb",
37
+ "lib/docusign/credentialDriver.rb",
38
+ "lib/docusign/credentialMappingRegistry.rb",
39
+ "lib/docusign/document.rb",
40
+ "lib/docusign/docusign.rb",
41
+ "lib/docusign/docusignDriver.rb",
42
+ "lib/docusign/docusignMappingRegistry.rb",
43
+ "lib/docusign/extensions.rb",
44
+ "lib/docusign/integrators_key_auth_header_handler.rb",
45
+ "lib/docusign/request_recipient_token_client_urls.rb",
46
+ "lib/docusign/tab.rb",
47
+ "lib/docusign/utilities.rb",
48
+ "lib/docusignsdk.rb",
49
+ "lib/wsdl/DocuSign3.0.10API.wsdl",
50
+ "lib/wsdl/DocuSign3.0.11API.wsdl",
51
+ "lib/wsdl/DocuSign3.0.2API.wsdl",
52
+ "lib/wsdl/DocuSign3.0.2CredentialAPI.wsdl",
53
+ "test/helper.rb",
54
+ "test/test_docusignsdk.rb"
55
+ ]
56
+ s.homepage = %q{http://github.com/nicholasareed/docusignsdk}
57
+ s.licenses = ["MIT"]
58
+ s.require_paths = ["lib"]
59
+ s.rubygems_version = %q{1.3.7}
60
+ s.summary = %q{DocuSign Ruby Gem}
61
+
62
+ if s.respond_to? :specification_version then
63
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
64
+ s.specification_version = 3
65
+
66
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
67
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
68
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
69
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
70
+ s.add_development_dependency(%q<rcov>, [">= 0"])
71
+ else
72
+ s.add_dependency(%q<shoulda>, [">= 0"])
73
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
74
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
75
+ s.add_dependency(%q<rcov>, [">= 0"])
76
+ end
77
+ else
78
+ s.add_dependency(%q<shoulda>, [">= 0"])
79
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
80
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
81
+ s.add_dependency(%q<rcov>, [">= 0"])
82
+ end
83
+ end
84
+
@@ -0,0 +1,229 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.docusign.net/API/Credential" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.docusign.net/API/Credential" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
3
+ <wsdl:types>
4
+ <s:schema elementFormDefault="qualified" targetNamespace="http://www.docusign.net/API/Credential">
5
+ <s:element name="Ping">
6
+ <s:complexType />
7
+ </s:element>
8
+ <s:element name="PingResponse">
9
+ <s:complexType>
10
+ <s:sequence>
11
+ <s:element minOccurs="1" maxOccurs="1" name="PingResult" type="s:boolean" />
12
+ </s:sequence>
13
+ </s:complexType>
14
+ </s:element>
15
+ <s:element name="Login">
16
+ <s:complexType>
17
+ <s:sequence>
18
+ <s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
19
+ <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
20
+ </s:sequence>
21
+ </s:complexType>
22
+ </s:element>
23
+ <s:element name="LoginResponse">
24
+ <s:complexType>
25
+ <s:sequence>
26
+ <s:element minOccurs="0" maxOccurs="1" name="LoginResult">
27
+ <s:complexType>
28
+ <s:sequence>
29
+ <s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
30
+ <s:element minOccurs="0" maxOccurs="1" name="ErrorCode" type="tns:ErrorCode" />
31
+ <s:element minOccurs="0" maxOccurs="1" name="AuthenticationMessage" type="s:string" />
32
+ <s:element minOccurs="0" maxOccurs="1" name="Accounts" type="tns:ArrayOfAccount" />
33
+ </s:sequence>
34
+ </s:complexType>
35
+ </s:element>
36
+ </s:sequence>
37
+ </s:complexType>
38
+ </s:element>
39
+ <s:simpleType name="ErrorCode">
40
+ <s:restriction base="s:string">
41
+ <s:enumeration value="User_Does_Not_Exist_In_System" />
42
+ <s:enumeration value="Account_Lacks_Permissions" />
43
+ <s:enumeration value="User_Lacks_Permissions" />
44
+ <s:enumeration value="User_Authentication_Failed" />
45
+ <s:enumeration value="Unspecified_Error" />
46
+ <s:enumeration value="Success" />
47
+ </s:restriction>
48
+ </s:simpleType>
49
+ <s:complexType name="ArrayOfAccount">
50
+ <s:sequence>
51
+ <s:element minOccurs="0" maxOccurs="unbounded" name="Account">
52
+ <s:complexType>
53
+ <s:sequence>
54
+ <s:element minOccurs="0" maxOccurs="1" name="AccountID" type="s:string" />
55
+ <s:element minOccurs="0" maxOccurs="1" name="AccountName" type="s:string" />
56
+ <s:element minOccurs="0" maxOccurs="1" name="UserID" type="s:string" />
57
+ <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
58
+ <s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
59
+ </s:sequence>
60
+ </s:complexType>
61
+ </s:element>
62
+ </s:sequence>
63
+ </s:complexType>
64
+ <s:element name="GetAuthenticationToken">
65
+ <s:complexType>
66
+ <s:sequence>
67
+ <s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
68
+ <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
69
+ <s:element minOccurs="0" maxOccurs="1" name="AccountID" type="s:string" />
70
+ <s:element minOccurs="0" maxOccurs="1" name="GoToEnvelopeID" type="s:string" />
71
+ </s:sequence>
72
+ </s:complexType>
73
+ </s:element>
74
+ <s:element name="GetAuthenticationTokenResponse">
75
+ <s:complexType>
76
+ <s:sequence>
77
+ <s:element minOccurs="0" maxOccurs="1" name="GetAuthenticationTokenResult" type="s:string" />
78
+ </s:sequence>
79
+ </s:complexType>
80
+ </s:element>
81
+ <s:element name="RequestSenderToken">
82
+ <s:complexType>
83
+ <s:sequence>
84
+ <s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
85
+ <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
86
+ <s:element minOccurs="0" maxOccurs="1" name="AccountID" type="s:string" />
87
+ <s:element minOccurs="0" maxOccurs="1" name="EnvelopeID" type="s:string" />
88
+ <s:element minOccurs="0" maxOccurs="1" name="ReturnURL" type="s:string" />
89
+ </s:sequence>
90
+ </s:complexType>
91
+ </s:element>
92
+ <s:element name="RequestSenderTokenResponse">
93
+ <s:complexType>
94
+ <s:sequence>
95
+ <s:element minOccurs="0" maxOccurs="1" name="RequestSenderTokenResult" type="s:string" />
96
+ </s:sequence>
97
+ </s:complexType>
98
+ </s:element>
99
+ </s:schema>
100
+ </wsdl:types>
101
+ <wsdl:message name="PingSoapIn">
102
+ <wsdl:part name="parameters" element="tns:Ping" />
103
+ </wsdl:message>
104
+ <wsdl:message name="PingSoapOut">
105
+ <wsdl:part name="parameters" element="tns:PingResponse" />
106
+ </wsdl:message>
107
+ <wsdl:message name="LoginSoapIn">
108
+ <wsdl:part name="parameters" element="tns:Login" />
109
+ </wsdl:message>
110
+ <wsdl:message name="LoginSoapOut">
111
+ <wsdl:part name="parameters" element="tns:LoginResponse" />
112
+ </wsdl:message>
113
+ <wsdl:message name="GetAuthenticationTokenSoapIn">
114
+ <wsdl:part name="parameters" element="tns:GetAuthenticationToken" />
115
+ </wsdl:message>
116
+ <wsdl:message name="GetAuthenticationTokenSoapOut">
117
+ <wsdl:part name="parameters" element="tns:GetAuthenticationTokenResponse" />
118
+ </wsdl:message>
119
+ <wsdl:message name="RequestSenderTokenSoapIn">
120
+ <wsdl:part name="parameters" element="tns:RequestSenderToken" />
121
+ </wsdl:message>
122
+ <wsdl:message name="RequestSenderTokenSoapOut">
123
+ <wsdl:part name="parameters" element="tns:RequestSenderTokenResponse" />
124
+ </wsdl:message>
125
+ <wsdl:portType name="CredentialSoap">
126
+ <wsdl:operation name="Ping">
127
+ <wsdl:input message="tns:PingSoapIn" />
128
+ <wsdl:output message="tns:PingSoapOut" />
129
+ </wsdl:operation>
130
+ <wsdl:operation name="Login">
131
+ <wsdl:input message="tns:LoginSoapIn" />
132
+ <wsdl:output message="tns:LoginSoapOut" />
133
+ </wsdl:operation>
134
+ <wsdl:operation name="GetAuthenticationToken">
135
+ <wsdl:input message="tns:GetAuthenticationTokenSoapIn" />
136
+ <wsdl:output message="tns:GetAuthenticationTokenSoapOut" />
137
+ </wsdl:operation>
138
+ <wsdl:operation name="RequestSenderToken">
139
+ <wsdl:input message="tns:RequestSenderTokenSoapIn" />
140
+ <wsdl:output message="tns:RequestSenderTokenSoapOut" />
141
+ </wsdl:operation>
142
+ </wsdl:portType>
143
+ <wsdl:binding name="CredentialSoap" type="tns:CredentialSoap">
144
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
145
+ <wsdl:operation name="Ping">
146
+ <soap:operation soapAction="http://www.docusign.net/API/Credential/Ping" style="document" />
147
+ <wsdl:input>
148
+ <soap:body use="literal" />
149
+ </wsdl:input>
150
+ <wsdl:output>
151
+ <soap:body use="literal" />
152
+ </wsdl:output>
153
+ </wsdl:operation>
154
+ <wsdl:operation name="Login">
155
+ <soap:operation soapAction="http://www.docusign.net/API/Credential/Login" style="document" />
156
+ <wsdl:input>
157
+ <soap:body use="literal" />
158
+ </wsdl:input>
159
+ <wsdl:output>
160
+ <soap:body use="literal" />
161
+ </wsdl:output>
162
+ </wsdl:operation>
163
+ <wsdl:operation name="GetAuthenticationToken">
164
+ <soap:operation soapAction="http://www.docusign.net/API/Credential/GetAuthenticationToken" style="document" />
165
+ <wsdl:input>
166
+ <soap:body use="literal" />
167
+ </wsdl:input>
168
+ <wsdl:output>
169
+ <soap:body use="literal" />
170
+ </wsdl:output>
171
+ </wsdl:operation>
172
+ <wsdl:operation name="RequestSenderToken">
173
+ <soap:operation soapAction="http://www.docusign.net/API/Credential/RequestSenderToken" style="document" />
174
+ <wsdl:input>
175
+ <soap:body use="literal" />
176
+ </wsdl:input>
177
+ <wsdl:output>
178
+ <soap:body use="literal" />
179
+ </wsdl:output>
180
+ </wsdl:operation>
181
+ </wsdl:binding>
182
+ <wsdl:binding name="CredentialSoap12" type="tns:CredentialSoap">
183
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
184
+ <wsdl:operation name="Ping">
185
+ <soap12:operation soapAction="http://www.docusign.net/API/Credential/Ping" style="document" />
186
+ <wsdl:input>
187
+ <soap12:body use="literal" />
188
+ </wsdl:input>
189
+ <wsdl:output>
190
+ <soap12:body use="literal" />
191
+ </wsdl:output>
192
+ </wsdl:operation>
193
+ <wsdl:operation name="Login">
194
+ <soap12:operation soapAction="http://www.docusign.net/API/Credential/Login" style="document" />
195
+ <wsdl:input>
196
+ <soap12:body use="literal" />
197
+ </wsdl:input>
198
+ <wsdl:output>
199
+ <soap12:body use="literal" />
200
+ </wsdl:output>
201
+ </wsdl:operation>
202
+ <wsdl:operation name="GetAuthenticationToken">
203
+ <soap12:operation soapAction="http://www.docusign.net/API/Credential/GetAuthenticationToken" style="document" />
204
+ <wsdl:input>
205
+ <soap12:body use="literal" />
206
+ </wsdl:input>
207
+ <wsdl:output>
208
+ <soap12:body use="literal" />
209
+ </wsdl:output>
210
+ </wsdl:operation>
211
+ <wsdl:operation name="RequestSenderToken">
212
+ <soap12:operation soapAction="http://www.docusign.net/API/Credential/RequestSenderToken" style="document" />
213
+ <wsdl:input>
214
+ <soap12:body use="literal" />
215
+ </wsdl:input>
216
+ <wsdl:output>
217
+ <soap12:body use="literal" />
218
+ </wsdl:output>
219
+ </wsdl:operation>
220
+ </wsdl:binding>
221
+ <wsdl:service name="Credential">
222
+ <wsdl:port name="CredentialSoap" binding="tns:CredentialSoap">
223
+ <soap:address location="https://demo.docusign.net/api/3.0/Credential.asmx" />
224
+ </wsdl:port>
225
+ <wsdl:port name="CredentialSoap12" binding="tns:CredentialSoap12">
226
+ <soap12:address location="https://demo.docusign.net/api/3.0/Credential.asmx" />
227
+ </wsdl:port>
228
+ </wsdl:service>
229
+ </wsdl:definitions>