blazer 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: 6deb8aff915dbda37c6d49f0469e9d0244faf48ee24bff2e486ac467ab13e90e
4
- data.tar.gz: 8b93cfc07025251e4a216f0cb42e5d91baa739d0107c874bbc41d7cd28653823
3
+ metadata.gz: 3a0f6a621ff07778431c643a27d6d96b0504c92d6ac84367f54e5854c37565c1
4
+ data.tar.gz: dd85572e78f48dec27699bdcd8dfb026275acf338f81b3b6a9647556786a0c4a
5
5
  SHA512:
6
- metadata.gz: 17e7e661e5a0339baf19bd7278e1661645890bc59d3db06db00ceacdc7671471f41c66f5e8dadaf8ba1746bc072d374b97328d9178dc099a25943ede2f33d29a
7
- data.tar.gz: f4cf77965a7f906f790da30205e28f43ec1c22fbda3dfa3d0e4091be95fd007435a5a079caac616f6096fd2927c064f1d216976924b67080bc9b33534f780666
6
+ metadata.gz: 46e5a13f62a1ef05a7f668f839e83d931df7607851f65ccd31f15c3c77dce6ece3d6e3a62674ae11595851413e537059891de97ddd28fc44f23a7185663d83f6
7
+ data.tar.gz: 8bb2315848095962f00a8c6d4e643c0f468c96c89bf88f7c43da22511d536a50ca8b84d16a4e79707ff54c5eaa8fc3371da9944b3661cccc40c90e4165b70030
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.0.2 (2023-11-28)
2
+
3
+ - Fixed error with SQLite and prepared statements
4
+
1
5
  ## 3.0.1 (2023-10-08)
2
6
 
3
7
  - Fixed error with Rails 7.1 when no user model
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = "3.0.1"
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.1
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-10-08 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