blazer 2.6.0 → 2.6.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
  SHA256:
3
- metadata.gz: 8bdfc1e428f7e01bf9a06461a5f0143a6e940cd1e3d708ba2bd504132bbaa1db
4
- data.tar.gz: 729e9a408e7f4fa5203ab4c133800e49087fccf634efcf7c9dd6ca80a610a861
3
+ metadata.gz: 9730ca392e0f5bf0d7ff9b186ee554914c12f204c9250ae0f4e8101334a8eb0a
4
+ data.tar.gz: a82b46348506e422ba96db6ad70755a6f18a70f65d3b44d9bab53c598af9393b
5
5
  SHA512:
6
- metadata.gz: e6c7a7be80246c1030170a5df95656947b2431cf908bb6d37d668cbe3f57006ef096d63186976c63c683f0e2511873cabb5d2be56e389de331487666ba297dc3
7
- data.tar.gz: 9feb70216244f77d37357376cd68b9ec85a6d3eeb3c89f3e58196688e81618ca2ae38372e5491e0811bdd7d9e0082317a711040f5782cc54f5d9f99ec57d624a
6
+ metadata.gz: d1dfa10786ea69f0d3603549c572132643162b994bdc78ee8ed06a3b0dfae4e5cb748f02ae2433ccac4962dcf94c67f20a57baec400ed2da6ea9a5bf882a49db
7
+ data.tar.gz: 4c98700f9adac11025fb337d91e992c3f347b8a61b499938d15505b3e40216029f0edb3faa2c6fa85810375f3d41ba65f2abb8c5e33f0c819cedc95aab0a8c7e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.6.1 (2022-04-21)
2
+
3
+ - Added `region` setting to Amazon Athena
4
+ - Fixed error with MySQL for Rails < 7
5
+ - Fixed error with binary data
6
+
1
7
  ## 2.6.0 (2022-04-20)
2
8
 
3
9
  - Fixed quoting issue with variables
data/README.md CHANGED
@@ -607,6 +607,7 @@ data_sources:
607
607
  workgroup: primary
608
608
  access_key_id: ...
609
609
  secret_access_key: ...
610
+ region: ...
610
611
  ```
611
612
 
612
613
  Here’s an example IAM policy:
@@ -709,7 +710,7 @@ Use a read-only user. Requires the [Thrift server](https://spark.apache.org/docs
709
710
 
710
711
  ### Cassandra
711
712
 
712
- Add [cassandra-driver](https://github.com/datastax/ruby-driver) to your Gemfile and set:
713
+ Add [cassandra-driver](https://github.com/datastax/ruby-driver) (and [sorted_set](https://github.com/knu/sorted_set) for Ruby 3+) to your Gemfile and set:
713
714
 
714
715
  ```yml
715
716
  data_sources:
@@ -169,11 +169,12 @@ module Blazer
169
169
 
170
170
  def client_options
171
171
  @client_options ||= begin
172
+ options = {}
172
173
  if settings["access_key_id"] || settings["secret_access_key"]
173
- {credentials: Aws::Credentials.new(settings["access_key_id"], settings["secret_access_key"])}
174
- else
175
- {}
174
+ options[:credentials] = Aws::Credentials.new(settings["access_key_id"], settings["secret_access_key"])
176
175
  end
176
+ options[:region] = settings["region"] if settings["region"]
177
+ options
177
178
  end
178
179
  end
179
180
  end
@@ -193,7 +193,7 @@ module Blazer
193
193
  def parameter_binding
194
194
  if postgresql? || sqlite?
195
195
  :numeric
196
- elsif mysql? && connection_model.connection.prepared_statements?
196
+ elsif mysql? && connection_model.connection.prepared_statements
197
197
  # Active Record silently ignores binds with MySQL when prepared statements are disabled
198
198
  :positional
199
199
  elsif sqlserver?
data/lib/blazer/result.rb CHANGED
@@ -56,6 +56,8 @@ module Blazer
56
56
  "time"
57
57
  elsif v.nil?
58
58
  nil
59
+ elsif v.is_a?(String) && v.encoding == Encoding::BINARY
60
+ "binary"
59
61
  else
60
62
  "string"
61
63
  end
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties