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 +4 -4
- data/lib/dato/dump/format/toml.rb +12 -0
- data/lib/dato/local/items_repo.rb +1 -1
- data/lib/dato/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b134a6705aba81839c780fdc92ed25fd8fb2c5cc
|
4
|
+
data.tar.gz: 004b727e596c14907a5e0d9b732fe20cf79dea9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/dato/version.rb
CHANGED