jekyll_config_to_JSON 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll_config_to_JSON.rb +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d50b08ac329156da2abb0095a0e2270f6018435
4
- data.tar.gz: d4711c6ae38f7ce7dde682639f21b4842754b455
3
+ metadata.gz: 2483b16e8316ea074114cd1a70c429101df79049
4
+ data.tar.gz: 41f5e0d8475a67174d78bc6598f827eb7a250890
5
5
  SHA512:
6
- metadata.gz: 44975b4e657a9a84f8b178dddffc46537b2fb317fa03f5a973f6993a0f4e78083401bf4b9e9f7dba4bbe977477ac151ef295568fcb8575283eefe8ecebe55432
7
- data.tar.gz: 47e2675a52fe9b79df6c16485dd565dcfaad515570f3c86033cdad789c08c709da44302f484c189fae82e6f2ef443ad4d0eef5828ee5c21dee442ac82667411b
6
+ metadata.gz: 7467131540aa961442f1a9648e4d50bb4c0018a7e2b75007f183ba0c64cd146ecd188cb9fb9d60d368dfcb959e03d71def22d719be3613acfffa9bbf3e5491f9
7
+ data.tar.gz: 9a89fc915afeb939cfe14db1f957774770300fc538916e830ed98abd177fc8bd466f2c10bdc5e778cfb7d915216799bda8778a2741153e15f4149d4879d16130
@@ -34,8 +34,18 @@ module Jekyll
34
34
  if File.exists?@@globals["json_file_path"]
35
35
  site.static_files << Jekyll::StaticFile.new(site, site.source, @@globals['output_directory'], @@globals['output_file'])
36
36
  end
37
+ else
38
+ #else the filejoins have already been executed (IE: We are regenerating and not building)
39
+ FileUtils.mkdir_p(@@globals["src_dir"]) unless File.exists?(@@globals["src_dir"])
40
+ f = File.new(@@globals["json_file_path"], "w+")
41
+ f.puts config_json
42
+ f.close
43
+ if File.exists?@@globals["json_file_path"]
44
+ site.static_files << Jekyll::StaticFile.new(site, site.source, @@globals['output_directory'], @@globals['output_file'])
45
+ end
37
46
  end
38
47
 
48
+
39
49
 
40
50
  end
41
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_config_to_JSON
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Plaza (InsidiousMind)