rb-konfig 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13dc2b950e1107253dbd69374abda84a6bd609695fb28e49676c7d841397b58b
4
- data.tar.gz: 15ccf9fa2b8be891e77f8bdc7c1dfe6050c4a6c660bd01524ab3693c4bb7e0f8
3
+ metadata.gz: bfb30d00724a9e715f0a6ae05566fbd9971d37f8fd3f8b5d93e2d8fd1cb8e8a0
4
+ data.tar.gz: 7a58048ecf49115e2ae42bc31785ad08084e43867effbc2b65063c9f023ad918
5
5
  SHA512:
6
- metadata.gz: 6b82d85c862f00fa50caa8102e5668c4ea95154e5997f24972056d52adf55f07d29b73286c1dc134264364f6c40153a3d353c420629174ebd25de69db68570d6
7
- data.tar.gz: 783ba8be6af7e3c5e3c697dd6c5217c7fba54d9b38cd7a750aafc5db914990464b657130f97c10b350e95f3c3230e28850169ed6a4e17305e2dc5fc78f2aed52
6
+ metadata.gz: 26d1d7cf12a8cd8289ef2dcc9ff492763ea7dafc3f207291506b6e1adafa641ef5e165ca16d8be87aa7333143649529c4188e49ff69a12652228c077c4477093
7
+ data.tar.gz: 0aa977c9177edd75491b404cd76eb24e7988e594ffe28bc14c921130e98bc917024f5416f8b446675eca4a3209dc5c5894f5595805965233423419b5cd8c7bfd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rb-konfig (0.1.1)
4
+ rb-konfig (0.1.2)
5
5
  activesupport (>= 4)
6
6
  dry-schema (~> 1.3)
7
7
  thor (~> 0.20)
data/README.md CHANGED
@@ -93,7 +93,7 @@ The directory mode, supports the following data types in files and tries to retu
93
93
  - Integer
94
94
  - Float
95
95
  - String
96
- - Date time
96
+ - Date time (valid ISO8601 formatted strings only)
97
97
  - Boolean
98
98
  - JSON
99
99
  - Null (see above)
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.parse(value) rescue NIL_VALUE }, # date time
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 })
@@ -1,3 +1,3 @@
1
1
  module Konfig
2
- VERSION ||= "0.1.2"
2
+ VERSION ||= "0.1.3"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport