dato 0.1.25 → 0.1.26

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
  SHA1:
3
- metadata.gz: bda04ab33c8c0dcec4f924cb9a985ceb78d01454
4
- data.tar.gz: 7545c95c99a528f173ce2c9101f20be150d95797
3
+ metadata.gz: b134a6705aba81839c780fdc92ed25fd8fb2c5cc
4
+ data.tar.gz: 004b727e596c14907a5e0d9b732fe20cf79dea9e
5
5
  SHA512:
6
- metadata.gz: c4d8309a94256b0de2458c8064d2119b819ffd1312ebf2bb14b074f3ff9d551806d1516cab636fd24b36fcba9099fa19e5cadad1e218e8ce3a9f5b853244e8fb
7
- data.tar.gz: 87553d265f9d8d90288c75ae77feb9b18d8be80caba1e0a5dea9db0d17007a43f01a363617fadc8a3f10a1fe3ab52bffa7476ebe5ad8dda239e8564da051ed7d
6
+ metadata.gz: b5fe5a801dd6eb8bb68afdcfc4c3029cdacea968b5497aa5ee2bc85881168998df7ea67f8f8e008a39979c3322f23a715d307f748d4352ef4b5a965b32f2f757
7
+ data.tar.gz: aa5d14134b2d40e7eb090066c1e0685e33dd1fa0c93642cc78d128a9f7fef1252623323faa5e753656991bbe2773f762dc8e7a8c1fb5456e7d9e11a78a758e98
@@ -2,6 +2,18 @@
2
2
  require 'active_support/core_ext/hash/keys'
3
3
  require 'toml'
4
4
 
5
+ class Time
6
+ def to_toml(path = "")
7
+ utc.strftime("%Y-%m-%dT%H:%M:%SZ")
8
+ end
9
+ end
10
+
11
+ class Date
12
+ def to_toml(path = "")
13
+ strftime("%Y-%m-%d")
14
+ end
15
+ end
16
+
5
17
  module Dato
6
18
  module Dump
7
19
  module Format
@@ -53,7 +53,7 @@ module Dato
53
53
  method, singleton = item_type_methods[item_type]
54
54
 
55
55
  if singleton
56
- [@collections_by_type[method]]
56
+ Array(@collections_by_type[method])
57
57
  else
58
58
  @collections_by_type[method]
59
59
  end
data/lib/dato/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.1.25'
3
+ VERSION = '0.1.26'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna