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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 714d228234e6f85718179694c095944fad199cf3d9215c294f39450297b6f129
4
- data.tar.gz: 490043482646332491d08dcecceae88fbe6eace1bb347ff2a9f3a60f2802e95e
3
+ metadata.gz: 81cecd40a39ca229e38bccd358476e61263f43840275cb7b118ec3c1ac7b2cbe
4
+ data.tar.gz: 40843edbc7c2d41fdf39fd98cb829b24f6fe615642ca1018f7e8def78e4663e2
5
5
  SHA512:
6
- metadata.gz: 16210fe380082a464f1384ab5b6492cb6bc7ae165a9b24d0139263e76a0f2b7bcd1495affb52c23f9899b42d1c2380d3912baa0cea42009f3eacca35f6fdef2d
7
- data.tar.gz: 898dd3592c5897a434222ddb03f66f43b22ca0ab4bbce7ef07500ef5ebf5d762b05ccf3548632ced26a4a0b814b4223ec6b89eac57f309706a47520145e4bc50
6
+ metadata.gz: 93071816ea8358c87339ce58c0334eeab44bb52a0bea527f8dc8a2ac60ddc090e4c9ead1c1f23f6eba1ac74cf2cf2eeacc1bd3b065339596d1ac612f20f4f90e
7
+ data.tar.gz: fb4a5560f3f6fec845e93ee01bec8e367d014f99cf7cccf8b39704ebc5c30fc56fe20ad0d79d9cc5f0ed2e00eeceda921a3bfd3bbfac68c970de1e9f32a6fc55
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2018 Strapi Solutions.
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
- endpoint = URI.parse(@site.endpoint)
23
- uri = URI::HTTP.build({:host => endpoint.host,
24
- :port => endpoint.port,
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)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Strapi
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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: 2018-04-24 00:00:00.000000000 Z
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: '3'
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: '3'
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
- rubyforge_project:
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