jekyll-get-json 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa994163e5787ab9e97e19987c0f91934b22c33f76f162f4cd1d4d8d8b061da8
4
- data.tar.gz: 18de3e56a3a7149cfd9d0716c1141103a65765c3cf967e32cf09435de29018cd
3
+ metadata.gz: 835677e6ca2dd6ad0886c24151a8a3120aa768e190477f54bcf37b4564cf31fe
4
+ data.tar.gz: a2d08deb0648f1b2c0bb62ad6fa58003e64d1bb1ae0c52eec325a5fa3b82b5ef
5
5
  SHA512:
6
- metadata.gz: b1f0d394fa15bcc794993415c4c25e6ada3783663beecef3157b9b1f2fc481cb4bd88acd77045f70ba1ecb536e0e20641ddb7d598feea77e51fa7224983f32ba
7
- data.tar.gz: c7b8355e25edf64eccb28c9e09e5906ac874af5b1a0f95ea09c0ec5b000f94ca7b07fbfca61ccdc167ecc252f8f74b4f6da6d7bdf71c202be0c36bd2756e252c
6
+ metadata.gz: 0edf6c4efcb48070fb7347e5f22cf5be053ed94d2482afdd8c8d5104eeb86376be879368ede96f67304373d47e9bc4fc4c46afffa5ea00739839cf6918b93959
7
+ data.tar.gz: c6f3f89aef33741e08d260561db51145f1366b2aaa8280b8eabf4cd2bd6179997605be15d70a12f2cc8f3761dbebc9f16582ab49ff8cd48704e8103623b3fde9
data/README.md CHANGED
@@ -1,3 +1,43 @@
1
1
  # jekyll-get-json
2
2
 
3
3
  > 💎 Import remote JSON data into the data for a Jekyll site
4
+
5
+ ## Installation
6
+
7
+ 1. Use `bundle add jekyll-get-json` to add this to your site's Gemfile.
8
+ 2. Add this plugin to the `plugins` listed in your `_config.yml` file. For example:
9
+ ```
10
+ plugins:
11
+ - jekyll-get-json
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ Add a `jekyll_get_json` section to your `_config.yml` file. This section should be an array of objects containing `data` and `json` properties:
17
+ * The `data` property specifies where in the `site.data` you would like to put this data.
18
+ * The `json` property is the remote URL of the JSON file.
19
+
20
+ To illustrate an example, assuming that you have a remote JSON file at `https://example.com/data.json` containing this:
21
+ ```
22
+ {
23
+ "bar": "Success!"
24
+ }
25
+ ```
26
+ And you put the following into your `_config.yml` file:
27
+ ```
28
+ jekyll_get_json:
29
+ - data: foo
30
+ json: 'https://example.com/data.json'
31
+ ```
32
+ Then in your Jekyll site you will be able to use:
33
+ ```
34
+ {{ site.data.foo.bar }}
35
+ ```
36
+ And you will see:
37
+ ```
38
+ Success!
39
+ ```
40
+
41
+ ## Credit
42
+
43
+ This plugin is basically a more limited version of [jekyll-get](https://github.com/18F/jekyll-get), duplicated here purely for the purposes of making it a Ruby gem.
@@ -12,6 +12,6 @@ Gem::Specification.new do |spec|
12
12
  spec.licenses = ["MIT"]
13
13
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) }
14
14
  spec.require_paths = ["lib"]
15
- spec.add_dependency "jekyll", "~> 3.0"
15
+ spec.add_dependency "jekyll", ">= 3.0"
16
16
  spec.add_dependency "deep_merge", "~> 1.2"
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module JekyllGetJson
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-get-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-22 00:00:00.000000000 Z
11
+ date: 2020-05-22 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
19
  version: '3.0'
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
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.7.6
76
+ rubygems_version: 2.7.1
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Import remote JSON data into the data for a Jekyll site