docusign 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{docusign}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leigh Caplan"]
12
- s.date = %q{2010-03-21}
12
+ s.date = %q{2010-03-22}
13
13
  s.default_executable = %q{docusign}
14
14
  s.description = %q{A library for working with the Docusign API and associated objects.
15
15
  Provides SOAP4R-generated proxy classes, and extends many useful classes
@@ -19,6 +19,12 @@ module Docusign
19
19
  tab.anchor anchor_options if anchor_options && !tab.anchor_tab_item
20
20
  tab.document_id ||= document.id if document
21
21
  tab.recipient_id ||= recipient.id if recipient
22
+
23
+ # Default tab_label to the tab name if none is explicitly given
24
+ tab.tab_label ||= tab.name
25
+
26
+ # Provide a custom tab type if none has already been provided
27
+ tab.type ||= Docusign::TabTypeCode::Custom
22
28
  end
23
29
  end
24
30
  end
@@ -8,7 +8,7 @@ module Docusign
8
8
  def tabs(recipient = nil, &block)
9
9
  @tabs ||= Docusign::ArrayOfTab.new
10
10
 
11
- return @tabs unless recipient || block_given?
11
+ return @tabs unless block_given?
12
12
 
13
13
  self.tab_builder = Docusign::Builder::TabBuilder.new(self, recipient)
14
14
 
@@ -13,7 +13,9 @@ module AutoCamelize
13
13
 
14
14
  if ds_name && respond_to?(ds_name)
15
15
  self.class.class_eval %Q{
16
- alias :#{method_name} :#{ds_name}
16
+ def #{method_name}(*args, &block)
17
+ send "#{ds_name}", *args, &block
18
+ end
17
19
  }
18
20
 
19
21
  send method_name, *args, &block
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Leigh Caplan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-21 00:00:00 -07:00
17
+ date: 2010-03-22 00:00:00 -07:00
18
18
  default_executable: docusign
19
19
  dependencies: []
20
20