sdbcli 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/sdbcli +1 -1
  2. data/lib/sdbcli/sdb-runner.rb +5 -1
  3. metadata +1 -1
data/bin/sdbcli CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
3
3
 
4
- Version = '1.2.0'
4
+ Version = '1.2.1'
5
5
  HISTORY_FILE = File.join((ENV['HOME'] || ENV['USERPROFILE'] || '.'), '.sdbcli_history')
6
6
  HISTSIZE = 500
7
7
  SELECT_LIMIT = 2500
@@ -148,7 +148,11 @@ module SimpleDB
148
148
  end
149
149
 
150
150
  if parsed.ruby
151
- items = items.instance_eval(parsed.ruby.strip)
151
+ begin
152
+ items = items.instance_eval(parsed.ruby.strip)
153
+ rescue SyntaxError => e
154
+ raise e.message
155
+ end
152
156
  end
153
157
 
154
158
  if inline and items.kind_of?(Array)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdbcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: