jekyll-tidy-json 1.0.0 → 1.1.0

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: a100fe883b4f484897f0ea5d76dcdbfad084a12bd7c8576f950b1fbc80b4aa66
4
- data.tar.gz: c311f572cacd7564f213558696f42b440d1c4e37b3e6f648c8ada464f8516a20
3
+ metadata.gz: e6b350d84387d649ec9ca591f5c2bbc56b8c5333eb8e9ffa5a709472714496c1
4
+ data.tar.gz: 6e799e09705abafb510fcb01abb831c22da6355ea589b06348c4fb7e45407080
5
5
  SHA512:
6
- metadata.gz: b95e847956a0994a986e20df431a47b6a2c1e88610352af202dcc3ab3d934828f28793039520bb244044f54e6a451efdc6be4659c8e851a5538d8891ffd2183b
7
- data.tar.gz: 3466c5bbaab955fd2dd4e75b413aefac431d44a3ffcb7cd54fc963788636f315fd405ee1b133d6cb127d98744f76cd65aacf86b4b3aa2f641a8f84c2ef4fea6f
6
+ metadata.gz: d9e2b1b0637e07ac9244db9ce04b5ff0c776769e36b262b5778e4b6462d435c40b4cdf74aeab5a5085e5443e2546a740594d488de8f0eff4a92fda1960950052
7
+ data.tar.gz: 83d90fb02ce7e61d186731dd68dcda92d9ef63dd70731adcd4c219358f410efe3cb0d368375109261f68b7577f8ce88a4086614fc991b56b7a0b07e0ca9f4b93
data/README.adoc CHANGED
@@ -12,15 +12,15 @@ endif::[]
12
12
  A Jekyll plugin that cleans JSONs up.
13
13
 
14
14
  It takes a JSON page and applies consistent formatting rules to it. If that
15
- input is malformed, then raises an exception at site building time to prevent
16
- you from deploying a buggy site.
15
+ input is malformed, then raises an exception preventing you from deploying
16
+ a buggy site.
17
17
 
18
18
  If you use Liquid templates to build JSONs for your site, then you probably
19
19
  really want it.
20
20
 
21
21
  == Installation
22
22
 
23
- Include this gem in your site's Gemfile under the `:jekyll_plugins group`:
23
+ Include this gem in your site's Gemfile under the `jekyll_plugins` group:
24
24
 
25
25
  [source,lang=sh]
26
26
  ----
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module TidyJSON
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ module Jekyll
11
11
  end
12
12
 
13
13
  def should_tidy?(path)
14
- File.extname(path).downcase == ".json"
14
+ enabled? && File.extname(path).downcase == ".json"
15
15
  end
16
16
 
17
17
  def tidy_page_or_document(page_or_document)
@@ -24,7 +24,6 @@ module Jekyll
24
24
  end
25
25
 
26
26
  def tidy_string(string)
27
- return string if !enabled? || string.empty?
28
27
  json = JSON.parse(string)
29
28
  meth = self.pretty? ? :pretty_generate : :fast_generate
30
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tidy-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.