ffi-mysql 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.hgtags +1 -0
- data/History.markdown +18 -0
- data/{README → README.markdown} +18 -13
- data/Rakefile +5 -4
- data/lib/ffi-mysql/field.rb +10 -10
- data/lib/ffi-mysql/mysql.rb +29 -15
- data/lib/ffi-mysql/result.rb +5 -5
- data/lib/ffi-mysql/stmt.rb +38 -35
- data/lib/ffi-mysql/version.rb +4 -4
- data/test/test_mysql.rb +21 -13
- data/test/test_mysql.rb.orig +1488 -0
- metadata +19 -32
- data/History.rdoc +0 -10
- data/README.rdoc +0 -66
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
4
|
+
prerelease:
|
5
|
+
version: 1.0.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Frank Fischer
|
@@ -14,35 +10,29 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-04-21 00:00:00 +02:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
21
17
|
name: ffi
|
22
18
|
prerelease: false
|
23
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
24
21
|
requirements:
|
25
|
-
- -
|
22
|
+
- - ~>
|
26
23
|
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
- 6
|
30
|
-
- 2
|
31
|
-
version: 0.6.2
|
24
|
+
version: "1.0"
|
32
25
|
type: :runtime
|
33
26
|
version_requirements: *id001
|
34
27
|
- !ruby/object:Gem::Dependency
|
35
28
|
name: bones
|
36
29
|
prerelease: false
|
37
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
38
32
|
requirements:
|
39
33
|
- - ">="
|
40
34
|
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 3
|
43
|
-
- 2
|
44
|
-
- 1
|
45
|
-
version: 3.2.1
|
35
|
+
version: 3.6.5
|
46
36
|
type: :development
|
47
37
|
version_requirements: *id002
|
48
38
|
description: Pure Ruby FFI interface to MySQL.
|
@@ -51,14 +41,12 @@ executables: []
|
|
51
41
|
|
52
42
|
extensions: []
|
53
43
|
|
54
|
-
extra_rdoc_files:
|
55
|
-
|
56
|
-
- README.rdoc
|
44
|
+
extra_rdoc_files: []
|
45
|
+
|
57
46
|
files:
|
58
47
|
- .hgtags
|
59
|
-
- History.
|
60
|
-
- README
|
61
|
-
- README.rdoc
|
48
|
+
- History.markdown
|
49
|
+
- README.markdown
|
62
50
|
- Rakefile
|
63
51
|
- lib/ffi-mysql.rb
|
64
52
|
- lib/ffi-mysql/constants.rb
|
@@ -70,36 +58,35 @@ files:
|
|
70
58
|
- lib/ffi-mysql/time.rb
|
71
59
|
- lib/ffi-mysql/version.rb
|
72
60
|
- test/test_mysql.rb
|
73
|
-
|
61
|
+
- test/test_mysql.rb.orig
|
62
|
+
has_rdoc: true
|
74
63
|
homepage: http://bitbucket.org/lyro/ffi-mysql
|
75
64
|
licenses: []
|
76
65
|
|
77
66
|
post_install_message:
|
78
67
|
rdoc_options:
|
79
68
|
- --main
|
80
|
-
- README.
|
69
|
+
- README.markdown
|
81
70
|
require_paths:
|
82
71
|
- lib
|
83
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
84
74
|
requirements:
|
85
75
|
- - ">="
|
86
76
|
- !ruby/object:Gem::Version
|
87
|
-
segments:
|
88
|
-
- 0
|
89
77
|
version: "0"
|
90
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
91
80
|
requirements:
|
92
81
|
- - ">="
|
93
82
|
- !ruby/object:Gem::Version
|
94
|
-
segments:
|
95
|
-
- 0
|
96
83
|
version: "0"
|
97
84
|
requirements: []
|
98
85
|
|
99
86
|
rubyforge_project: ffi-mysql
|
100
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.6.2
|
101
88
|
signing_key:
|
102
89
|
specification_version: 3
|
103
|
-
summary: Pure Ruby FFI interface to MySQL
|
90
|
+
summary: Pure Ruby FFI interface to MySQL.
|
104
91
|
test_files:
|
105
92
|
- test/test_mysql.rb
|
data/History.rdoc
DELETED
data/README.rdoc
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
ffi-mysql
|
2
|
-
by Frank Fischer
|
3
|
-
http://bitbucket.org/lyro/ffi-mysql
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
Pure Ruby FFI interface to MySQL.
|
8
|
-
|
9
|
-
== FEATURES/PROBLEMS:
|
10
|
-
|
11
|
-
* satisfies almost complete test-suite of MySQL/Ruby
|
12
|
-
* prepared statement does not handle Double fields
|
13
|
-
correctly
|
14
|
-
|
15
|
-
== SYNOPSIS:
|
16
|
-
|
17
|
-
Use
|
18
|
-
|
19
|
-
require 'ffi-mysql'
|
20
|
-
|
21
|
-
instead of
|
22
|
-
|
23
|
-
require 'mysql'
|
24
|
-
|
25
|
-
ffi-mysql should be compatible with MySQL/Ruby, so have a look at
|
26
|
-
* http://www.tmtm.org/en/mysql/ruby and
|
27
|
-
* http://www.kitebird.com/articles/ruby-mysql.html
|
28
|
-
for examples.
|
29
|
-
|
30
|
-
== REQUIREMENTS:
|
31
|
-
|
32
|
-
* ffi >= 0.6.2
|
33
|
-
|
34
|
-
== INSTALL:
|
35
|
-
|
36
|
-
gem install ffi-ruby
|
37
|
-
|
38
|
-
== ACKNOWLEDGEMENTS:
|
39
|
-
|
40
|
-
Tomita Masahiro for his MySQL/Ruby and Ruby/MySQL gems from which some
|
41
|
-
of the code has been stolen.
|
42
|
-
|
43
|
-
== LICENSE:
|
44
|
-
|
45
|
-
(The MIT License)
|
46
|
-
|
47
|
-
Copyright (c) 2010 Frank Fischer
|
48
|
-
|
49
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
50
|
-
a copy of this software and associated documentation files (the
|
51
|
-
'Software'), to deal in the Software without restriction, including
|
52
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
53
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
54
|
-
permit persons to whom the Software is furnished to do so, subject to
|
55
|
-
the following conditions:
|
56
|
-
|
57
|
-
The above copyright notice and this permission notice shall be
|
58
|
-
included in all copies or substantial portions of the Software.
|
59
|
-
|
60
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
61
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
62
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
63
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
64
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
65
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
66
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|