oci8_simple 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oci8_simple (0.9.1)
4
+ oci8_simple (0.9.2)
5
5
  ruby-oci8 (~> 2.1.2)
6
6
 
7
7
  GEM
data/Rakefile CHANGED
@@ -36,7 +36,9 @@ end
36
36
  desc "Release the gem to rubygems.org"
37
37
  task :release => :build do
38
38
  version = File.read(File.expand_path("../VERSION", __FILE__)).strip
39
+ `git tag -a v#{version} -m "tagging #{version}"`
40
+ `git push --tags`
39
41
  ourgem = "oci8_simple-#{version}.gem"
40
- system "gem push #{ourgem}"
42
+ `gem push #{ourgem}`
41
43
  end
42
44
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
@@ -81,7 +81,8 @@ module Oci8Simple
81
81
 
82
82
  def fetch_arrays(sql, &block)
83
83
  conn.exec(sql) do |r|
84
- yield r.map{|col| record_to_string(col)}
84
+ result = r.respond_to?(:map) ? r.map{|col| record_to_string(col)} : r
85
+ yield result
85
86
  end
86
87
  end
87
88
 
data/test/client_test.rb CHANGED
@@ -31,6 +31,18 @@ class ClientTest < Test::Unit::TestCase
31
31
  end
32
32
  end
33
33
  end
34
+ context "Running a procedure with nil return" do
35
+ setup do
36
+ @client = Oci8Simple::Client.new("test")
37
+ @client.conn.expects(:exec).yields(nil)
38
+ end
39
+ should "not raise an exception" do
40
+ assert_nothing_raised do
41
+ @client.run("A NOOP")
42
+ end
43
+ end
44
+ end
45
+
34
46
  context "Given a table" do
35
47
  setup do
36
48
  @client = Oci8Simple::Client.new("test")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oci8_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-18 00:00:00.000000000 Z
12
+ date: 2013-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-oci8
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: 2209339732871713714
81
+ hash: -4565524330145410759
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: 2209339732871713714
90
+ hash: -4565524330145410759
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.25