stduritemplate 0.0.15 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/StdUriTemplate.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6f693c57c7614a10f55caf5f217b6d957c3553010add577c481ea52dcc44a5
|
4
|
+
data.tar.gz: ab06ab9f2a1f960115991dbda4af011cdbfefbc6ebd4e2a383b96caf1aa569cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b582557708ad3f5753564780b6f02c3216b97e506531940983d1986d4cf2dddba0ffd0200ac7ec0fa4f000c0302c24ebd3e8b6b4b5e8110135feccc88c91ac58
|
7
|
+
data.tar.gz: 0653c3e0b54d56b5a286a31a4afb5703d98dae8e77f9b1cdab1090886af9b9594f80f7a8716b22e3df1bd6d131c17e3933dc4715b8ca615a268f09f60aa3e2c1
|
data/lib/StdUriTemplate.rb
CHANGED
@@ -288,7 +288,7 @@ module StdUriTemplate
|
|
288
288
|
raise ArgumentError, "Found an empty token at col:#{col}" if token.empty?
|
289
289
|
|
290
290
|
value = substitutions[token]
|
291
|
-
value = value.to_s if [Integer, Float].any? { |type| value.is_a?(type) }
|
291
|
+
value = value.to_s if ([Integer, Float].any? { |type| value.is_a?(type) }) || ([true, false].include? value)
|
292
292
|
|
293
293
|
subst_type = get_substitution_type(value, col)
|
294
294
|
return false if empty?(subst_type, value)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stduritemplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Peruffo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: std-uritemplate implementation for Ruby
|
14
14
|
email: andrea.peruffo1982@gmail.com
|
@@ -17,7 +17,7 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/StdUriTemplate.rb
|
20
|
-
homepage: https://
|
20
|
+
homepage: https://github.com/std-uritemplate/std-uritemplate
|
21
21
|
licenses:
|
22
22
|
- APACHE-2
|
23
23
|
metadata: {}
|