stduritemplate 1.0.6 → 2.0.1
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 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce3ca26159bba4ac79f0ed39874c3fa693a8994ce4c8114d7cc94563ba169217
|
4
|
+
data.tar.gz: f27e88693d62b475a08ddbf2668ad4b82d7e5a7b788172907e8b73e76944df1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c2661e6d0272772be1569ceda09246aafd45815487ded88f50c0ad7e4ab659124f7649e228b6ab1f5d15b3ee1a31b3b604bd40d61408171bf441e7db16b227
|
7
|
+
data.tar.gz: fe4dc2819dc7d9054657603a1c6cb03ffaf125529c0eb5a72fbab05a4280ee0355c732fe53ab16712cc4902df415a59a8a3a4d744cc7694e9315d5fca0cae935
|
data/lib/stduritemplate.rb
CHANGED
@@ -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:
|
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-
|
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
|