texel-docusign 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt ADDED
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2009-01-24
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
data/Manifest.txt ADDED
@@ -0,0 +1,16 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ bin/docusign
6
+ docusign.gemspec
7
+ lib/DocuSign3.0API.wsdl
8
+ lib/docusign.rb
9
+ lib/docusign/auth_header_handler.rb
10
+ lib/docusign/base.rb
11
+ lib/docusign/docusign.rb
12
+ lib/docusign/docusignDriver.rb
13
+ lib/docusign/docusignMappingRegistry.rb
14
+ tasks/docusign_tasks.rake
15
+ test.rb
16
+ test/test_docusign.rb
data/README.txt ADDED
@@ -0,0 +1,47 @@
1
+ = docusign
2
+
3
+ http://www.docusign.com
4
+ http://www.github.com/texel/docusign
5
+
6
+ == DESCRIPTION:
7
+
8
+ A library for communicating with the Docusign API via SOAP.
9
+
10
+ == FEATURES/PROBLEMS:
11
+
12
+ == SYNOPSIS:
13
+
14
+ FIX (code sample of usage)
15
+
16
+ == REQUIREMENTS:
17
+
18
+ * FIX (list of requirements)
19
+
20
+ == INSTALL:
21
+
22
+ * FIX (sudo gem install, anything else)
23
+
24
+ == LICENSE:
25
+
26
+ (The MIT License)
27
+
28
+ Copyright (c) 2009 Leigh Caplan
29
+
30
+ Permission is hereby granted, free of charge, to any person obtaining
31
+ a copy of this software and associated documentation files (the
32
+ 'Software'), to deal in the Software without restriction, including
33
+ without limitation the rights to use, copy, modify, merge, publish,
34
+ distribute, sublicense, and/or sell copies of the Software, and to
35
+ permit persons to whom the Software is furnished to do so, subject to
36
+ the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be
39
+ included in all copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
42
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
43
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
44
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
45
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
46
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
47
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,44 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'hoe'
5
+ require './lib/docusign.rb'
6
+
7
+ gem 'soap4r'
8
+ require 'wsdl/soap/wsdl2ruby'
9
+
10
+ Hoe.new('docusign', Docusign::VERSION) do |p|
11
+ p.rubyforge_name = 'docusign' # if different than lowercase project name
12
+ p.developer('Leigh Caplan', 'texel1@gmail.com')
13
+ end
14
+
15
+ task :cultivate do
16
+ system "touch Manifest.txt; rake check_manifest | grep -v \"(in \" | patch"
17
+ system "rake debug_gem | grep -v \"(in \" > `basename \\`pwd\\``.gemspec"
18
+ end
19
+
20
+ namespace :docusign do
21
+ namespace :services do
22
+ desc "Generate SOAP stubs for Salesforce API"
23
+ task :generate do
24
+ wsdl_path = File.expand_path(File.dirname(__FILE__) + "/lib/DocuSign3.0API.wsdl")
25
+ wsdl2ruby('docusign', 'Docusign', "file://#{wsdl_path}")
26
+ end
27
+ end
28
+ end
29
+
30
+ private
31
+
32
+ def wsdl2ruby(name, module_name, url)
33
+ g = WSDL::SOAP::WSDL2Ruby.new
34
+ g.location = url
35
+ g.basedir = File.expand_path(File.dirname(__FILE__) + "/lib/")
36
+ g.opt['classdef'] = name
37
+ g.opt['driver'] = nil
38
+ g.opt['module_path'] = module_name
39
+ g.opt['mapping_registry'] = true
40
+ g.opt['force'] = true
41
+ g.run
42
+ end
43
+
44
+ # vim: syntax=Ruby
data/bin/docusign ADDED
File without changes
data/docusign.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{docusign}
5
+ s.version = "0.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Leigh Caplan"]
9
+ s.date = %q{2009-02-01}
10
+ s.default_executable = %q{docusign}
11
+ s.description = %q{A library for communicating with the Docusign API via SOAP.}
12
+ s.email = ["texel1@gmail.com"]
13
+ s.executables = ["docusign"]
14
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
15
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/docusign", "docusign.gemspec", "lib/DocuSign3.0API.wsdl", "lib/docusign.rb", "lib/docusign/auth_header_handler.rb", "lib/docusign/base.rb", "lib/docusign/docusign.rb", "lib/docusign/docusignDriver.rb", "lib/docusign/docusignMappingRegistry.rb", "tasks/docusign_tasks.rake", "test.rb", "test/test_docusign.rb"]
16
+ s.has_rdoc = true
17
+ s.homepage = %q{http://www.docusign.com}
18
+ s.rdoc_options = ["--main", "README.txt"]
19
+ s.require_paths = ["lib"]
20
+ s.rubyforge_project = %q{docusign}
21
+ s.rubygems_version = %q{1.3.1}
22
+ s.summary = %q{A library for communicating with the Docusign API via SOAP.}
23
+ s.test_files = ["test/test_docusign.rb"]
24
+
25
+ if s.respond_to? :specification_version then
26
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
+ s.specification_version = 2
28
+
29
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
+ s.add_development_dependency(%q<hoe>, [">= 1.8.3"])
31
+ else
32
+ s.add_dependency(%q<hoe>, [">= 1.8.3"])
33
+ end
34
+ else
35
+ s.add_dependency(%q<hoe>, [">= 1.8.3"])
36
+ end
37
+ end