stduritemplate 0.0.15 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/StdUriTemplate.rb +1 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09f88a3431385ed214a44e3edba9bf7a6d6aba91ba4ee189f0fd726af59edc62'
4
- data.tar.gz: 2cfa09b43a474d6684f4252cf07056d69cb001923f96007203282892c720fe82
3
+ metadata.gz: 7c6f693c57c7614a10f55caf5f217b6d957c3553010add577c481ea52dcc44a5
4
+ data.tar.gz: ab06ab9f2a1f960115991dbda4af011cdbfefbc6ebd4e2a383b96caf1aa569cc
5
5
  SHA512:
6
- metadata.gz: b52e1b72b976e2c22dea51b068ecd9d43f7bb096ecf9d987e5c2598dad710facf46e03b3ab91ef104afe96821e99e9b17fb06d5bbf3fbe27b9db294d398b8224
7
- data.tar.gz: 172dda6c3589484250eb6a15418b323652a1e00d9bf66b6eb004873f67bd6712fb41e817aaaffd46ce44302989de5c2ba1eadf40e0604754846cbb76fe641079
6
+ metadata.gz: b582557708ad3f5753564780b6f02c3216b97e506531940983d1986d4cf2dddba0ffd0200ac7ec0fa4f000c0302c24ebd3e8b6b4b5e8110135feccc88c91ac58
7
+ data.tar.gz: 0653c3e0b54d56b5a286a31a4afb5703d98dae8e77f9b1cdab1090886af9b9594f80f7a8716b22e3df1bd6d131c17e3933dc4715b8ca615a268f09f60aa3e2c1
@@ -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.15
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-30 00:00:00.000000000 Z
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://rubygems.org/gems/std-uritemplate
20
+ homepage: https://github.com/std-uritemplate/std-uritemplate
21
21
  licenses:
22
22
  - APACHE-2
23
23
  metadata: {}