jekyll-strapi 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE → LICENSE.md} +1 -1
- data/lib/jekyll/strapi/collection.rb +3 -7
- data/lib/jekyll/strapi/site.rb +1 -1
- data/lib/jekyll/strapi/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81cecd40a39ca229e38bccd358476e61263f43840275cb7b118ec3c1ac7b2cbe
|
4
|
+
data.tar.gz: 40843edbc7c2d41fdf39fd98cb829b24f6fe615642ca1018f7e8def78e4663e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93071816ea8358c87339ce58c0334eeab44bb52a0bea527f8dc8a2ac60ddc090e4c9ead1c1f23f6eba1ac74cf2cf2eeacc1bd3b065339596d1ac612f20f4f90e
|
7
|
+
data.tar.gz: fb4a5560f3f6fec845e93ee01bec8e367d014f99cf7cccf8b39704ebc5c30fc56fe20ad0d79d9cc5f0ed2e00eeceda921a3bfd3bbfac68c970de1e9f32a6fc55
|
data/{LICENSE → LICENSE.md}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2015-
|
1
|
+
Copyright (c) 2015-2019 Strapi Solutions.
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
@@ -19,15 +19,11 @@ module Jekyll
|
|
19
19
|
|
20
20
|
def each
|
21
21
|
# Initialize the HTTP query
|
22
|
-
|
23
|
-
uri = URI
|
24
|
-
|
25
|
-
:path => "/#{@config['type'] || @collection_name}",
|
26
|
-
:query => "_limit=10000"})
|
27
|
-
|
22
|
+
path = "/#{@config['type'] || @collection_name}?_limit=10000"
|
23
|
+
uri = URI("#{@site.endpoint}#{path}")
|
24
|
+
Jekyll.logger.info "Jekyll Strapi:", "Fetching entries from #{uri}"
|
28
25
|
# Get entries
|
29
26
|
response = Net::HTTP.get_response(uri)
|
30
|
-
|
31
27
|
# Check response code
|
32
28
|
if response.code == "200"
|
33
29
|
result = JSON.parse(response.body, object_class: OpenStruct)
|
data/lib/jekyll/strapi/site.rb
CHANGED
@@ -28,7 +28,7 @@ module Jekyll
|
|
28
28
|
url = Jekyll::URL.new(
|
29
29
|
:template => @config['strapi']['collections'][collection]['permalink'],
|
30
30
|
:placeholders => {
|
31
|
-
:id => document.id,
|
31
|
+
:id => document.id.to_s,
|
32
32
|
:uid => document.uid,
|
33
33
|
:slug => document.slug,
|
34
34
|
:type => document.type
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-strapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Strapi Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: http
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- LICENSE
|
62
|
+
- LICENSE.md
|
63
63
|
- README.md
|
64
64
|
- lib/jekyll-strapi.rb
|
65
65
|
- lib/jekyll/strapi/collection.rb
|
@@ -87,8 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
|
91
|
-
rubygems_version: 2.7.6
|
90
|
+
rubygems_version: 3.0.3
|
92
91
|
signing_key:
|
93
92
|
specification_version: 4
|
94
93
|
summary: Strapi.io integration for Jekyll
|