sqlite3-ruby 0.9.0-mswin32 → 1.0.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sqlite3-ruby might be problematic. Click here for more details.

data/doc/faq/faq.rb CHANGED
@@ -52,7 +52,7 @@ def process_faq_list_item( faq )
52
52
  puts question_text
53
53
  process_faq_list answer
54
54
  else
55
- print "<a href='##{question.id}'>#{question_text}</a>"
55
+ print "<a href='##{question.object_id}'>#{question_text}</a>"
56
56
  end
57
57
 
58
58
  puts "</li>"
@@ -75,7 +75,7 @@ def process_faq_description( faq, path )
75
75
  title = RedCloth.new( path ).to_html.gsub( %r{</?p>}, "" )
76
76
  answer = RedCloth.new( answer || "" )
77
77
 
78
- puts "<a name='#{question.id}'></a>"
78
+ puts "<a name='#{question.object_id}'></a>"
79
79
  puts "<div class='faq-title'>#{title}</div>"
80
80
  puts "<div class='faq-answer'>#{add_api_links(answer.to_html)}</div>"
81
81
  end
@@ -1,6 +1,6 @@
1
1
  require 'mkmf'
2
2
 
3
- dir_config( "sqlite3" )
3
+ dir_config( "sqlite3", "/usr/local", "/usr/local" )
4
4
 
5
5
  if have_header( "sqlite3.h" ) and have_library( "sqlite3", "sqlite3_open" )
6
6
  system "swig -ruby sqlite3_api.i"
@@ -40,7 +40,7 @@ module SQLite3 ; module Driver; module DL;
40
40
  library_name = case RUBY_PLATFORM.downcase
41
41
  when /darwin/
42
42
  "libsqlite3.dylib"
43
- when /linux/
43
+ when /linux/, /freebsd|netbsd|openbsd|dragonfly/
44
44
  "libsqlite3.so"
45
45
  when /win32/
46
46
  "sqlite3.dll"
@@ -92,7 +92,7 @@ module SQLite3 ; module Driver ; module Native
92
92
 
93
93
  def bind_text( stmt, index, value, utf16=false )
94
94
  API.send( ( utf16 ? :sqlite3_bind_text16 : :sqlite3_bind_text ),
95
- stmt, index, value )
95
+ stmt, index, value.to_s )
96
96
  end
97
97
 
98
98
  def column_name( stmt, index, utf16=false )
@@ -88,7 +88,7 @@ module SQLite3
88
88
  # Statement#bind_params.
89
89
  def bind_params( *bind_vars )
90
90
  index = 1
91
- bind_vars.each do |var|
91
+ bind_vars.flatten.each do |var|
92
92
  if Hash === var
93
93
  var.each { |key, val| bind_param key, val }
94
94
  else
@@ -34,8 +34,8 @@ module SQLite3
34
34
 
35
35
  module Version
36
36
 
37
- MAJOR = 0
38
- MINOR = 9
37
+ MAJOR = 1
38
+ MINOR = 0
39
39
  TINY = 0
40
40
 
41
41
  STRING = [ MAJOR, MINOR, TINY ].join( "." )
data/lib/sqlite3_api.so CHANGED
Binary file
@@ -587,6 +587,12 @@ module Integration
587
587
  value = @db.get_first_value( "select multiply(a) from foo" )
588
588
  assert_equal "6", value
589
589
  end
590
+
591
+ define_method( "test_bind_array_parameter" ) do
592
+ result = @db.get_first_value( "select b from foo where a=? and b=?",
593
+ [ 1, "foo" ] )
594
+ assert_equal "foo", result
595
+ end
590
596
  end
591
597
  const_set( "TC_Database_#{driver}", test_case )
592
598
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
3
3
  specification_version: 1
4
4
  name: sqlite3-ruby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.0
7
- date: 2005-01-05
6
+ version: 1.0.0
7
+ date: 2005-02-05
8
8
  summary: SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite database.
9
9
  require_paths:
10
10
  - lib