sqlanywhere 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  =CHANGE LOG
2
2
 
3
+ =====0.1.3 -- 2008/12/31
4
+ - Removed 'hint file' in lib directory
5
+ - Added extensions to gemspec to force a local compile
6
+
3
7
  =====0.1.2 -- 2008/12/18
4
8
  - Fixed bug when trying to read input value from OUTPUT parameter
5
9
  - Added error checking to C2RB
data/Rakefile CHANGED
@@ -56,11 +56,6 @@ end
56
56
  # If we can't determine the version, throw up your hands and exit
57
57
  raise RuntimeError, "Could not determine current package version!" if pkg_version.empty?
58
58
 
59
- # The hint file will be automatically added to a souce_gem builds. If someone installs the source gem and
60
- # tries to run it, they will get a LoadError telling them that they must compile the software. This file
61
- # ONLY exists in a source gem
62
- hint_file = "raise LoadError, \"You need to compile the sqlanywhere package for this particular platform. To compile the package, change to the sqlanywhere package directory and run rake:\n cd $GEM_HOME/sqlanywhere-#{pkg_version}\n rake\nFor more information on compiling, please read $GEM_HOME/sqlanywhere-#{pkg_version}/README\""
63
-
64
59
  MAKE = (ARCH =~ /win32/ and USE_NMAKE_ON_WIN) ? 'nmake' : 'make'
65
60
 
66
61
  spec = Gem::Specification.new do |spec|
@@ -79,6 +74,7 @@ spec = Gem::Specification.new do |spec|
79
74
  spec.platform = Gem::Platform::CURRENT
80
75
  spec.required_ruby_version = '>= 1.8.6'
81
76
  spec.require_paths = ['lib']
77
+ spec.extensions << 'ext/extconf.rb'
82
78
  spec.test_file = 'test/sqlanywhere_test.rb'
83
79
  spec.rdoc_options << '--title' << 'SQL Anywhere Ruby Driver' <<
84
80
  '--main' << 'README' <<
@@ -118,23 +114,14 @@ file "sqlanywhere-#{pkg_version}.gem" => ["Rakefile",
118
114
  "README",
119
115
  "CHANGELOG",
120
116
  "LICENSE"] do
121
- # Create the hint file in the lib directory
122
- File.open(File.join("lib", "sqlanywhere.rb"), "w") do |f|
123
- f.puts hint_file
124
- end
125
117
  # Get the updated list of files to include in the gem
126
118
  spec.files = Dir['ext/**/*'] + Dir['lib/**/*'] + Dir['test/**/*'] + Dir['CHANGELOG'] + Dir['LICENSE'] + Dir['README'] + Dir['Rakefile']
127
119
  # Since this contains no compilked binaries, set it to be platform RUBY
128
120
  spec.platform = Gem::Platform::RUBY
129
121
  Gem::Builder.new(spec).build
130
- # Delete the hint file
131
- File.unlink(File.join("lib", "sqlanywhere.rb"))
132
122
  end
133
123
 
134
-
135
124
  file File.join("lib", library_file) => [File.join("ext", library_file)] do
136
- # If the hint file exists, delete it
137
- File.unlink(File.join("lib", "sqlanywhere.rb")) if File.exists?(File.join("lib", "sqlanywhere.rb"))
138
125
  File.copy(File.join("ext", library_file), "lib")
139
126
  end
140
127
 
data/ext/sqlanywhere.c CHANGED
@@ -24,7 +24,7 @@
24
24
  #include "ruby.h"
25
25
  #include "sacapidll.h"
26
26
 
27
- const char* VERSION = "0.1.2";
27
+ const char* VERSION = "0.1.3";
28
28
 
29
29
  // Defining the Ruby Modules
30
30
  static VALUE mSQLAnywhere;
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: sqlanywhere
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.2
7
- date: 2008-12-18 00:00:00 -05:00
6
+ version: 0.1.3
7
+ date: 2008-12-31 00:00:00 -05:00
8
8
  summary: SQL Anywhere library for Ruby
9
9
  require_paths:
10
10
  - lib
@@ -34,7 +34,6 @@ files:
34
34
  - ext/sacapidll.c
35
35
  - ext/sacapidll.h
36
36
  - ext/sqlanywhere.c
37
- - lib/sqlanywhere.rb
38
37
  - test/sqlanywhere_test.rb
39
38
  - test/test.sql
40
39
  - CHANGELOG
@@ -56,8 +55,8 @@ extra_rdoc_files:
56
55
  - ext/sqlanywhere.c
57
56
  executables: []
58
57
 
59
- extensions: []
60
-
58
+ extensions:
59
+ - ext/extconf.rb
61
60
  requirements: []
62
61
 
63
62
  dependencies: []
data/lib/sqlanywhere.rb DELETED
@@ -1,4 +0,0 @@
1
- raise LoadError, "You need to compile the sqlanywhere package for this particular platform. To compile the package, change to the sqlanywhere package directory and run rake:
2
- cd $GEM_HOME/sqlanywhere-0.1.2
3
- rake
4
- For more information on compiling, please read $GEM_HOME/sqlanywhere-0.1.2/README"