jekyll-site-config 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +16 -0
- data/.gitignore +25 -0
- data/LICENSE +21 -0
- data/Makefile +19 -0
- data/README.md +3 -0
- data/jekyll-site-config.gemspec +19 -0
- data/lib/jekyll-site-config.rb +11 -0
- data/lib/jekyll-site-config/version.rb +3 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf300522615ad841abaa5e85cc3768e637c4829f
|
4
|
+
data.tar.gz: 26d95fef6983ede2656cdaed5833bc039360393b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 799df4f3a9634950f17f159cfc2bdd25f47de1c3881723c974c37baf5a6a9b7377b00573c7b0c9e373534d74f88674713e864ca175f93f62fca167c835bac689
|
7
|
+
data.tar.gz: 953f71e6ee1ad0aa96476d1cfcb4c7c0a41e7edca5c77f2092621efd6f1b690ac0f63f2e8d5cebd55719933e8661d52615e9392525915f177c7ee17c8d456f0c
|
data/.editorconfig
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
root = true
|
2
|
+
|
3
|
+
[*]
|
4
|
+
indent_style = space
|
5
|
+
indent_size = 2
|
6
|
+
trim_trailing_whitespace = true
|
7
|
+
insert_final_newline = true
|
8
|
+
|
9
|
+
[*.{md,rb,gemspec},Makefile]
|
10
|
+
charset = utf-8
|
11
|
+
|
12
|
+
[Makefile]
|
13
|
+
indent_style = tab
|
14
|
+
|
15
|
+
[*.md]
|
16
|
+
trim_trailing_whitespace = false
|
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
.dat*
|
13
|
+
.repl_history
|
14
|
+
build/
|
15
|
+
*.bridgesupport
|
16
|
+
build-iPhoneOS/
|
17
|
+
build-iPhoneSimulator/
|
18
|
+
/.yardoc/
|
19
|
+
/_yardoc/
|
20
|
+
/doc/
|
21
|
+
/rdoc/
|
22
|
+
/.bundle/
|
23
|
+
/vendor/bundle
|
24
|
+
/lib/bundler/man/
|
25
|
+
.rvmrc
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Jam Risser <jam@jamrizzi.com> (https://jam.jamrizzi.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Makefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
CWD := $(shell pwd)
|
2
|
+
|
3
|
+
.PHONY: all
|
4
|
+
all: build
|
5
|
+
|
6
|
+
.PHONY: build
|
7
|
+
build: clean
|
8
|
+
@gem build *.gemspec
|
9
|
+
@echo ::: BUILD :::
|
10
|
+
|
11
|
+
.PHONY: push
|
12
|
+
push: build
|
13
|
+
@gem push *.gem
|
14
|
+
@echo ::: PUSH :::
|
15
|
+
|
16
|
+
.PHONY: clean
|
17
|
+
clean:
|
18
|
+
-@rm -rf *.gem &>/dev/null || true
|
19
|
+
@echo ::: CLEAN :::
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "jekyll-site-config/version"
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "jekyll-site-config"
|
6
|
+
spec.summary = "Add custom data to Jekyll site config object"
|
7
|
+
spec.description = "Add custom data to Jekyll site config object"
|
8
|
+
spec.version = JekyllSiteConfig::VERSION
|
9
|
+
spec.authors = ["Jam Risser"]
|
10
|
+
spec.email = ["jam@jamrizzi.com"]
|
11
|
+
spec.homepage = "https://github.com/jamrizzi/jekyll-site-config"
|
12
|
+
spec.licenses = ["MIT"]
|
13
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) }
|
14
|
+
spec.require_paths = ["lib"]
|
15
|
+
spec.add_dependency "jekyll", "~> 3.0"
|
16
|
+
spec.add_development_dependency "rake", "~> 11.0"
|
17
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
18
|
+
spec.add_development_dependency "rubocop", "~> 0.52"
|
19
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require "jekyll"
|
2
|
+
|
3
|
+
module JekyllSiteConfig
|
4
|
+
def self.set_config(name, data)
|
5
|
+
_render_document = Jekyll::Renderer.instance_method(:render_document)
|
6
|
+
Jekyll::Renderer.send(:define_method, "render_document") do
|
7
|
+
self.site.config[name] = data
|
8
|
+
_render_document.bind(self).()
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-site-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jam Risser
|
@@ -72,7 +72,15 @@ email:
|
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
|
-
files:
|
75
|
+
files:
|
76
|
+
- ".editorconfig"
|
77
|
+
- ".gitignore"
|
78
|
+
- LICENSE
|
79
|
+
- Makefile
|
80
|
+
- README.md
|
81
|
+
- jekyll-site-config.gemspec
|
82
|
+
- lib/jekyll-site-config.rb
|
83
|
+
- lib/jekyll-site-config/version.rb
|
76
84
|
homepage: https://github.com/jamrizzi/jekyll-site-config
|
77
85
|
licenses:
|
78
86
|
- MIT
|