yakischloba-drizzle-ffi 0.0.3 → 0.0.4

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 (3) hide show
  1. data/drizzle.gemspec +1 -1
  2. data/lib/drizzle/drizzle.rb +2 -0
  3. metadata +1 -1
data/drizzle.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "drizzle-ffi"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.date = "2009-08-11"
5
5
  s.authors = ["Jake Douglas"]
6
6
  s.email = "jakecdouglas@gmail.com"
@@ -78,6 +78,7 @@ module Drizzle
78
78
  attach_function :con_status, :drizzle_con_status, [:pointer], :int
79
79
  attach_function :con_fd, :drizzle_con_fd, [:pointer], :int
80
80
  attach_function :con_clone, :drizzle_con_clone, [:pointer, :pointer, :pointer], :pointer
81
+ attach_function :con_set_tcp, :drizzle_con_set_tcp, [:pointer, :string, :int], :void
81
82
 
82
83
  # Querying
83
84
  attach_function :query_str, :drizzle_query_str, [:pointer, :pointer, :string, :pointer], :pointer
@@ -148,6 +149,7 @@ module Drizzle
148
149
  @conn = Connptr.new(Drizzle.con_create(@drizzle, nil))
149
150
  Drizzle.con_add_options(@conn, opts.inject(0){|i,o| i | Drizzle.enum_value(o)} | Drizzle.enum_value(:DRIZZLE_CON_NO_RESULT_READ))
150
151
  Drizzle.con_set_auth(@conn, @user, @pass)
152
+ Drizzle.con_set_tcp(@conn, @host, (opts.include?(:DRIZZLE_CON_MYSQL) ? 3306 : 4427))
151
153
  Drizzle.con_set_db(@conn, @db) if @db
152
154
  @retptr = FFI::MemoryPointer.new(:int)
153
155
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yakischloba-drizzle-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Douglas