tiny_tds 0.4.4 → 0.4.5.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,11 @@
1
1
 
2
+ * 0.4.5.rc1 *
3
+
4
+ * Release static libs for Windows.
5
+
6
+ * Change how :host/:port are implemented. Now sending "host:port" to :dataserver.
7
+
8
+
2
9
  * 0.4.4 *
3
10
 
4
11
  * New :host/:port connection options. Removes need for freetds.conf file.
data/Gemfile CHANGED
@@ -3,12 +3,12 @@ source :rubygems
3
3
 
4
4
  group :development do
5
5
  gem 'rake', '>= 0.8.7'
6
- gem 'mini_portile', '0.2.1'
6
+ gem 'mini_portile', '0.2.2'
7
7
  gem 'rake-compiler', '0.7.7'
8
8
  end
9
9
 
10
10
  group :test do
11
- gem 'mini_shoulda'
11
+ gem 'mini_shoulda', '0.3.0'
12
12
  gem 'activesupport', '2.3.5'
13
13
  gem 'bench_press', '0.3.1'
14
14
  platforms :mri_18 do
data/NOTES CHANGED
@@ -1,7 +1,5 @@
1
1
 
2
2
  TODO
3
-
4
- * Update Readme when 0.83.dev becomes a release.
5
3
 
6
4
  * Client & Connection
7
5
  - Make a #ping method that does the "SELECT 1" when not closed.
@@ -11,4 +9,3 @@ TODO
11
9
  * Result Set
12
10
  - See if we can make a binary string of [timestamp] type.
13
11
 
14
-
data/Rakefile CHANGED
@@ -6,8 +6,6 @@ require 'rake/testtask'
6
6
  require 'rake/extensiontask'
7
7
  require "rubygems/package_task"
8
8
 
9
- Dir["tasks/*.rake"].sort.each { |f| load f }
10
-
11
9
  def test_libs
12
10
  ['lib','test']
13
11
  end
@@ -36,7 +34,6 @@ task :compile => ["ports:freetds"] unless ENV['TINYTDS_SKIP_PORTS']
36
34
  Rake::ExtensionTask.new('tiny_tds', gemspec) do |ext|
37
35
  ext.lib_dir = 'lib/tiny_tds'
38
36
  ext.config_options << "--enable-iconv" unless ENV['TINYTDS_SKIP_PORTS']
39
- # Automatically add build options to avoid need of manual input.
40
37
  if RUBY_PLATFORM =~ /mswin|mingw/ then
41
38
  # Define target for extension (supporting fat binaries).
42
39
  RUBY_VERSION =~ /(\d+\.\d+)/
@@ -45,8 +42,6 @@ Rake::ExtensionTask.new('tiny_tds', gemspec) do |ext|
45
42
  ext.cross_compile = true
46
43
  ext.cross_platform = ['i386-mingw32']
47
44
  ext.cross_config_options << "--disable-lookup"
48
- ext.cross_config_options << "--with-iconv-dir=#{$recipes[:libiconv].path}"
49
- ext.cross_config_options << "--with-freetds-dir=#{$recipes[:freetds].path}"
50
45
  end
51
46
  end
52
47
 
@@ -54,4 +49,4 @@ task :build => [:clean, :compile]
54
49
 
55
50
  task :default => [:build, :test]
56
51
 
57
-
52
+ Dir["tasks/*.rake"].sort.each { |f| load f }
@@ -75,6 +75,7 @@ if enable_config("lookup", true)
75
75
  abort "-----\nCan not find FreeTDS's db-lib or include directory.\n-----"
76
76
  end
77
77
  else
78
+ $LDFLAGS = ENV.fetch("LDFLAGS")
78
79
  unless have_freetds_libraries?(*FREETDS_LIBRARIES) && have_freetds_headers?(*FREETDS_HEADERS)
79
80
  abort "-----\nCan not find FreeTDS's db-lib or include directory.\n-----"
80
81
  end
@@ -56,11 +56,7 @@ module TinyTds
56
56
  opts[:timeout] ||= 5
57
57
  opts[:encoding] = (opts[:encoding].nil? || opts[:encoding].downcase == 'utf8') ? 'UTF-8' : opts[:encoding].upcase
58
58
  opts[:port] ||= 1433
59
- ENV['TDSPORT'] = opts[:port].to_s
60
- if opts[:dataserver].to_s.empty?
61
- opts[:dataserver] = ''
62
- ENV['TDSHOST'] = opts[:host].to_s
63
- end
59
+ opts[:dataserver] = "#{opts[:host]}:#{opts[:port]}" if opts[:dataserver].to_s.empty?
64
60
  connect(opts)
65
61
  end
66
62
 
@@ -1,3 +1,3 @@
1
1
  module TinyTds
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5.rc1'
3
3
  end
data/tasks/ports.rake CHANGED
@@ -36,12 +36,10 @@ namespace :ports do
36
36
  recipe = $recipes[:freetds]
37
37
  checkpoint = "ports/.#{recipe.name}.#{recipe.version}.#{recipe.host}.timestamp"
38
38
  unless File.exist?(checkpoint)
39
+ # recipe.configure_options << "--disable-debug"
40
+ recipe.configure_options << '--sysconfdir="C:/Sites"' if recipe.host != ORIGINAL_HOST
39
41
  recipe.configure_options << "--disable-odbc"
40
42
  recipe.configure_options << "--with-tdsver=7.1"
41
- # HACK: Only do this when cross compiling (util MiniPortile#activate gets the job done)
42
- unless recipe.host == ORIGINAL_HOST
43
- recipe.configure_options << "--with-libiconv-prefix=#{$recipes[:libiconv].path}"
44
- end
45
43
  recipe.cook
46
44
  touch checkpoint
47
45
  end
@@ -55,5 +53,6 @@ task :cross do
55
53
  $recipes.each do |_, recipe|
56
54
  recipe.host = host
57
55
  end
56
+ # hook compile task with dependencies
57
+ Rake::Task["compile"].prerequisites.unshift "ports:freetds"
58
58
  end
59
-
data/test/test_helper.rb CHANGED
@@ -35,15 +35,6 @@ module TinyTds
35
35
 
36
36
  end
37
37
 
38
- setup do
39
-
40
- end
41
-
42
- teardown do
43
- ENV['TDSPORT'] = nil
44
- ENV['TDSHOST'] = nil
45
- end
46
-
47
38
 
48
39
  protected
49
40
 
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease:
4
+ hash: 15424127
5
+ prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ - rc
11
+ - 1
12
+ version: 0.4.5.rc1
11
13
  platform: ruby
12
14
  authors:
13
15
  - Ken Collins
@@ -16,7 +18,7 @@ autorequire:
16
18
  bindir: bin
17
19
  cert_chain: []
18
20
 
19
- date: 2011-04-11 00:00:00 -04:00
21
+ date: 2011-04-15 00:00:00 -04:00
20
22
  default_executable:
21
23
  dependencies: []
22
24
 
@@ -83,16 +85,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
85
  required_rubygems_version: !ruby/object:Gem::Requirement
84
86
  none: false
85
87
  requirements:
86
- - - ">="
88
+ - - ">"
87
89
  - !ruby/object:Gem::Version
88
- hash: 3
90
+ hash: 25
89
91
  segments:
90
- - 0
91
- version: "0"
92
+ - 1
93
+ - 3
94
+ - 1
95
+ version: 1.3.1
92
96
  requirements: []
93
97
 
94
98
  rubyforge_project:
95
- rubygems_version: 1.5.0
99
+ rubygems_version: 1.6.2
96
100
  signing_key:
97
101
  specification_version: 3
98
102
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.