dato 0.3.26 → 0.3.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dato/local/item.rb +6 -1
- data/lib/dato/site/repo/item.rb +1 -0
- data/lib/dato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2393dcdb225cf5a05035e0dfefd8114924728e6
|
4
|
+
data.tar.gz: df09105f06f3fd81180f98240b8b6741cb7f9e7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d642a0e08f379793e2ced33e661df57cd1b3293c0c6e9345b63ec154c02c7515fe0df1fe70132d84c07f697720b7b125c703583b22e9d13429a8ae036e175cfd
|
7
|
+
data.tar.gz: 6d9f2c4bdb21eb605d86fa6d87102555f865a3e27628fae0720d02c7a50bb9be7879ecd69707b65d3a227f2e6a620672c68cffc0058314753a8c8fcbdf5fc265
|
data/lib/dato/local/item.rb
CHANGED
@@ -94,6 +94,10 @@ module Dato
|
|
94
94
|
Time.parse(entity.updated_at).utc
|
95
95
|
end
|
96
96
|
|
97
|
+
def created_at
|
98
|
+
Time.parse(entity.created_at).utc
|
99
|
+
end
|
100
|
+
|
97
101
|
def to_s
|
98
102
|
api_key = item_type.api_key
|
99
103
|
"#<Item id=#{id} item_type=#{api_key} attributes=#{attributes}>"
|
@@ -106,7 +110,8 @@ module Dato
|
|
106
110
|
base = {
|
107
111
|
id: id,
|
108
112
|
item_type: item_type.api_key,
|
109
|
-
updated_at: updated_at
|
113
|
+
updated_at: updated_at,
|
114
|
+
created_at: created_at
|
110
115
|
}
|
111
116
|
|
112
117
|
base[:position] = position if item_type.sortable
|
data/lib/dato/site/repo/item.rb
CHANGED
data/lib/dato/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|