sqlanywhere-ffi 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -11,9 +11,10 @@ This driver is licensed under the Apache License, Version 2.
11
11
 
12
12
  The official code repository is located on GitHub. The repository can be cloned with:
13
13
 
14
- git clone git://github.com/sqlanywhere/sqlanywhere.git
14
+ git clone git://github.com/in4systems/sqlanywhere.git
15
15
 
16
- ==Running Unit Tests==
16
+ Running Unit Tests
17
+ ==================
17
18
 
18
19
  1. Change to the the <tt>test</tt> directory
19
20
 
@@ -43,7 +44,7 @@ Sample
43
44
 
44
45
  This script makes a connection, prints <tt>Successful Ruby Connection</tt> to the SQL
45
46
  Anywhere console, then disconnects.
46
-
47
+ <code>
47
48
  # load the SQLAnywhere gem
48
49
 
49
50
  begin
@@ -99,4 +100,4 @@ Anywhere console, then disconnects.
99
100
  # close the interface
100
101
 
101
102
  SQLAnywhere::API.sqlany_finalize_interface( api )
102
-
103
+ </code>
data/lib/sqlanywhere.rb CHANGED
@@ -1,3 +1,4 @@
1
+ gem 'ffi', '>=1.3.1'
1
2
  require 'ffi'
2
3
 
3
4
 
@@ -1,13 +1,17 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sqlanywhere-ffi"
3
3
  s.summary = "A low-lever driver that allows Ruby code to interface with SQL Anywhere databases"
4
- s.description = File.read(File.join(File.dirname(__FILE__), 'README.md'))
5
- s.version = "1.0.0"
4
+ s.description = <<-DESCRIPTION
5
+ This library wraps the functionality provided by the SQL Anywhere DBCAPI library.
6
+ This driver is intended to be a base-level library to be used by interface libraries such as Ruby-DBI and ActiveRecord.
7
+ This driver can be used with SQL Anywhere 10 and later versions.
8
+ DESCRIPTION
9
+ s.version = "1.0.1"
6
10
  s.author = "Chris Couzens"
7
11
  s.email = "ccouzens@gmail.com"
8
12
  s.files = Dir['**/**']
9
13
  s.executables = []
10
- s.test_files = Dir["test/test*.rb"]
14
+ s.test_files = Dir["test/sqlanywhere_test.rb"]
11
15
  s.has_rdoc = false
12
16
  s.add_dependency 'ffi', '>= 1.3.1'
13
17
  s.homepage = 'https://github.com/in4systems/sqlanywhere'
metadata CHANGED
@@ -1,70 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlanywhere-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Couzens
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-21 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
19
  - - ! '>='
19
20
  - !ruby/object:Gem::Version
20
21
  version: 1.3.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
21
25
  none: false
22
- requirement: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 1.3.1
27
- none: false
28
- prerelease: false
29
- type: :runtime
30
- description: "SQL Anywhere Ruby Driver\n------------------------\nThis is a native\
31
- \ SQL Anywhere driver for Ruby. This library wraps the \nfunctionality provided\
32
- \ by the SQL Anywhere DBCAPI library. This driver\nis intended to be a base-level\
33
- \ library to be used by interface libraries\nsuch as Ruby-DBI and ActiveRecord.\n\
34
- \nThis driver can be used with SQL Anywhere 10 and later versions.\n\nThis driver\
35
- \ is licensed under the Apache License, Version 2.\n\nThe official code repository\
36
- \ is located on GitHub. The repository can be cloned with:\n\n git clone git://github.com/sqlanywhere/sqlanywhere.git\n\
37
- \n==Running Unit Tests==\n\n1. Change to the the <tt>test</tt> directory\n\n \
38
- \ cd test\n\n2. Create a testing database:\n\n dbinit test\n\n3. Start the testing\
39
- \ database:\n\n dbeng12 test.db\n \n4. Create the test schema:\n\n dbisql\
40
- \ -c \"eng=test;uid=dba;pwd=sql\" test.sql\n\n5. Run the unit tests:\n\n ruby\
41
- \ sqlanywhere_test.rb\n\n<b>If the tests fail to run, make sure you have set up\
42
- \ the SQL Anywhere environment variables correctly.</b> For more information,\n\
43
- review the online documentation here [http://dcx.sybase.com/index.html#1200/en/dbadmin/da-envvar.html].\n\
44
- \nSample\n------\n\nThis script makes a connection, prints <tt>Successful Ruby Connection</tt>\
45
- \ to the SQL\nAnywhere console, then disconnects.\n \n # load the SQLAnywhere\
46
- \ gem\n\n begin\n\n require 'rubygems'\n\n gem 'sqlanywhere'\n\n unless\
47
- \ defined? SQLAnywhere\n\n require 'sqlanywhere'\n\n end\n\n end\n\n\
48
- \ # create an interface\n\n api = SQLAnywhere::SQLAnywhereInterface.new()\n\n\
49
- \ # initialize the interface (loads the DLL/SO)\n\n SQLAnywhere::API.sqlany_initialize_interface(\
50
- \ api )\n\n # initialize our api object\n\n api.sqlany_init()\n\n # create\
51
- \ a connection\n\n conn = api.sqlany_new_connection()\n\n # establish a connection\n\
52
- \n api.sqlany_connect(conn, \"uid=dba;pwd=sql\")\n\n # execute a query without\
53
- \ a result set\n\n api.sqlany_execute_immediate(conn, \"MESSAGE 'Successful Ruby\
54
- \ Connection'\")\n\n # disconnect from the database\n\n api.sqlany_disconnect(conn)\n\
55
- \n # free the connection resources\n\n api.sqlany_free_connection(conn)\n\n\
56
- \ # free resources the api object uses\n\n api.sqlany_fini()\n\n # close the\
57
- \ interface\n \n SQLAnywhere::API.sqlany_finalize_interface( api )\n\n"
30
+ description: ! " This library wraps the functionality provided by the SQL Anywhere
31
+ DBCAPI library.\n This driver is intended to be a base-level library to be used
32
+ by interface libraries such as Ruby-DBI and ActiveRecord.\n This driver can be
33
+ used with SQL Anywhere 10 and later versions.\n"
58
34
  email: ccouzens@gmail.com
59
35
  executables: []
60
36
  extensions: []
61
37
  extra_rdoc_files: []
62
38
  files:
63
39
  - CHANGELOG
64
- - Gemfile
65
- - README.md
66
- - sqlanywhere-ffi.gemspec
67
- - LICENSE
68
40
  - lib/column_info.rb
69
41
  - lib/bind_param.rb
70
42
  - lib/sqlanywhere.rb
@@ -74,33 +46,36 @@ files:
74
46
  - lib/bind_param_info.rb
75
47
  - lib/bool.rb
76
48
  - lib/data_info.rb
49
+ - Gemfile
50
+ - README.md
77
51
  - test/test.sql
78
52
  - test/test_iq.sql
79
53
  - test/sqlanywhere_test.rb
54
+ - sqlanywhere-ffi.gemspec
55
+ - LICENSE
80
56
  homepage: https://github.com/in4systems/sqlanywhere
81
57
  licenses: []
82
- post_install_message:
58
+ post_install_message:
83
59
  rdoc_options: []
84
60
  require_paths:
85
61
  - lib
86
62
  required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
87
64
  requirements:
88
65
  - - ! '>='
89
66
  - !ruby/object:Gem::Version
90
- version: !binary |-
91
- MA==
92
- none: false
67
+ version: '0'
93
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
94
70
  requirements:
95
71
  - - ! '>='
96
72
  - !ruby/object:Gem::Version
97
- version: !binary |-
98
- MA==
99
- none: false
73
+ version: '0'
100
74
  requirements: []
101
- rubyforge_project:
75
+ rubyforge_project:
102
76
  rubygems_version: 1.8.24
103
- signing_key:
77
+ signing_key:
104
78
  specification_version: 3
105
79
  summary: A low-lever driver that allows Ruby code to interface with SQL Anywhere databases
106
- test_files: []
80
+ test_files:
81
+ - test/sqlanywhere_test.rb