rb-konfig 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/konfig/utils.rb +1 -1
- data/lib/konfig/version.rb +1 -1
- 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: bfb30d00724a9e715f0a6ae05566fbd9971d37f8fd3f8b5d93e2d8fd1cb8e8a0
|
4
|
+
data.tar.gz: 7a58048ecf49115e2ae42bc31785ad08084e43867effbc2b65063c9f023ad918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26d1d7cf12a8cd8289ef2dcc9ff492763ea7dafc3f207291506b6e1adafa641ef5e165ca16d8be87aa7333143649529c4188e49ff69a12652228c077c4477093
|
7
|
+
data.tar.gz: 0aa977c9177edd75491b404cd76eb24e7988e594ffe28bc14c921130e98bc917024f5416f8b446675eca4a3209dc5c5894f5595805965233423419b5cd8c7bfd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/konfig/utils.rb
CHANGED
@@ -10,7 +10,7 @@ module Konfig
|
|
10
10
|
lambda { |value| Integer(value) rescue NIL_VALUE }, # integer
|
11
11
|
lambda { |value| Float(value) rescue NIL_VALUE }, # float
|
12
12
|
lambda { |value| (["true", "false"].include?(value)) ? (value == "true") : NIL_VALUE }, # boolean
|
13
|
-
lambda { |value| DateTime.
|
13
|
+
lambda { |value| DateTime.iso8601(value) rescue NIL_VALUE }, # date time
|
14
14
|
lambda { |value| (value == Konfig.configuration.nil_word && Konfig.configuration.allow_nil) ? nil : NIL_VALUE }, # nil value
|
15
15
|
lambda do |value|
|
16
16
|
result = JSON.parse(value, { symbolize_names: true })
|
data/lib/konfig/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-konfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khash Sajadi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|