blazer 3.0.0 → 3.0.2

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: 2162f01b076af999532a8e117f91398e2856e20877b114a0ab9f3c40cc41563b
4
- data.tar.gz: 53826d22d24afdd1ea5c5456939480926cd8f75a7c06d6065f75e42f8d6a79fc
3
+ metadata.gz: 3a0f6a621ff07778431c643a27d6d96b0504c92d6ac84367f54e5854c37565c1
4
+ data.tar.gz: dd85572e78f48dec27699bdcd8dfb026275acf338f81b3b6a9647556786a0c4a
5
5
  SHA512:
6
- metadata.gz: 47d13182d74b1cd21bed954519c7b6a38253db3bf88f09b75e7f1172c7ac1d62cbfefe402c7a9eb9f0e232f470f35c3f55f7b2bcc535ad8aa50e22c9814ff71f
7
- data.tar.gz: 74af2d3652a256f1d4ec05da4ef0a86e53dd9b8671c42bc3f60b5862279059c2d5c846d813d6720030326df249caeaec6fca87a49336999ea9bbf97579d26ade
6
+ metadata.gz: 46e5a13f62a1ef05a7f668f839e83d931df7607851f65ccd31f15c3c77dce6ece3d6e3a62674ae11595851413e537059891de97ddd28fc44f23a7185663d83f6
7
+ data.tar.gz: 8bb2315848095962f00a8c6d4e643c0f468c96c89bf88f7c43da22511d536a50ca8b84d16a4e79707ff54c5eaa8fc3371da9944b3661cccc40c90e4165b70030
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 3.0.2 (2023-11-28)
2
+
3
+ - Fixed error with SQLite and prepared statements
4
+
5
+ ## 3.0.1 (2023-10-08)
6
+
7
+ - Fixed error with Rails 7.1 when no user model
8
+
1
9
  ## 3.0.0 (2023-09-20)
2
10
 
3
11
  - Switched from Mapbox.js to Mapbox GL JS v1 for maps (this affects Mapbox billing)
@@ -30,6 +30,8 @@ module Blazer
30
30
 
31
31
  layout "blazer/application"
32
32
 
33
+ default_form_builder ::ActionView::Helpers::FormBuilder
34
+
33
35
  private
34
36
 
35
37
  def process_vars(statement, var_params = nil)
@@ -194,10 +194,10 @@ module Blazer
194
194
 
195
195
  # Redshift adapter silently ignores binds
196
196
  def parameter_binding
197
- if postgresql? && (ActiveRecord::VERSION::STRING.to_f >= 6.1 || prepared_statements?)
198
- # Active Record < 6.1 silently ignores binds with Postgres when prepared statements are disabled
197
+ if postgresql?
199
198
  :numeric
200
- elsif sqlite?
199
+ elsif sqlite? && prepared_statements?
200
+ # Active Record silently ignores binds with SQLite when prepared statements are disabled
201
201
  :numeric
202
202
  elsif mysql? && prepared_statements?
203
203
  # Active Record silently ignores binds with MySQL when prepared statements are disabled
@@ -13,7 +13,8 @@ module Blazer
13
13
  audit = Blazer::Audit.new(statement: audit_statement)
14
14
  audit.query = query
15
15
  audit.data_source = data_source.id
16
- audit.user = options[:user]
16
+ # only set user if present to avoid error with Rails 7.1 when no user model
17
+ audit.user = options[:user] unless options[:user].nil?
17
18
  audit.save!
18
19
  end
19
20
 
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.2"
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: 3.0.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties