middleman-dato 0.9.0 → 0.10.0

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: 37bcda4f75d96c086b9b8c8535d1651456188a37cedf06b60a8e30a5b90b13fe
4
- data.tar.gz: 4d419f7b8eebfd6f78478049b9d1dd6ed45ca5bc1bbddedbb5704dc4de41df14
3
+ metadata.gz: 14dc83a3c03593fa661f17504f49124d193b56cf6d851289a78e6f09ddccc66b
4
+ data.tar.gz: 2d07e39d17d648d5624570167451cb3c552b36aad41ed1aa7260286c9b5aff4a
5
5
  SHA512:
6
- metadata.gz: 763c7a22ab3cec893cde2355b2f2a0de97956a1c5563941c301fe6072b3795b54f52a9f3f9d52baeaa7b6a5196751deedac0c76f6ddb465ea7c99123d26dd099
7
- data.tar.gz: efb996ea06a122e37d46ae15ff80e478ee2f4210854071d25a393a1c2e13fb8341fa7850f7015edd2fb75dd36c81a75b0a1adadb5fe5f175025fa883bb4d20d3
6
+ metadata.gz: 4ecd6cc01862bc26227219c39cfe056669577860c8ebcbf4c9bc8cfb70ba43acc5002ad15d1d9d5d258a8e53bfca85b5dfa8b929fc8cf652d907e880a7ff62f4
7
+ data.tar.gz: 5ba4ffd3009976c5057dda14c4372230307050fdd3b6010718c1d63722049d6c657e4078a9b8f47eab183af8866900ebd9024a1ef2ef236654518743b26ad1c3
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Cantiere Creativo SRL
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -12,10 +12,11 @@ module MiddlemanDato
12
12
  class MiddlemanExtension < ::Middleman::Extension
13
13
  attr_reader :loader
14
14
 
15
- option :token, ENV['DATO_API_TOKEN'], 'Site API token'
16
- option :api_base_url, 'https://site-api.datocms.com', 'Site API host'
15
+ option :token, ENV['DATO_API_TOKEN'], 'Project API token'
16
+ option :api_base_url, 'https://site-api.datocms.com', 'API Base URL'
17
17
  option :live_reload, true, 'Live reload of content coming from DatoCMS'
18
18
  option :preview, false, 'Show latest (unpublished) version of your content'
19
+ option :environment, nil, 'Environment to fetch data from'
19
20
 
20
21
  option :base_url, nil, 'Website base URL (deprecated)'
21
22
  option :domain, nil, 'Site domain (deprecated)'
@@ -59,6 +60,7 @@ module MiddlemanDato
59
60
  @client ||= Dato::Site::Client.new(
60
61
  token,
61
62
  base_url: options[:api_base_url],
63
+ environment: options[:environment],
62
64
  extra_headers: {
63
65
  'X-Reason' => 'dump',
64
66
  'X-SSG' => 'middleman'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module MiddlemanDato
3
- VERSION = '0.9.0'
3
+ VERSION = '0.10.0'
4
4
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency('coveralls')
24
24
 
25
25
  s.add_runtime_dependency 'middleman-core', ['>= 4.1.10']
26
- s.add_runtime_dependency 'dato', ['>= 0.7.0']
26
+ s.add_runtime_dependency 'dato', ['>= 0.7.16']
27
27
  s.add_runtime_dependency 'activesupport'
28
28
  s.add_runtime_dependency 'dotenv', ['<= 2.1']
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-20 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.0
47
+ version: 0.7.16
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.0
54
+ version: 0.7.16
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +93,7 @@ files:
93
93
  - ".rubocop.yml"
94
94
  - ".travis.yml"
95
95
  - Gemfile
96
+ - LICENSE
96
97
  - README.md
97
98
  - Rakefile
98
99
  - lib/middleman-dato.rb
@@ -118,10 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  - !ruby/object:Gem::Version
119
120
  version: '0'
120
121
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.7.6
122
+ rubygems_version: 3.0.3
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Fetches data from a Dato site
126
- test_files:
127
- - spec/spec_helper.rb
126
+ test_files: []