ruby-plsql 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.2 2008-04-02
2
+
3
+ * Improvements
4
+ * When PL/SQL procedure is called with less arguments then missing arguments are filled with nil
5
+
1
6
  == 0.1.1 2008-04-01
2
7
 
3
8
  * Bug fixes
@@ -85,6 +85,8 @@ module PLSQL
85
85
  # Sequential arguments
86
86
  else
87
87
  raise ArgumentError, "Too many arguments passed to PL/SQL procedure" if args.size > @argument_list.size
88
+ # Add missing arguments with nil value
89
+ args = args + [nil]*(@argument_list.size-args.size) if args.size < @argument_list.size
88
90
  i = 0
89
91
  sql << args.map do |v|
90
92
  k = @argument_list[i]
@@ -2,7 +2,7 @@ module RubyPlsql #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -165,4 +165,12 @@ describe "Procedure with output parameters" do
165
165
  plsql.test_copy(:p_from => "abc", :p_to => nil, :p_to_double => nil).should == { :p_to => "abc", :p_to_double => "abcabc" }
166
166
  end
167
167
 
168
+ it "should substitute output parameters with nil if they are not specified" do
169
+ plsql.test_copy("abc").should == { :p_to => "abc", :p_to_double => "abcabc" }
170
+ end
171
+
172
+ it "should substitute all parementers with nil if none are specified" do
173
+ plsql.test_copy.should == { :p_to => nil, :p_to_double => nil }
174
+ end
175
+
168
176
  end
data/spec/spec.opts CHANGED
@@ -1 +1,6 @@
1
- --colour
1
+ --colour
2
+ --format
3
+ progress
4
+ --loadby
5
+ mtime
6
+ --reverse
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>Ruby API for PL/SQL</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ruby-plsql"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/ruby-plsql" class="numbers">0.1.1</a>
36
+ <a href="http://rubyforge.org/projects/ruby-plsql" class="numbers">0.1.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;ruby-plsql&#8217;</h1>
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-plsql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-01 00:00:00 +03:00
12
+ date: 2008-04-02 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15