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 +2 -2
- data/ext/sqlite3_api/extconf.rb +1 -1
- data/lib/sqlite3/driver/dl/api.rb +1 -1
- data/lib/sqlite3/driver/native/driver.rb +1 -1
- data/lib/sqlite3/statement.rb +1 -1
- data/lib/sqlite3/version.rb +2 -2
- data/lib/sqlite3_api.so +0 -0
- data/test/tc_integration.rb +6 -0
- metadata +2 -2
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.
|
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.
|
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
|
data/ext/sqlite3_api/extconf.rb
CHANGED
@@ -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 )
|
data/lib/sqlite3/statement.rb
CHANGED
data/lib/sqlite3/version.rb
CHANGED
data/lib/sqlite3_api.so
CHANGED
Binary file
|
data/test/tc_integration.rb
CHANGED
@@ -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.
|
7
|
-
date: 2005-
|
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
|