dato 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ca87da24b5ba4828b5cc9b96045bed562e57f79
4
- data.tar.gz: 07687fceac70df85b38e917b1d00ef4810a112cb
3
+ metadata.gz: 378f15097ac2294e7ed2dd9c5114aaa755794d03
4
+ data.tar.gz: ab141f4cd1c67654e11bb9b2508ab782f8ad6837
5
5
  SHA512:
6
- metadata.gz: 90da28a4087d9bbaaa9e29fcc31bafcff7b757b282372949de1fd58bdac8f6b5c94f088b1c28da541ca54ab6cb7e7fbdc07dfe73d14e755baa5f8ea8e9a4ea25
7
- data.tar.gz: 44f2d443e6d49df140c6532173f1d66e0881d30ea1723bb970ed5c90ff74c67618594870402e02ea6a04796471941c2b2c8b991f08f12782e7ab7762a02b8f98
6
+ metadata.gz: 93df2cc0fd5b7832d2a524c798d284dc5cbb9cc47c1c6b36dfdecd3c197a6158c2c2838ff98036315a6c294615d5fed0bf58912064392214782ec2ab862812a2
7
+ data.tar.gz: d3b3028b3f3d8ac8dc2ea940a4535eac0b0bfb1ee8e236c5b85e87e1094229d1b66cc2200b79bc579759f131926458c46b8729181fbc45a632f2efb2de3dc58b
@@ -86,8 +86,10 @@ module Dato
86
86
  def hugo
87
87
  HUGO.any? do |option|
88
88
  config_path = File.join(path, option[:file])
89
- config = option[:loader].call(File.read(config_path))
90
- config.key? 'baseurl'
89
+ if File.exist?(config_path)
90
+ config = option[:loader].call(File.read(config_path))
91
+ config.key? 'baseurl'
92
+ end
91
93
  end && 'hugo'
92
94
  rescue JSON::ParserError
93
95
  nil
data/lib/dato/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.1.18'
3
+ VERSION = '0.1.19'
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.1.18
4
+ version: 0.1.19
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-06 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -380,3 +380,4 @@ signing_key:
380
380
  specification_version: 4
381
381
  summary: Ruby client for DatoCMS API
382
382
  test_files: []
383
+ has_rdoc: