dato 0.8.1 → 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: 2fa3f3032c3681e2bf710b69ffe75eec9b47a27a494e63943909b91500785cb6
4
- data.tar.gz: f5ee2896a63dab9a457c94d612fcd285544487df3c915d2dccc14951a4c304d0
3
+ metadata.gz: 6cbff3609757a3c0c0ea55df939d35ec4629a53eb9a5668c8be52e9377c27d9c
4
+ data.tar.gz: b1622659d5051b214dc96aa9fc451cb27aa95134076b4a73e4f4d4132298f46c
5
5
  SHA512:
6
- metadata.gz: 6e61ffbd1f842f24bd2d28f0dfdf2b5bfcd835b94ba0081bc01e3338a7768838683e801e02623988ab7f8e7e251b275c6cd7ce29d317bb17d9898e63876ee0d8
7
- data.tar.gz: 3914e863434597f8a29fe9379d881e149e970013363890619624eb6201e2b6ae1056d04340429d10472c96735b9ceb7193cb6e2509f1dc0dfcd28e568dfb4fe3
6
+ metadata.gz: fba409e966960296b5a018a41c332fd054e8794aa02686f7e246690cc96970c63e761e25b3c622aaf110a56a3061f95f49a9d02893efad0bffe09627fd7bf998
7
+ data.tar.gz: 97ae48473feadb00dd3613e9daabbc0c796290644fd0daeac42051fbc4d084bc3c1b4cc260ef5cab52b1279fa818405b138d2763de9c3fdf8e035cce33ad2bca
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.7.5
data/.travis.yml CHANGED
@@ -1,8 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.0
4
- - 2.5.0
5
3
  - 2.6.0
4
+ - 2.7.5
6
5
  before_install:
7
6
  - gem install bundler -v 1.13.5
8
7
  - echo 'puts "ruby \"#{RUBY_VERSION}\""' | ruby >> Gemfile
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-->
@@ -4,8 +4,6 @@ require "faraday"
4
4
  require "faraday_middleware"
5
5
  require "json"
6
6
  require "json_schema"
7
- require "active_support/core_ext/hash/indifferent_access"
8
- require "active_support/inflector"
9
7
 
10
8
  require "dato/version"
11
9
  require "dato/repo"
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
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "active_support/core_ext/hash/keys"
4
3
  require "toml"
5
4
 
6
5
  class Time
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "active_support/core_ext/hash/keys"
4
3
  require "yaml"
5
4
 
6
5
  class Array
@@ -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
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "forwardable"
4
- require "active_support/inflector/transliterate"
5
- require "active_support/hash_with_indifferent_access"
6
4
  require "dato/utils/locale_value"
7
5
 
8
6
  Dir["#{File.dirname(__FILE__)}/field_type/*.rb"].sort.each do |file|
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "active_support/core_ext/string"
4
3
  require "dato/local/item"
5
4
  require "dato/local/site"
6
5
 
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "forwardable"
4
- require "active_support/inflector/transliterate"
5
- require "active_support/hash_with_indifferent_access"
6
4
  require "dato/utils/locale_value"
7
5
 
8
6
  module Dato
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "forwardable"
4
4
  require "dato/local/field_type/seo"
5
- require "active_support/core_ext/object/blank"
6
5
 
7
6
  module Dato
8
7
  module Utils
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.1"
4
+ VERSION = "0.8.3"
5
5
  end
data/lib/dato.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/all"
4
+
3
5
  require "dato/version"
4
6
 
5
7
  require "dato/site/client"
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.1
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: 2021-05-31 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
@@ -482,8 +483,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
482
483
  - !ruby/object:Gem::Version
483
484
  version: '0'
484
485
  requirements: []
485
- rubyforge_project:
486
- rubygems_version: 2.7.6
486
+ rubygems_version: 3.1.6
487
487
  signing_key:
488
488
  specification_version: 4
489
489
  summary: Ruby client for DatoCMS API