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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65fe8023f11c1495b22541ec74741d7e8049603e
4
- data.tar.gz: c286e1fe8f3a10cf52ae5db5ebef259fd882ac7d
3
+ metadata.gz: f2393dcdb225cf5a05035e0dfefd8114924728e6
4
+ data.tar.gz: df09105f06f3fd81180f98240b8b6741cb7f9e7e
5
5
  SHA512:
6
- metadata.gz: f54d9be946cd418d5761755faf464245f00e4acf63a19a70c89bcfbade6d8de28a175589c262988d7113235a1e8c6ee7302b4cacc899ae3b885e721c54f20938
7
- data.tar.gz: cbe0b62dab152f78e70dabc942ac18de8a6cec8bc9f7acae5e592298ba7da484af449cd75b2d573ecd33e568dbed0d46e3f9bb4b1b62d1221f02e7996777bdc5
6
+ metadata.gz: d642a0e08f379793e2ced33e661df57cd1b3293c0c6e9345b63ec154c02c7515fe0df1fe70132d84c07f697720b7b125c703583b22e9d13429a8ae036e175cfd
7
+ data.tar.gz: 6d9f2c4bdb21eb605d86fa6d87102555f865a3e27628fae0720d02c7a50bb9be7879ecd69707b65d3a227f2e6a620672c68cffc0058314753a8c8fcbdf5fc265
@@ -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
@@ -23,6 +23,7 @@ module Dato
23
23
  resource_attributes = resource_attributes.except(
24
24
  :id,
25
25
  :updated_at,
26
+ :created_at,
26
27
  :is_valid,
27
28
  :item_type,
28
29
  :last_editor
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.3.26'
3
+ VERSION = '0.3.27'
4
4
  end
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.26
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-29 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler