jekyll-data 1.1.0 → 1.1.1

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: 95e3f9216da63cda9e38c9affb6abd7670f39a29918adc7c7e11ee8f2be2053f
4
- data.tar.gz: 60732d8194aa06c2bf12ce37d05beeb097e49a537409c4324cd0bb2aeb945398
3
+ metadata.gz: bfc00c25a2b9ae9878a4c854955f88698b114a1a0b7ed4733ec56ee691bdf507
4
+ data.tar.gz: 972a9a1d061585cadf5ceb5c10e057967ccfa6abb37b647682f942ef02bb94a2
5
5
  SHA512:
6
- metadata.gz: cc79ac198e020303b2a880f32baa681f61d838ccb241f359e1524eb9e5cd0e0ee0a0d5143359e063a87f9fb19b7d8c47fd1485c8ae9360570927f1aaebc9c672
7
- data.tar.gz: 4011a6f4bf630320827a6545ccd472d9c593af8bf10ecdf856a8f3d07edab07dd6edc10aff7f00630a6307b77a91931b836caa5ad751397aadc2699d5daaed44
6
+ metadata.gz: 18c73a13bef6df9cf945301e8cb1ae8ed62882a0b9b39de1da8e4b4d4124b93ccb07f86ee1bafd363c6ad8591ffe891ec8498a9aa01d9949e24a00a9f309181b
7
+ data.tar.gz: b97f8328beb1003c23f4d0f96f05177f762dfceeffcbb7c577c9db1304076235d866da32cda1cfc952e4a59b93fa994572477d1a846cea3a60cf4e48c26088d1
data/README.md CHANGED
@@ -91,7 +91,7 @@ fr:
91
91
 
92
92
  it:
93
93
  previous : precedente
94
- next : seguente
94
+ next : successivo
95
95
  ```
96
96
 
97
97
  the Hash from above would be identical to one had the gem been shipped with a `_data/locales` directory containing individual files for each language data.
@@ -7,7 +7,10 @@ module JekyllData
7
7
  def initialize(site)
8
8
  @site = site
9
9
  @theme = site.theme
10
- @theme_data_files = Dir[File.join(site.theme.data_path, "**", "*.{yaml,yml,json,csv,tsv}")]
10
+
11
+ if @theme.data_path
12
+ @theme_data_files = Dir[File.join(@theme.data_path, "**", "*.{yaml,yml,json,csv,tsv}")]
13
+ end
11
14
  end
12
15
 
13
16
  # Read data files within theme-gem.
@@ -5,9 +5,9 @@ module JekyllData
5
5
  attr_reader :site, :content
6
6
 
7
7
  def initialize(site)
8
- @site = site
9
- @content = {}
10
- @entry_filter = Jekyll::EntryFilter.new(site)
8
+ super
9
+
10
+ @source_dir = site.in_theme_dir("/")
11
11
  end
12
12
 
13
13
  def read(dir)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllData
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashwin Maroli
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2021-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '2.1'
53
+ version: 5.1.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '2.1'
60
+ version: 5.1.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -78,29 +78,29 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '10.0'
81
+ version: '13.0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '10.0'
88
+ version: '13.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rubocop-jekyll
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.10.0
95
+ version: 0.11.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.10.0
103
- description:
102
+ version: 0.11.0
103
+ description:
104
104
  email:
105
105
  - ashmaroli@gmail.com
106
106
  executables: []
@@ -123,7 +123,7 @@ licenses:
123
123
  - MIT
124
124
  metadata:
125
125
  allowed_push_host: https://rubygems.org
126
- post_install_message:
126
+ post_install_message:
127
127
  rdoc_options: []
128
128
  require_paths:
129
129
  - lib
@@ -138,8 +138,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.0.6
142
- signing_key:
141
+ rubyforge_project:
142
+ rubygems_version: 2.7.6.2
143
+ signing_key:
143
144
  specification_version: 4
144
145
  summary: A plugin to read '_config.yml' and data files within Jekyll theme-gems
145
146
  test_files: []