texel-docusign 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/docusign.rb ADDED
@@ -0,0 +1,14 @@
1
+ $LOAD_PATH << File.expand_path(File.dirname(__FILE__))
2
+
3
+ gem 'soap4r'
4
+ require 'docusign/docusign'
5
+ require 'docusign/docusignMappingRegistry'
6
+ require 'docusign/docusignDriver'
7
+ require 'docusign/base'
8
+ require 'docusign/auth_header_handler'
9
+
10
+ Docusign::VERSION = '0.1'
11
+ # require File.expand_path(File.dirname(__FILE__) + '/docusign/docusign')
12
+ # require File.expand_path(File.dirname(__FILE__) + '/docusign/docusignMappingRegistry')
13
+ # require File.expand_path(File.dirname(__FILE__) + '/docusign/docusignDriver')
14
+ # require File.expand_path(File.dirname(__FILE__) + '/docusign/base')
@@ -0,0 +1,30 @@
1
+ # Generates SOAP stubs for Salesforce Enterprise API.
2
+ # Requires a /config/salesforce/enterprise.wsdl.xml
3
+
4
+ require 'rubygems'
5
+ gem 'soap4r'
6
+ require 'wsdl/soap/wsdl2ruby'
7
+
8
+ namespace :docusign do
9
+ namespace :services do
10
+ desc "Generate SOAP stubs for Salesforce API"
11
+ task :generate => [:environment] do
12
+ wsdl_path = File.expand_path(File.dirname(__FILE__) + "/../lib/DocuSign3.0API.wsdl")
13
+ wsdl2ruby('docusign', 'Docusign', "file://#{wsdl_path}")
14
+ end
15
+ end
16
+ end
17
+
18
+ private
19
+
20
+ def wsdl2ruby(name, module_name, url)
21
+ g = WSDL::SOAP::WSDL2Ruby.new
22
+ g.location = url
23
+ g.basedir = File.expand_path(File.dirname(__FILE__) + "/../lib/")
24
+ g.opt['classdef'] = name
25
+ g.opt['driver'] = nil
26
+ g.opt['module_path'] = module_name
27
+ g.opt['mapping_registry'] = true
28
+ g.opt['force'] = true
29
+ g.run
30
+ end
File without changes
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: texel-docusign
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.1"
5
+ platform: ruby
6
+ authors:
7
+ - Leigh Caplan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-02-01 00:00:00 -08:00
13
+ default_executable: docusign
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.8.3
23
+ version:
24
+ description: A library for communicating with the Docusign API via SOAP.
25
+ email:
26
+ - texel1@gmail.com
27
+ executables:
28
+ - docusign
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - History.txt
33
+ - Manifest.txt
34
+ - README.txt
35
+ files:
36
+ - History.txt
37
+ - Manifest.txt
38
+ - README.txt
39
+ - Rakefile
40
+ - bin/docusign
41
+ - docusign.gemspec
42
+ - lib/DocuSign3.0API.wsdl
43
+ - lib/docusign.rb
44
+ - lib/docusign/auth_header_handler.rb
45
+ - lib/docusign/base.rb
46
+ - lib/docusign/docusign.rb
47
+ - lib/docusign/docusignDriver.rb
48
+ - lib/docusign/docusignMappingRegistry.rb
49
+ - tasks/docusign_tasks.rake
50
+ - test.rb
51
+ - test/test_docusign.rb
52
+ has_rdoc: true
53
+ homepage: http://www.docusign.com
54
+ post_install_message:
55
+ rdoc_options:
56
+ - --main
57
+ - README.txt
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
65
+ version:
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ requirements: []
73
+
74
+ rubyforge_project: docusign
75
+ rubygems_version: 1.2.0
76
+ signing_key:
77
+ specification_version: 2
78
+ summary: A library for communicating with the Docusign API via SOAP.
79
+ test_files:
80
+ - test/test_docusign.rb