sqlstmt 0.2.15 → 0.2.16
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 +5 -5
- data/lib/sqlstmt/core_to_sql.rb +1 -2
- data/test/to_sql_test.rb +3 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 43fd727a94cc45f31164bb9e03eb4bd196cd8e66128c49f329681848fb20f940
|
4
|
+
data.tar.gz: b036810fd8b283550a0a5dc9af3ee7f876a30b0433cb7fe41fc0c34c3242e26d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcaffe414f5c51d43f56b13ecee6162528d71ed8fd398763ade58ca85c1585138421ea146569340bd76fbde282dbde5beeddde9c53cf5c392bb5ae65c0578f08
|
7
|
+
data.tar.gz: 2d9a4a5fbf44216eba1f9fa03385ea29c0f9e86eed147e7483632c35534716a406bae2b5b74492eb5e1b4029595326f94d4bcb334484959986518c6bb2edb460
|
data/lib/sqlstmt/core_to_sql.rb
CHANGED
data/test/to_sql_test.rb
CHANGED
@@ -6,11 +6,11 @@ class Test_to_sql < Minitest::Test
|
|
6
6
|
|
7
7
|
assert_equal("'blah'", 'blah'.to_sql)
|
8
8
|
assert_equal("'b\\\\lah'", "b\\lah".to_sql())
|
9
|
-
assert_equal("'b
|
10
|
-
assert_equal("'b
|
9
|
+
assert_equal("'b''lah'", "b'lah".to_sql())
|
10
|
+
assert_equal("'b\"lah'", "b\"lah".to_sql())
|
11
11
|
|
12
12
|
assert_equal('3', 3.to_sql)
|
13
|
-
assert_equal('10.0', BigDecimal
|
13
|
+
assert_equal('10.0', BigDecimal('10').to_sql)
|
14
14
|
|
15
15
|
assert_equal('1', true.to_sql)
|
16
16
|
assert_equal('0', false.to_sql)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlstmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATPSoft
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Build SQL statements using method calls instead of strings. This is not
|
14
14
|
an ORM. It has only been used and tested with MySQL so far but the intention is
|
@@ -55,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
|
59
|
-
rubygems_version: 2.6.12
|
58
|
+
rubygems_version: 3.2.11
|
60
59
|
signing_key:
|
61
60
|
specification_version: 4
|
62
61
|
summary: build SQL statements using method calls instead of strings
|