do_mysql 0.10.0-java → 0.10.1-java

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.
Files changed (43) hide show
  1. data/ChangeLog.markdown +27 -0
  2. data/LICENSE +1 -1
  3. data/README.markdown +104 -3
  4. data/Rakefile +56 -9
  5. data/ext/do_mysql/compat.h +55 -0
  6. data/ext/do_mysql/do_mysql.c +1065 -0
  7. data/ext/do_mysql/error.h +527 -0
  8. data/ext/do_mysql/extconf.rb +74 -0
  9. data/lib/do_mysql.rb +27 -11
  10. data/lib/do_mysql/do_mysql.jar +0 -0
  11. data/lib/do_mysql/version.rb +1 -1
  12. data/spec/command_spec.rb +2 -2
  13. data/spec/connection_spec.rb +16 -14
  14. data/spec/encoding_spec.rb +2 -1
  15. data/spec/reader_spec.rb +1 -1
  16. data/spec/result_spec.rb +3 -3
  17. data/spec/spec_helper.rb +21 -31
  18. data/spec/typecast/array_spec.rb +1 -1
  19. data/spec/typecast/bigdecimal_spec.rb +2 -2
  20. data/spec/typecast/boolean_spec.rb +2 -2
  21. data/spec/typecast/byte_array_spec.rb +1 -1
  22. data/spec/typecast/class_spec.rb +1 -1
  23. data/spec/typecast/date_spec.rb +2 -2
  24. data/spec/typecast/datetime_spec.rb +2 -2
  25. data/spec/typecast/float_spec.rb +2 -2
  26. data/spec/typecast/integer_spec.rb +1 -1
  27. data/spec/typecast/nil_spec.rb +3 -3
  28. data/spec/typecast/other_spec.rb +8 -0
  29. data/spec/typecast/range_spec.rb +1 -1
  30. data/spec/typecast/string_spec.rb +1 -1
  31. data/spec/typecast/time_spec.rb +1 -1
  32. data/tasks/compile.rake +65 -0
  33. data/tasks/release.rake +12 -71
  34. data/tasks/retrieve.rake +1 -1
  35. data/tasks/spec.rake +19 -15
  36. metadata +119 -107
  37. data/HISTORY.markdown +0 -17
  38. data/Manifest.txt +0 -32
  39. data/lib/do_mysql_ext.jar +0 -0
  40. data/spec/lib/rspec_immediate_feedback_formatter.rb +0 -3
  41. data/tasks/gem.rake +0 -8
  42. data/tasks/install.rake +0 -15
  43. data/tasks/native.rake +0 -31
data/HISTORY.markdown DELETED
@@ -1,17 +0,0 @@
1
- ## 0.10.0 2009-10-15
2
- * Improvements
3
- * JRuby Support (using *do_jdbc*)
4
-
5
- ## 0.9.12 2009-05-17
6
- * Improvements
7
- * Windows support
8
-
9
- ## 0.9.11 2009-01-19
10
- * Improvements
11
- * Ruby 1.9 support
12
- * Fixes
13
- * Reconnecting now works properly
14
-
15
- ## 0.9.9 2008-11-27
16
- * Improvements
17
- * Added initial support for Ruby 1.9 [John Harrison]
data/Manifest.txt DELETED
@@ -1,32 +0,0 @@
1
- .gitignore
2
- HISTORY.markdown
3
- LICENSE
4
- Manifest.txt
5
- README.markdown
6
- Rakefile
7
- buildfile
8
- ext-java/src/main/java/DoMysqlExtService.java
9
- ext-java/src/main/java/do_mysql/MySqlDriverDefinition.java
10
- ext/.gitignore
11
- ext/do_mysql_ext/do_mysql_ext.c
12
- ext/do_mysql_ext/extconf.rb
13
- lib/do_mysql.rb
14
- lib/do_mysql/transaction.rb
15
- lib/do_mysql/version.rb
16
- spec/command_spec.rb
17
- spec/connection_spec.rb
18
- spec/reader_spec.rb
19
- spec/result_spec.rb
20
- spec/spec.opts
21
- spec/spec_helper.rb
22
- spec/typecast/bigdecimal_spec.rb
23
- spec/typecast/boolean_spec.rb
24
- spec/typecast/byte_array_spec.rb
25
- spec/typecast/class_spec.rb
26
- spec/typecast/date_spec.rb
27
- spec/typecast/datetime_spec.rb
28
- spec/typecast/float_spec.rb
29
- spec/typecast/integer_spec.rb
30
- spec/typecast/nil_spec.rb
31
- spec/typecast/string_spec.rb
32
- spec/typecast/time_spec.rb
data/lib/do_mysql_ext.jar DELETED
Binary file
@@ -1,3 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'data_objects', 'spec', 'lib', 'rspec_immediate_feedback_formatter'))
data/tasks/gem.rake DELETED
@@ -1,8 +0,0 @@
1
- require 'rubygems/package_task'
2
-
3
- GEM_SPEC = eval(File.read('do_mysql.gemspec'))
4
-
5
- gem_package = Gem::PackageTask.new(GEM_SPEC) do |pkg|
6
- pkg.need_tar = false
7
- pkg.need_zip = false
8
- end
data/tasks/install.rake DELETED
@@ -1,15 +0,0 @@
1
- def sudo_gem(cmd)
2
- sh "#{SUDO} #{RUBY} -S gem #{cmd}", :verbose => false
3
- end
4
-
5
- # Installation
6
-
7
- desc "Install #{GEM_SPEC.name} #{GEM_SPEC.version}"
8
- task :install => [ :package ] do
9
- sudo_gem "install pkg/#{GEM_SPEC.name}-#{GEM_SPEC.version} --no-update-sources"
10
- end
11
-
12
- desc "Uninstall #{GEM_SPEC.name} #{GEM_SPEC.version}"
13
- task :uninstall => [ :clean ] do
14
- sudo_gem "uninstall #{GEM_SPEC.name} -v#{GEM_SPEC.version} -I -x"
15
- end
data/tasks/native.rake DELETED
@@ -1,31 +0,0 @@
1
- begin
2
- gem('rake-compiler')
3
- require 'rake/extensiontask'
4
-
5
- Rake::ExtensionTask.new('do_mysql_ext', GEM_SPEC) do |ext|
6
-
7
- mysql_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', "mysql-#{BINARY_VERSION}-win32"))
8
-
9
- # automatically add build options to avoid need of manual input
10
- if RUBY_PLATFORM =~ /mswin|mingw/ then
11
- ext.config_options << "--with-mysql-include=#{mysql_lib}/include"
12
- ext.config_options << "--with-mysql-lib=#{mysql_lib}/lib/opt"
13
- else
14
- ext.cross_compile = true
15
- ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
16
- ext.cross_config_options << "--with-mysql-include=#{mysql_lib}/include"
17
- ext.cross_config_options << "--with-mysql-lib=#{mysql_lib}/lib/opt"
18
- end
19
-
20
- end
21
- rescue LoadError
22
- warn "To cross-compile, install rake-compiler (gem install rake-compiler)"
23
-
24
- if (tasks_dir = ROOT.parent + 'tasks').directory?
25
- require tasks_dir + 'ext_helper'
26
- require tasks_dir + 'ext_helper_java'
27
-
28
- setup_c_extension("#{GEM_SPEC.name}_ext", GEM_SPEC)
29
- setup_java_extension("#{GEM_SPEC.name}_ext", GEM_SPEC)
30
- end
31
- end