tiny_tds 0.9.5.beta.7 → 0.9.5.beta.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8401d1c4808d9a579a902e27faf97396c40c65c2
4
- data.tar.gz: 523bf9861a9f13768e6e32c641135dabaebb11af
3
+ metadata.gz: d48f1c36aa12557e50fbbc8c25bdb51d61e137e2
4
+ data.tar.gz: 71f40eda2997b98146c4bf0fb5e522b60df96e3f
5
5
  SHA512:
6
- metadata.gz: dc2db3827dd9bb7f31585b9f8e9c6c00de34be95f272ce12bbd7c18bf2ffe1373bc323b97136c38f07324bca4581f42db1cd5bfcda3beae5ab34d8a23243945a
7
- data.tar.gz: 7d602a6413f4e1d89319dc74c7bbe301329e3d79c19d01d909e40ee96084a4ce1ae1a19c3cf659bdf66f7e4f1631abc9073fbb262eb43eba2a64f4a5e69d6409
6
+ metadata.gz: 69ffac95ce98bc4fdb6c06e140514225c89a8a503ba057a13b6628d98c99d8745094bc4999ca91798c02343c44cc2a284de8ba58bbe6ea0360f580f1dc23c432
7
+ data.tar.gz: e6873d272426b78d5aa9169800a6be66d2e25898b55d719b429b724eb00af30b4b98c352b81d91ab8a9af37efb39b496824501d4ec540e7f995349003fef4549
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.7
1
+ 0.9.5.beta.8
@@ -9,6 +9,6 @@ FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "0.95.78"
9
9
  FREETDS_VERSION_INFO = Hash.new { |h,k|
10
10
  h[k] = {files: "ftp://ftp.freetds.org/pub/freetds/stable/freetds-#{k}.tar.bz2"}
11
11
  }
12
- FREETDS_VERSION_INFO['0.99'] = {files: 'ftp://ftp.freetds.org/pub/freetds/current/freetds-dev.0.99.479.tar.bz2'}
12
+ FREETDS_VERSION_INFO['0.99'] = {files: 'ftp://ftp.freetds.org/pub/freetds/current/freetds-dev.0.99.536.tar.bz2'}
13
13
  FREETDS_VERSION_INFO['current'] = {files: 'https://github.com/FreeTDS/freetds/archive/master.zip'}
14
14
  FREETDS_SOURCE_URI = FREETDS_VERSION_INFO[FREETDS_VERSION][:files]
data/lib/tiny_tds/bin.rb CHANGED
@@ -47,6 +47,7 @@ module TinyTds
47
47
  #
48
48
  def binary?(file)
49
49
  bytes = File.stat(file).blksize
50
+ return false unless bytes
50
51
  bytes = 4096 if bytes > 4096
51
52
  s = (File.read(file, bytes) || "")
52
53
  s = s.encode('US-ASCII', :undef => :replace).split(//)
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: 0.9.5.beta.7
4
+ version: 0.9.5.beta.8
5
5
  platform: ruby
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: 2016-01-02 00:00:00.000000000 Z
13
+ date: 2016-01-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2