rsql 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rsql.rb +1 -1
  2. data/lib/rsql/mysql_results.rb +4 -2
  3. metadata +5 -5
@@ -2,7 +2,7 @@
2
2
  # Commands using an EvalContext for handling recipes.
3
3
  #
4
4
  module RSQL
5
- VERSION = '0.2.5'
5
+ VERSION = '0.2.6'
6
6
 
7
7
  require 'rsql/mysql_results'
8
8
  require 'rsql/eval_context'
@@ -222,8 +222,10 @@ module RSQL
222
222
  while vals = results.fetch_row
223
223
  row = []
224
224
  fields.each_with_index do |field, i|
225
- val = eval_context.bang_eval(field.name, vals[i])
226
- unless raw
225
+ if raw
226
+ val = vals[i]
227
+ else
228
+ val = eval_context.bang_eval(field.name, vals[i])
227
229
  if val.nil?
228
230
  val = 'NULL'
229
231
  elsif HEX_RANGE.include?(field.type) && val =~ /[^[:print:]\s]/
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsql
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brad Robel-Forrest
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-14 00:00:00 Z
18
+ date: 2012-01-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: net-ssh
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  requirements: []
167
167
 
168
168
  rubyforge_project:
169
- rubygems_version: 1.8.10
169
+ rubygems_version: 1.8.15
170
170
  signing_key:
171
171
  specification_version: 3
172
172
  summary: Ruby based MySQL command line with recipes.