sqlite3-ironruby 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -318,10 +318,10 @@ module SQLite3
318
318
  # +ms+ parameter.
319
319
  #
320
320
  # See also the mutually exclusive #busy_handler.
321
- #def busy_timeout( ms )
322
- # result = @driver.busy_timeout( @handle, ms )
323
- # Error.check( result, self )
324
- #end
321
+ def busy_timeout( ms )
322
+ result = @driver.busy_timeout( @handle, ms )
323
+ Error.check( result, self )
324
+ end
325
325
 
326
326
  # Creates a new function for use in SQL statements. It will be added as
327
327
  # +name+, with the given +arity+. (For variable arity functions, use
@@ -222,7 +222,7 @@ module SQLite3
222
222
  rows.each do |row|
223
223
  new_row = {}
224
224
  columns.each_with_index do |name, index|
225
- new_row[name] = row[index]
225
+ new_row[name.to_s] = row[index]
226
226
  end
227
227
 
228
228
  tweak_default(new_row) if needs_tweak_default
@@ -121,8 +121,8 @@ module SQLite3
121
121
  end
122
122
 
123
123
  if @db.results_as_hash
124
- new_row = HashWithTypes[ *( @stmt.columns.zip( row ).to_a.flatten ) ]
125
- row.each_with_index { |value,idx| new_row[idx] = value }
124
+ new_row = HashWithTypes[ *( @stmt.columns.zip( row ).to_a.flatten.map { |c| c.to_s } ) ]
125
+ row.each_with_index { |value,idx| new_row[idx] = value.to_s }
126
126
  row = new_row
127
127
  else
128
128
  if row.respond_to?(:fields)
@@ -4,7 +4,7 @@ module SQLite3
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- TINY = 0
7
+ TINY = 1
8
8
 
9
9
  STRING = [ MAJOR, MINOR, TINY ].join( "." )
10
10
  #:beta-tag:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-ironruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-17 00:00:00 -05:00
12
+ date: 2010-01-28 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -43,7 +43,7 @@ files:
43
43
  - test/tests.rb
44
44
  - README.rdoc
45
45
  has_rdoc: true
46
- homepage: http://github.com/jwthompson2/sqlite3-ironruby
46
+ homepage: http://github.com/plainprogrammer/sqlite3-ironruby
47
47
  licenses: []
48
48
 
49
49
  post_install_message: