redshift-client 0.1.0 → 0.1.1

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: 67c83c57a7e840e5aedd9f7e898e19e29c686fd7
4
- data.tar.gz: 83d397b157a2e917f76b985d70d776f7ddcade7b
3
+ metadata.gz: b658841f49c42bf499c3f22897a4705513570c93
4
+ data.tar.gz: 1742bf0ceafb98d437226a4bf4a326560e4b7d76
5
5
  SHA512:
6
- metadata.gz: e17ca257c5596dac375318526f7d636b6b560f21cca0c4f015d555bea3691abed47ec57a1988dd18db78eeb5db702d1ea184802e201234bff6eb3114eb96f77f
7
- data.tar.gz: 737debee56140d5b3190179f3be78ed2f43017a6249b15d3e6590349d39705cc9d205111a240355480723d1ea9da6e72a642873588c7e6f3dff0f3ab2ad875d3
6
+ metadata.gz: 5378dd022002853efb3f3941dba78b10ca841a6f20cd5e0c25b2a6833d0185940feb4662ba106c6dea7005966a11ef8fb5cdbbf12c911ad057e3998d48667f5a
7
+ data.tar.gz: dab2d572ee46543f268a830640c66034c83a81516398979a5dc10ff2875d2dbcfac15ddd9d8e8e089203269aad499e949269ae5711c049a47f34e158061dae1d
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Redshift::Client [![Build Status](https://travis-ci.org/dakatsuka/redshift-client.svg)](https://travis-ci.org/dakatsuka/redshift-client)
1
+ # Redshift::Client [![Build Status](https://travis-ci.org/dakatsuka/redshift-client.svg)](https://travis-ci.org/dakatsuka/redshift-client) [![Gem Version](https://badge.fury.io/rb/redshift-client.svg)](https://badge.fury.io/rb/redshift-client)
2
2
 
3
3
  The ruby client for AWS Redshift.
4
4
 
@@ -11,8 +11,10 @@ module Redshift
11
11
  end
12
12
 
13
13
  def disconnect
14
- connection.finish if connected?
15
- cleanup_thread!
14
+ if connected?
15
+ connection.finish
16
+ cleanup!
17
+ end
16
18
  end
17
19
 
18
20
  def connected?
@@ -38,8 +40,8 @@ module Redshift
38
40
  Thread.current[:redshift] = {}
39
41
  end
40
42
 
41
- def cleanup_thread!
42
- Thread.current[:redshift] = nil
43
+ def cleanup!
44
+ Thread.current[:redshift][:connection] = nil
43
45
  end
44
46
 
45
47
  def thread
@@ -1,5 +1,5 @@
1
1
  module Redshift
2
2
  module Client
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -70,7 +70,7 @@ describe Redshift::Client do
70
70
 
71
71
  context "when not yet established" do
72
72
  it "returns false" do
73
- expect(Redshift::Client).not_to be_established
73
+ Thread.new { expect(Redshift::Client).not_to be_established }
74
74
  end
75
75
  end
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redshift-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dai Akatsuka