Skip to content

Commit 83416e2

Browse files
authored
Merge pull request #18 from Couchbase-Ecosystem/update_supported_ruby_versions
👷 Add Ruby version 3.4 to CI grid
2 parents 345b581 + cfb84ba commit 83416e2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14+
- ruby: '3.4'
15+
active-model: '8.0.2'
16+
couchbase: '7.2.3'
1417
- ruby: '3.3'
1518
active-model: '8.0.0'
1619
couchbase: '7.2.3'

lib/couchbase-orm/types/date_time.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ def cast(value)
77
end
88

99
def serialize(value)
10-
value&.iso8601(@precision)
10+
value&.
11+
iso8601(@precision || 0)
1112
end
1213
end
1314
end

lib/couchbase-orm/utilities/query_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def quote(value)
133133
if [String, Date].any? { |clazz| value.is_a?(clazz) }
134134
"'#{N1ql.sanitize(value)}'"
135135
elsif [DateTime, Time].any? { |clazz| value.is_a?(clazz) }
136-
formatedDate = value&.iso8601(@precision)
136+
formatedDate = value&.iso8601(@precision || 0)
137137
"'#{N1ql.sanitize(formatedDate)}'"
138138
elsif value.is_a? Array
139139
"[#{value.map{|v|quote(v)}.join(', ')}]"

0 commit comments

Comments
 (0)