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 +1 -1
- data/lib/sql_anywhere_interface.rb +1 -1
- data/lib/sqlanywhere.rb +0 -2
- data/sqlanywhere-ffi.gemspec +7 -1
- metadata +5 -2
data/Gemfile
CHANGED
@@ -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 =
|
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
|
data/lib/sqlanywhere.rb
CHANGED
data/sqlanywhere-ffi.gemspec
CHANGED
@@ -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.
|
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.
|
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:
|