stduritemplate 1.0.6 → 2.0.1

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 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7512849e7e0a1d6c9b354b04f48b9441286cfd68e7ed57fdd4ec764cadcbc231
4
- data.tar.gz: 45cbb0ffaeff7dcaf64970483f5cbae5ff3f99ba86b716984ba1c503d1d6b875
3
+ metadata.gz: ce3ca26159bba4ac79f0ed39874c3fa693a8994ce4c8114d7cc94563ba169217
4
+ data.tar.gz: f27e88693d62b475a08ddbf2668ad4b82d7e5a7b788172907e8b73e76944df1d
5
5
  SHA512:
6
- metadata.gz: 7337d90e56cc35fe7b10a08daf748308205245b71d3465e915ba01ecb8e5f2058541b5180dbe7d168d140bc1d975d86fda0c712d508b4f38cb14048bec182578
7
- data.tar.gz: bbfae6b008f8cde28a1cbb2872414ca01d8851080a898db4c5a4210390b0708284829d6a2652121de3ddb5d98603973eb915bfeb3a4d99649d3a6ff57261382c
6
+ metadata.gz: 04c2661e6d0272772be1569ceda09246aafd45815487ded88f50c0ad7e4ab659124f7649e228b6ab1f5d15b3ee1a31b3b604bd40d61408171bf441e7db16b227
7
+ data.tar.gz: fe4dc2819dc7d9054657603a1c6cb03ffaf125529c0eb5a72fbab05a4280ee0355c732fe53ab16712cc4902df415a59a8a3a4d744cc7694e9315d5fca0cae935
@@ -303,9 +303,7 @@ module StdUriTemplate
303
303
  end
304
304
 
305
305
  def self.is_native_type(value)
306
- if (
307
- ([Integer, Float, String].any? { |type| value.is_a?(type) }) || ([true, false].include? value) ||
308
- ([DateTime].any? { |type| value.is_a?(type) }))
306
+ if (([Integer, Float, String].any? { |type| value.is_a?(type) }) || ([true, false].include? value))
309
307
  true
310
308
  else
311
309
  false
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: 1.0.6
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Peruffo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: std-uritemplate implementation for Ruby
14
14
  email: andrea.peruffo1982@gmail.com