tiny_tds 1.2.0-x86-mingw32 → 1.3.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9eade91d5f02e1e897d5a92fc716261517e742d7
4
- data.tar.gz: acbdda8c475e547b49d5b35a84b9d3fd512e3948
3
+ metadata.gz: c6225cc799d69e728e410bf1337d2a6f317fed30
4
+ data.tar.gz: 7b12e0f70e4e0fffec8a0b6650fc42a9a851b985
5
5
  SHA512:
6
- metadata.gz: 18ce8f920dc630298b4c5ba2187156d5d99859ac6a9bc42832c78a7f6bb099ce3b921db0dc91078c9acede33d0b8bacaef0c2af0769bd02d10a75b769ad2208f
7
- data.tar.gz: ad6bb1cb31a411d72d9a41c4d17911331184668790bc04c0d6349362e15926e7797bbb4e128be0f23469d5d76a090213dd6bce3dd7386815dda29a1ed1aaadbf
6
+ metadata.gz: eea851e93ca716ba0f692623764a967beed5929bac750892451e1e4a81edbf098b575a578837e99b40130c596bc4ca5cf55861871693befbaf6fcf6cf82494b0
7
+ data.tar.gz: d648206a095db5d8e3225d3cc47764c5f0e2de01bba117d634cd69327197ed711e5c36f51bf37710ea8824212e749bc6fc578f2efa74845e0fb6f4673c4efd9c
@@ -0,0 +1,32 @@
1
+ # Backers
2
+
3
+ You can join in supporting TinyTDS and the Rails SQL Server Adapter development by [pledging on Patreon](https://www.patreon.com/metaskills)! Backers in the same pledge level appear in the order of pledge date.
4
+
5
+ ### $2000
6
+
7
+ [It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611218)
8
+
9
+
10
+ ### $500
11
+
12
+ [It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611209)
13
+
14
+
15
+ ### $250
16
+
17
+ [It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611199)
18
+
19
+
20
+ ### $100
21
+
22
+ [It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611196)
23
+
24
+
25
+ ### $50+
26
+
27
+ [It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611186)
28
+
29
+
30
+ ### $10+
31
+
32
+ [It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611149)
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * 1.3.0
2
+
3
+ * FreeTDS: Link libgcc statically for Windows. (#351) Fixes #349.
4
+
5
+
1
6
  * 1.2.0
2
7
 
3
8
  * Use OpenSSL v1.1.0e & FreeTDS v1.00.27 for Windows builds.
data/README.md CHANGED
@@ -8,6 +8,13 @@
8
8
  * [![Dependency Status](https://dependencyci.com/github/rails-sqlserver/tiny_tds/badge)](https://dependencyci.com/github/rails-sqlserver/tiny_tds) - Dependency Status
9
9
  * [![Gitter chat](https://img.shields.io/badge/%E2%8A%AA%20GITTER%20-JOIN%20CHAT%20%E2%86%92-brightgreen.svg?style=flat)](https://gitter.im/rails-sqlserver/activerecord-sqlserver-adapter) - Community
10
10
 
11
+ ## Supporting TinyTDS/Adapter
12
+
13
+ Both TinyTDS and the Rails SQL Server Adapter are MIT-licensed open source projects. Its ongoing development is made possible thanks to the support by these awesome [backers](https://github.com/rails-sqlserver/tiny_tds/blob/master/BACKERS.md). If you'd like to join them, check out [MetaSkills Patreon Campaign](https://www.patreon.com/metaskills).
14
+
15
+
16
+ ## About TinyTDS
17
+
11
18
  The TinyTDS gem is meant to serve the extremely common use-case of connecting, querying and iterating over results to Microsoft SQL Server or Sybase databases from Ruby using the FreeTDS's DB-Library API.
12
19
 
13
20
  TinyTDS offers automatic casting to Ruby primitives along with proper encoding support. It converts all SQL Server datatypes to native Ruby primitives while supporting :utc or :local time zones for time-like types. To date it is the only Ruby client library that allows client encoding options, defaulting to UTF-8, while connecting to SQL Server. It also properly encodes all string and binary data. The motivation for TinyTDS is to become the de-facto low level connection mode for the SQL Server Adapter for ActiveRecord.
@@ -62,6 +69,15 @@ If none exist, our native extension will use MiniPortile to install any missing
62
69
  ```
63
70
 
64
71
 
72
+ ## Getting Started
73
+
74
+ Optionally, Microsoft has done a great job writing some articls on how to get started with SQL Server and Ruby using TinyTDS. Please checkout one of the following posts that match your platform.
75
+
76
+ * [SQL Server on a Mac](https://www.microsoft.com/en-us/sql-server/developer-get-started/ruby-mac)
77
+ * [SQL Server on RHEL](https://www.microsoft.com/en-us/sql-server/developer-get-started/ruby-rhel)
78
+ * [SQL Server on Ubuntu](https://www.microsoft.com/en-us/sql-server/developer-get-started/ruby-ubuntu)
79
+
80
+
65
81
  ## FreeTDS Compatibility & Configuration
66
82
 
67
83
  TinyTDS is developed against FreeTDS 0.95, 0.99, and 1.0 current. Our default and recommended is 1.0. We also test with SQL Server 2008, 2014, and Azure. However, usage of TinyTDS with SQL Server 2000 or 2005 should be just fine. Below are a few QA style notes about installing FreeTDS.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -205,7 +205,9 @@ def define_libssl_recipe(host)
205
205
  end
206
206
 
207
207
  def install
208
- super
208
+ unless installed?
209
+ execute('install', %Q(#{make_cmd} install_sw install_ssldirs))
210
+ end
209
211
  FileUtils.cp "#{work_path}/libcrypto32-#{version}-#{host}.dll", "#{path}/bin/"
210
212
  FileUtils.cp "#{work_path}/libssl32-#{version}-#{host}.dll", "#{path}/bin/"
211
213
  FileUtils.cp "#{work_path}/libcrypto.dll.a", "#{path}/lib/"
@@ -249,6 +251,16 @@ def define_freetds_recipe(host, libiconv, libssl, gnutls)
249
251
 
250
252
  class << recipe
251
253
 
254
+ def configure
255
+ cross = enable_config("cross-build")
256
+ if cross
257
+ prev_cc = ENV['CC']
258
+ ENV['CC'] = consolidated_host(gcc_cmd) + ' -static-libgcc'
259
+ end
260
+ super
261
+ ENV['CC'] = prev_cc if cross
262
+ end
263
+
252
264
  def install
253
265
  super_value = super
254
266
  # Install binstub target binaries.
@@ -3,7 +3,7 @@
3
3
  set -x
4
4
  set -e
5
5
 
6
- tag=1.3
6
+ tag=1.4
7
7
 
8
8
  docker pull metaskills/mssql-server-linux-tinytds:$tag
9
9
 
@@ -135,10 +135,10 @@ class ResultTest < TinyTds::TestCase
135
135
  text = 'test affected rows sql'
136
136
  @client.execute("DELETE FROM [datatypes]").do
137
137
  afrows = @client.execute("SELECT @@ROWCOUNT AS AffectedRows").each.first['AffectedRows']
138
- assert_instance_of Fixnum, afrows
138
+ ['Fixnum', 'Integer'].must_include afrows.class.name
139
139
  @client.execute("INSERT INTO [datatypes] ([varchar_50]) VALUES ('#{text}')").do
140
140
  pk1 = @client.execute(@client.identity_sql).each.first['Ident']
141
- assert_instance_of Fixnum, pk1, 'we it be able to CAST to bigint'
141
+ ['Fixnum', 'Integer'].must_include pk1.class.name, 'we it be able to CAST to bigint'
142
142
  @client.execute("UPDATE [datatypes] SET [varchar_50] = NULL WHERE [varchar_50] = '#{text}'").do
143
143
  afrows = @client.execute("SELECT @@ROWCOUNT AS AffectedRows").each.first['AffectedRows']
144
144
  assert_equal 1, afrows
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Ken Collins
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-03-12 00:00:00.000000000 Z
13
+ date: 2017-04-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -112,6 +112,7 @@ files:
112
112
  - ".gitignore"
113
113
  - ".rubocop.yml"
114
114
  - ".travis.yml"
115
+ - BACKERS.md
115
116
  - CHANGELOG
116
117
  - CODE_OF_CONDUCT.md
117
118
  - Gemfile