dato 0.3.5 → 0.3.6

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: ad3ec619bb80a4704d54452bc49ec677e1b6f498
4
- data.tar.gz: 1c4f832a125be15cd51fa8923d7d431707c6c618
3
+ metadata.gz: 2483e2bce179699cf4d9adf4a8e05f25f66ee40b
4
+ data.tar.gz: bc8e25b3b03a40fe8d6d68663612e62ff669d93b
5
5
  SHA512:
6
- metadata.gz: c69a434cbbfed50009a013c9e23b7d2b1e9fbd62a370f2c90976739958a94c9c31031ef2c04536348042a37a9c173a432473dd2042bb4bde1f1f06c6aa2afd32
7
- data.tar.gz: f1e25a2b11be0c93f2e8a7c7577a114bc712a5538c2770231c8a8992043e4d619f757703e4c63d8d043c555386a4182d581e92b41b8d571049277cb4c2b9491d
6
+ metadata.gz: b8cacae14beebb7b76b163480f16dfb25d621d7a1e10b1af18791bf1285c8a96d0ef50489edfb5a6164fe2dcb3b52a0c8e625866aeb3c9ccdddf5a30df0cad15
7
+ data.tar.gz: d152ae64a4158d6eece5b73d1f2d8a5e876e6d63b4745fd677837cd47b829205f8589c50427485d6bbde5e5ababe46babaca13a15857ca3833eefbff252b6db4
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ module Dato
3
+ module Local
4
+ module FieldType
5
+ class RichText < Array
6
+ def self.parse(ids, repo)
7
+ items = if ids
8
+ ids.map { |id| repo.find(id) }
9
+ else
10
+ []
11
+ end
12
+ new(items)
13
+ end
14
+
15
+ def to_hash
16
+ map(&:to_hash)
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.3.5'
3
+ VERSION = '0.3.6'
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.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2017-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -409,6 +409,7 @@ files:
409
409
  - lib/dato/local/field_type/lat_lon.rb
410
410
  - lib/dato/local/field_type/link.rb
411
411
  - lib/dato/local/field_type/links.rb
412
+ - lib/dato/local/field_type/rich_text.rb
412
413
  - lib/dato/local/field_type/seo.rb
413
414
  - lib/dato/local/field_type/slug.rb
414
415
  - lib/dato/local/field_type/string.rb