rb-konfig 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfb30d00724a9e715f0a6ae05566fbd9971d37f8fd3f8b5d93e2d8fd1cb8e8a0
4
- data.tar.gz: 7a58048ecf49115e2ae42bc31785ad08084e43867effbc2b65063c9f023ad918
3
+ metadata.gz: e89ed135a36c5a070a8e02df06a30aea4f3dc3e24582b276a634a485968b30da
4
+ data.tar.gz: c2a805cc1c9265ed33200ef6f2e0f31fd087db940125d83569c095886d865bc3
5
5
  SHA512:
6
- metadata.gz: 26d1d7cf12a8cd8289ef2dcc9ff492763ea7dafc3f207291506b6e1adafa641ef5e165ca16d8be87aa7333143649529c4188e49ff69a12652228c077c4477093
7
- data.tar.gz: 0aa977c9177edd75491b404cd76eb24e7988e594ffe28bc14c921130e98bc917024f5416f8b446675eca4a3209dc5c5894f5595805965233423419b5cd8c7bfd
6
+ metadata.gz: 32d1ea060492c8066e02671471b8bd6075601dfe99aa04a25b14eda9c4b7356d8ab88eda3bd8481b345f5ac6592c4b7e73f36cdf658ab7fa60ba8b849775f5fb
7
+ data.tar.gz: 40a42dad3ab16867caf1bd1f85d3ff86620710c64b3e76e864d68c777c1dada0d29b4879b12ae0fa74f23cd5b721837ba60af7df6d2d50de0689a1a3c1b211e3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rb-konfig (0.1.2)
4
+ rb-konfig (0.1.4)
5
5
  activesupport (>= 4)
6
6
  dry-schema (~> 1.3)
7
7
  thor (~> 0.20)
data/README.md CHANGED
@@ -93,7 +93,6 @@ 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 (valid ISO8601 formatted strings only)
97
96
  - Boolean
98
97
  - JSON
99
98
  - Null (see above)
@@ -1,5 +1,4 @@
1
1
  require_relative "config_provider"
2
- require "date"
3
2
  require "json"
4
3
 
5
4
  module Konfig
@@ -10,7 +10,6 @@ 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.iso8601(value) rescue NIL_VALUE }, # date time
14
13
  lambda { |value| (value == Konfig.configuration.nil_word && Konfig.configuration.allow_nil) ? nil : NIL_VALUE }, # nil value
15
14
  lambda do |value|
16
15
  result = JSON.parse(value, { symbolize_names: true })
@@ -1,3 +1,3 @@
1
1
  module Konfig
2
- VERSION ||= "0.1.3"
2
+ VERSION ||= "0.1.4"
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.3
4
+ version: 0.1.4
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-22 00:00:00.000000000 Z
11
+ date: 2019-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport