ffi-mysql 1.1.0 → 1.1.1

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 CHANGED
@@ -2,3 +2,4 @@ afd66b4b7cda50c08a79f51574d46e49c4dc083b v0.0.1
2
2
  2bfcf2ddedd5d9589ecc0dc915d0393e218aa603 v0.0.2
3
3
  a8bbc2c818cd66f86fbeb43f59bdb21499d58768 v1.0.0
4
4
  84d7cd84016aaade9b5530d183d9d3378d1c0c33 v1.1.0
5
+ 9f6397d60c7bf3361ddd23a6aa4ee728879a2d21 v1.1.1
data/History.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ 1.1.1 / 2012-02-01
2
+ ------------------
3
+
4
+ * Fix maybe_attach_function for JRuby compatibility
5
+
1
6
  1.1.0 / 2012-01-21
2
7
  ------------------
3
8
 
@@ -65,7 +65,7 @@ class Mysql
65
65
 
66
66
  def self.maybe_attach_function name, *args
67
67
  attach_function name, *args
68
- rescue FFI::NotFoundError => e
68
+ rescue => e
69
69
  define_singleton_method(name) {|*a| raise e}
70
70
  end
71
71
 
@@ -4,7 +4,7 @@ class Mysql
4
4
  # Minor version
5
5
  MINOR = 1
6
6
  # Tiny version
7
- TINY = 0
7
+ TINY = 1
8
8
 
9
9
  # Version string
10
10
  VERSION = [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -2,94 +2,89 @@
2
2
  name: ffi-mysql
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.1.1
6
6
  platform: ruby
7
7
  authors:
8
- - Frank Fischer
8
+ - Frank Fischer
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-21 00:00:00 +01:00
14
- default_executable:
13
+ date: 2012-02-01 00:00:00 Z
15
14
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: ffi
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ~>
23
- - !ruby/object:Gem::Version
24
- version: "1.0"
25
- type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: bones
29
- prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: 3.7.3
36
- type: :development
37
- version_requirements: *id002
15
+ - !ruby/object:Gem::Dependency
16
+ name: ffi
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: "1.0"
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: bones
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 3.7.3
35
+ type: :development
36
+ version_requirements: *id002
38
37
  description: Pure Ruby FFI interface to MySQL.
39
38
  email: frank.fischer@mathematik.tu-chemnitz.de
40
39
  executables: []
41
40
 
42
41
  extensions: []
43
42
 
44
- extra_rdoc_files:
45
- - announcement.txt
46
- - lib/ffi-mysql/mysql.rb.rej
43
+ extra_rdoc_files: []
44
+
47
45
  files:
48
- - .hgignore
49
- - .hgtags
50
- - History.markdown
51
- - README.markdown
52
- - Rakefile
53
- - announcement.txt
54
- - lib/ffi-mysql.rb
55
- - lib/ffi-mysql/constants.rb
56
- - lib/ffi-mysql/error.rb
57
- - lib/ffi-mysql/field.rb
58
- - lib/ffi-mysql/mysql.rb
59
- - lib/ffi-mysql/mysql.rb.rej
60
- - lib/ffi-mysql/result.rb
61
- - lib/ffi-mysql/stmt.rb
62
- - lib/ffi-mysql/time.rb
63
- - lib/ffi-mysql/version.rb
64
- - test/test_mysql.rb
65
- has_rdoc: true
46
+ - .hgignore
47
+ - .hgtags
48
+ - History.markdown
49
+ - README.markdown
50
+ - Rakefile
51
+ - lib/ffi-mysql.rb
52
+ - lib/ffi-mysql/constants.rb
53
+ - lib/ffi-mysql/error.rb
54
+ - lib/ffi-mysql/field.rb
55
+ - lib/ffi-mysql/mysql.rb
56
+ - lib/ffi-mysql/result.rb
57
+ - lib/ffi-mysql/stmt.rb
58
+ - lib/ffi-mysql/time.rb
59
+ - lib/ffi-mysql/version.rb
60
+ - test/test_mysql.rb
66
61
  homepage: http://bitbucket.org/lyro/ffi-mysql
67
62
  licenses: []
68
63
 
69
64
  post_install_message:
70
65
  rdoc_options:
71
- - --main
72
- - README.markdown
66
+ - --main
67
+ - README.markdown
73
68
  require_paths:
74
- - lib
69
+ - lib
75
70
  required_ruby_version: !ruby/object:Gem::Requirement
76
71
  none: false
77
72
  requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
81
76
  required_rubygems_version: !ruby/object:Gem::Requirement
82
77
  none: false
83
78
  requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- version: "0"
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: "0"
87
82
  requirements: []
88
83
 
89
84
  rubyforge_project: ffi-mysql
90
- rubygems_version: 1.6.2
85
+ rubygems_version: 1.8.15
91
86
  signing_key:
92
87
  specification_version: 3
93
88
  summary: Pure Ruby FFI interface to MySQL.
94
89
  test_files:
95
- - test/test_mysql.rb
90
+ - test/test_mysql.rb
data/announcement.txt DELETED
@@ -1,13 +0,0 @@
1
- ffi-mysql version 1.1.0
2
- by Frank Fischer
3
- http://bitbucket.org/lyro/ffi-mysql
4
-
5
- == DESCRIPTION
6
-
7
- Pure Ruby FFI interface to MySQL.
8
-
9
- == CHANGES
10
-
11
- * add several methods for compatibility with MySQL 5.0 and MySQL/Ruby
12
- 2.8.2
13
-
@@ -1,10 +0,0 @@
1
- --- mysql.rb
2
- +++ mysql.rb
3
- @@ -74,6 +74,7 @@
4
- attach_function :mysql_ping, [:pointer], :int
5
- attach_function :mysql_refresh, [:pointer, :uint ], :int
6
- attach_function :mysql_reload, [:pointer], :int
7
- + attach_function :mysql_shutdown, [:pointer], :int
8
- attach_function :mysql_change_user, [:pointer, :string, :string, :string], :char
9
- attach_function :mysql_select_db, [:pointer, :string], :int
10
- attach_function :mysql_thread_id, [:pointer], :ulong