jfb 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jfb/jfb.rb +7 -3
  3. data/lib/jfb/version.rb +5 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ea104d6054c38a94c66eb26206a27e33fcb74d7
4
- data.tar.gz: 9b63e3e408d39bbabae9aafa40f03fbcf32fb54b
3
+ metadata.gz: 9eb1b5b0e01579dd466716b80a819ffb4c5f64ea
4
+ data.tar.gz: 27e9fd75fda5626bc6a0e746267033fcfb06e87d
5
5
  SHA512:
6
- metadata.gz: 8cc68910f37c4b4d536cc9d1169ce472fc517cf3c25507b5eb315ab98b326054a410a61fd8f46328bcdc1fc5b69bab25ad3527a4c78ce566e260d745a10404fb
7
- data.tar.gz: 152f5fdbb67eb4e8fa856d9d56dfcc629893ce6e71d996c8679ca3e9c0b2152b46bab6b5d56c7e3ccfd6a66091b12daa0851dc295e8453a78e8106ef211470c9
6
+ metadata.gz: 71ffa534d86ca29952da227ab0e33cbf9c02194d912b75bad4736ae382b20c1b546ae43536a726ecda0890252b1fcd48132a39ecaf57d16a748892f69600da97
7
+ data.tar.gz: 34671b0ecd0d634730a66dd94be272eac00e09b08f0ebea482a10f0d43314c4f74cf5bcf0ac11ff49de598566f308553e342291d1786a061de522459c1b10c0a
@@ -102,11 +102,15 @@ class JFB
102
102
  res = []
103
103
  k = 0
104
104
 
105
+ cols = rs.get_meta_data.get_column_count
106
+
105
107
  while rs.next do
106
- cols = rs.metada_data().get_column.count()
108
+ (1..cols).each do |i|
109
+ if res[k] == nil then
110
+ res[k] = []
111
+ end
107
112
 
108
- (0..cols - 1).each do |i|
109
- res[k][i] = rs.get_string(i)
113
+ res[k][i - 1] = rs.get_string(i)
110
114
  end
111
115
 
112
116
  k = k + 1
@@ -1,5 +1,5 @@
1
1
  module Jfb
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
 
4
4
  #What the numbers mean: rr.ff.hh
5
5
  # rr: Major releases and changes in the project;
@@ -59,4 +59,8 @@ module Jfb
59
59
 
60
60
  #Version 0.5.0
61
61
  # Implements standard rs to matrix conversion
62
+
63
+ #Version 0.5.1
64
+ # Implements a simple test to interact with a database in my envyro.
65
+ # Fixes wrong column refference.
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jfb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rCamposCruz