objectstore 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,7 @@ module Atech
58
58
 
59
59
  ##Create an insert query
60
60
  columns = options.keys.join('`,`')
61
- data = options.values.map { |data| escape_and_quote(data.to_s) }.join(',')
61
+ data = options.values.map { |data| escape_and_quote(data) }.join(',')
62
62
  ObjectStore.backend.query("INSERT INTO files (`#{columns}`) VALUES (#{data})")
63
63
 
64
64
  ## Return a new File object
@@ -164,7 +164,7 @@ module Atech
164
164
 
165
165
  def self.escape_and_quote(string)
166
166
  string = string.strftime('%Y-%m-%d %H:%M:%S') if string.is_a?(Time)
167
- "'#{ObjectStore.backend.escape(string)}'"
167
+ "'#{ObjectStore.backend.escape(string.to_s)}'"
168
168
  end
169
169
 
170
170
  def self.time_now
@@ -1,6 +1,6 @@
1
1
  module Atech
2
2
  module ObjectStore
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
 
5
5
  ## Error class which all Object Store errors are inherited fro
6
6
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objectstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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: 2012-06-14 00:00:00.000000000Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: adam@atechmedia.com
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
- rubygems_version: 1.8.10
43
+ rubygems_version: 1.8.23
44
44
  signing_key:
45
45
  specification_version: 3
46
46
  summary: A SQL based object store library