dato 0.8.2 → 0.8.3

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
  SHA256:
3
- metadata.gz: 16cab29b7b72a50af8cd817bb47385ad43abd1819c27d92ec2e8a18f34dff644
4
- data.tar.gz: ef6271b8c0acdba7b4d808719ef401a1bd425153407156f4153e8ad03a4d80e6
3
+ metadata.gz: 6cbff3609757a3c0c0ea55df939d35ec4629a53eb9a5668c8be52e9377c27d9c
4
+ data.tar.gz: b1622659d5051b214dc96aa9fc451cb27aa95134076b4a73e4f4d4132298f46c
5
5
  SHA512:
6
- metadata.gz: 43aaccaaedd08be49f63348e00b7f17782cda7026c572b694a586c6ea145f9f50746fe9854d3b35b88d9f21d3fa20059e32780def5e88a5a63b98860687635b8
7
- data.tar.gz: d493d97c927fe53d3cd4b4a6708f2c921c32ab40436accfe3d46ba82d9d38da85ff559fc276897428892b1f1c6c61ec89929666172284095c3a30c9b4cd7456e
6
+ metadata.gz: fba409e966960296b5a018a41c332fd054e8794aa02686f7e246690cc96970c63e761e25b3c622aaf110a56a3061f95f49a9d02893efad0bffe09627fd7bf998
7
+ data.tar.gz: 97ae48473feadb00dd3613e9daabbc0c796290644fd0daeac42051fbc4d084bc3c1b4cc260ef5cab52b1279fa818405b138d2763de9c3fdf8e035cce33ad2bca
data/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ <!--datocms-autoinclude-header start-->
2
+ <a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a>
3
+
4
+ 👉 [Visit the DatoCMS homepage](https://www.datocms.com) or see [What is DatoCMS?](#what-is-datocms)
5
+ <!--datocms-autoinclude-header end-->
6
+
1
7
  # DatoCMS Ruby Client
2
8
 
3
9
  [![Coverage Status](https://coveralls.io/repos/github/datocms/ruby-datocms-client/badge.svg?branch=master)](https://coveralls.io/github/datocms/ruby-datocms-client?branch=master) [![Build Status](https://travis-ci.org/datocms/ruby-datocms-client.svg?branch=master)](https://travis-ci.org/datocms/ruby-datocms-client) [![Gem Version](https://badge.fury.io/rb/dato.svg)](https://badge.fury.io/rb/dato)
@@ -30,3 +36,30 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/datocm
30
36
 
31
37
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
32
38
 
39
+
40
+ <!--datocms-autoinclude-footer start-->
41
+ -----------------
42
+ # What is DatoCMS?
43
+ <a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a>
44
+
45
+ [DatoCMS](https://www.datocms.com/) is the REST & GraphQL Headless CMS for the modern web.
46
+
47
+ Trusted by over 25,000 enterprise businesses, agency partners, and individuals across the world, DatoCMS users create online content at scale from a central hub and distribute it via API. We ❤️ our [developers](https://www.datocms.com/team/best-cms-for-developers), [content editors](https://www.datocms.com/team/content-creators) and [marketers](https://www.datocms.com/team/cms-digital-marketing)!
48
+
49
+ **Quick links:**
50
+
51
+ - ⚡️ Get started with a [free DatoCMS account](https://dashboard.datocms.com/signup)
52
+ - 🔖 Go through the [docs](https://www.datocms.com/docs)
53
+ - ⚙️ Get [support from us and the community](https://community.datocms.com/)
54
+ - 🆕 Stay up to date on new features and fixes on the [changelog](https://www.datocms.com/product-updates)
55
+
56
+ **Our featured repos:**
57
+ - [datocms/react-datocms](https://github.com/datocms/react-datocms): React helper components for images, Structured Text rendering, and more
58
+ - [datocms/js-rest-api-clients](https://github.com/datocms/js-rest-api-clients): Node and browser JavaScript clients for updating and administering your content. For frontend fetches, we recommend using our [GraphQL Content Delivery API](https://www.datocms.com/docs/content-delivery-api) instead.
59
+ - [datocms/cli](https://github.com/datocms/cli): Command-line interface that includes our [Contentful importer](https://github.com/datocms/cli/tree/main/packages/cli-plugin-contentful) and [Wordpress importer](https://github.com/datocms/cli/tree/main/packages/cli-plugin-wordpress)
60
+ - [datocms/plugins](https://github.com/datocms/plugins): Example plugins we've made that extend the editor/admin dashboard
61
+ - [datocms/gatsby-source-datocms](https://github.com/datocms/gatsby-source-datocms): Our Gatsby source plugin to pull data from DatoCMS
62
+ - Frontend examples in different frameworks: [Next.js](https://github.com/datocms/nextjs-demo), [Vue](https://github.com/datocms/vue-datocms) and [Nuxt](https://github.com/datocms/nuxtjs-demo), [Svelte](https://github.com/datocms/datocms-svelte) and [SvelteKit](https://github.com/datocms/sveltekit-demo), [Astro](https://github.com/datocms/datocms-astro-blog-demo), [Remix](https://github.com/datocms/remix-example). See [all our starter templates](https://www.datocms.com/marketplace/starters).
63
+
64
+ Or see [all our public repos](https://github.com/orgs/datocms/repositories?q=&type=public&language=&sort=stargazers)
65
+ <!--datocms-autoinclude-footer end-->
data/lib/dato/cli.rb CHANGED
@@ -29,7 +29,7 @@ module Dato
29
29
  },
30
30
  )
31
31
  loader = Dato::Local::Loader.new(client, preview_mode)
32
- print "Fetching content from DatoCMS... "
32
+ puts "Fetching content from DatoCMS..."
33
33
  loader.load
34
34
 
35
35
  if watch_mode
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dato
4
+ module Local
5
+ module FieldType
6
+ class SingleBlock
7
+ def self.parse(value, repo)
8
+ value && repo.find(value)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
data/lib/dato/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dato
4
- VERSION = "0.8.2"
4
+ VERSION = "0.8.3"
5
5
  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.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -427,6 +427,7 @@ files:
427
427
  - lib/dato/local/field_type/links.rb
428
428
  - lib/dato/local/field_type/rich_text.rb
429
429
  - lib/dato/local/field_type/seo.rb
430
+ - lib/dato/local/field_type/single_block.rb
430
431
  - lib/dato/local/field_type/slug.rb
431
432
  - lib/dato/local/field_type/string.rb
432
433
  - lib/dato/local/field_type/structured_text.rb