sqlanywhere-ffi 1.0.1 → 1.0.2

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/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'ffi'
3
+ gem 'ffi', '>= 1.3.1'
@@ -18,7 +18,7 @@ class SQLAnywhere::SQLAnywhereInterface
18
18
  attach_function :sqlany_connect, [:pointer, :string], :int
19
19
 
20
20
  def sqlany_error(connection)
21
- size = 255
21
+ size = SQLAnywhere::ERROR_SIZE
22
22
  buffer = FFI::MemoryPointer.new(:char, size, false)
23
23
  code = sqlany_error_ connection, buffer, size
24
24
  return code, buffer.read_string
@@ -1,7 +1,5 @@
1
- gem 'ffi', '>=1.3.1'
2
1
  require 'ffi'
3
2
 
4
-
5
3
  class SQLAnywhere
6
4
  API_VERSION_1 = 1
7
5
  API_VERSION_2 = 2
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  This driver is intended to be a base-level library to be used by interface libraries such as Ruby-DBI and ActiveRecord.
7
7
  This driver can be used with SQL Anywhere 10 and later versions.
8
8
  DESCRIPTION
9
- s.version = "1.0.1"
9
+ s.version = "1.0.2"
10
10
  s.author = "Chris Couzens"
11
11
  s.email = "ccouzens@gmail.com"
12
12
  s.files = Dir['**/**']
@@ -15,5 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.has_rdoc = false
16
16
  s.add_dependency 'ffi', '>= 1.3.1'
17
17
  s.homepage = 'https://github.com/in4systems/sqlanywhere'
18
+ s.requirements = <<-REQUIREMENTS
19
+ DBCAPI should be installed.
20
+ http://www.sybase.co.uk/detail?id=1087327
21
+ It should also be in your library path.
22
+ On Linux, this can be done by running: source /opt/sqlanywhere12/bin64/sa_config.sh
23
+ REQUIREMENTS
18
24
  end
19
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlanywhere-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -71,7 +71,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - - ! '>='
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
- requirements: []
74
+ requirements:
75
+ - ! " DBCAPI should be installed.\n http://www.sybase.co.uk/detail?id=1087327\n
76
+ \ It should also be in your library path.\n On Linux, this can be done by running:
77
+ source /opt/sqlanywhere12/bin64/sa_config.sh\n"
75
78
  rubyforge_project:
76
79
  rubygems_version: 1.8.24
77
80
  signing_key: