dato 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dato.gemspec +1 -1
- data/docs/dato-cli.md +8 -5
- data/lib/dato/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86a27c46667e000081867531524a46f6e2b6b28b
|
4
|
+
data.tar.gz: 0a63b2fcac1ae423fabd6067c5a73d38ab91a3e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89889b15de5316ab503b5d4ad66641d3ebfd9e0c693ef54c8a993f8e84a7720c0edcb4fa6f5ba8b143c71468d1118820fcd86986792f554832fbdc495178eb45
|
7
|
+
data.tar.gz: ee9966b4828cbba44e7757186018b66813889648f9653881e1181d9f952bb0dc1c9a4e03657cebea4b60cda403c7c035a96f0c8aa86203f389028fb2d8a3f348
|
data/dato.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
|
37
37
|
spec.add_runtime_dependency 'faraday', ['>= 0.9.0']
|
38
38
|
spec.add_runtime_dependency 'faraday_middleware', ['>= 0.9.0']
|
39
|
-
spec.add_runtime_dependency 'activesupport'
|
39
|
+
spec.add_runtime_dependency 'activesupport'
|
40
40
|
spec.add_runtime_dependency 'fastimage'
|
41
41
|
spec.add_runtime_dependency 'downloadr'
|
42
42
|
spec.add_runtime_dependency 'addressable'
|
data/docs/dato-cli.md
CHANGED
@@ -123,9 +123,10 @@ We then define how content stored in DatoCMS needs to be translated into local f
|
|
123
123
|
directory "content/post" do
|
124
124
|
dato.posts.each do |item|
|
125
125
|
create_post "#{item.slug}.md" do
|
126
|
-
frontmatter :toml,
|
126
|
+
frontmatter :toml, {
|
127
127
|
title: item.title,
|
128
128
|
date: item.publication_date.to_s
|
129
|
+
}
|
129
130
|
|
130
131
|
content item.body
|
131
132
|
end
|
@@ -191,9 +192,10 @@ In fact, this is a more complete version of our `dato.config.rb` file:
|
|
191
192
|
directory "content/post" do
|
192
193
|
dato.posts.each do |item|
|
193
194
|
create_post "#{item.slug}.md" do
|
194
|
-
frontmatter :toml,
|
195
|
+
frontmatter :toml, {
|
195
196
|
title: item.title,
|
196
197
|
date: item.publication_date.to_s
|
198
|
+
}
|
197
199
|
|
198
200
|
content item.body
|
199
201
|
end
|
@@ -203,9 +205,10 @@ end
|
|
203
205
|
directory "content/quote" do
|
204
206
|
dato.quotes.each_with_index do |item, i|
|
205
207
|
create_post "#{item.id}.md" do
|
206
|
-
frontmatter :toml,
|
208
|
+
frontmatter :toml, {
|
207
209
|
title: "Quote number #{i}",
|
208
210
|
weight: i
|
211
|
+
}
|
209
212
|
|
210
213
|
content item.content
|
211
214
|
end
|
@@ -214,10 +217,10 @@ end
|
|
214
217
|
|
215
218
|
directory "data/authors" do
|
216
219
|
dato.authors.each do |item|
|
217
|
-
create_data_file "#{item.name.slug}.toml", :toml,
|
220
|
+
create_data_file "#{item.name.slug}.toml", :toml, {
|
218
221
|
name: item.name,
|
219
222
|
bio: item.bio
|
220
|
-
|
223
|
+
}
|
221
224
|
end
|
222
225
|
end
|
223
226
|
```
|
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.1.
|
4
|
+
version: 0.1.29
|
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-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -196,16 +196,16 @@ dependencies:
|
|
196
196
|
name: activesupport
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '0'
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: fastimage
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -425,3 +425,4 @@ signing_key:
|
|
425
425
|
specification_version: 4
|
426
426
|
summary: Ruby client for DatoCMS API
|
427
427
|
test_files: []
|
428
|
+
has_rdoc:
|