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 +4 -4
- data/lib/dato/local/field_type/rich_text.rb +21 -0
- data/lib/dato/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2483e2bce179699cf4d9adf4a8e05f25f66ee40b
|
4
|
+
data.tar.gz: bc8e25b3b03a40fe8d6d68663612e62ff669d93b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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:
|
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
|