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 +4 -4
- data/LICENSE +21 -0
- data/lib/middleman_dato/middleman_extension.rb +4 -2
- data/lib/middleman_dato/version.rb +1 -1
- data/middleman-dato.gemspec +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14dc83a3c03593fa661f17504f49124d193b56cf6d851289a78e6f09ddccc66b
|
4
|
+
data.tar.gz: 2d07e39d17d648d5624570167451cb3c552b36aad41ed1aa7260286c9b5aff4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'], '
|
16
|
-
option :api_base_url, 'https://site-api.datocms.com', '
|
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'
|
data/middleman-dato.gemspec
CHANGED
@@ -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.
|
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.
|
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:
|
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.
|
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.
|
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
|
-
|
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: []
|