jekyll-environment-variables 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4ea5098ecc5722013c76a442dc232f7b85a815f4bc89b443640e43173e7c1386
4
+ data.tar.gz: 29405a80f4ce41e3c0df50a4529d475e3df36c96fb1c569a9eab78f2e584699d
5
+ SHA512:
6
+ metadata.gz: 3a03cc28c23e2e6e128f2753406d86c6d1cea57c57550fd11f769c18530bfca809850c92c62004bdc76584c786c1fbd901e1e734fabce1bc8195495f2035fb24
7
+ data.tar.gz: f08c2f6f168632220820eb5b2ddb6c18b7165fd88a5938f61e347f9d8a390ccf10188585d931e51a7a60f9f1857090203103aac11ddaff2f9353e1546ea1fa44
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm: 2.4
4
+ cache: bundler
5
+
6
+ #install: bundle install
7
+ script:
8
+ - gem build ./jekyll-env.gemspec
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Jekyll Environment Variables
2
+
3
+ ## Installation
4
+
5
+ Use `Gemfile`
6
+
7
+ ```ruby
8
+ group :jekyll_plugins do
9
+ gem 'jekyll-environment-variables'
10
+ end
11
+ ```
12
+
13
+ Then run `bundle install` and let Bundler handle it for you.
14
+
15
+ ## Usage
16
+
17
+ All environment variables will be copied to `site.env` for use in Liquid templates.
18
+
19
+ ```html
20
+ Working directory: {{ site.env.PWD }}
21
+ ```
@@ -0,0 +1,15 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "jekyll-environment-variables"
3
+ s.version = "1.0.0"
4
+ s.platform = Gem::Platform::RUBY
5
+ s.authors = ['iBug']
6
+ s.homepage = 'http://github.com/iBug/jekyll-environment-variables'
7
+ s.summary = 'Access environment variables using Liquid tags with Jekyll'
8
+ s.description = s.summary
9
+ s.licenses = ['MIT']
10
+ s.date = Time.now
11
+ s.files = `git ls-files -z`.split("\0")
12
+
13
+ s.add_runtime_dependency('jekyll', '~> 3.0')
14
+ s.required_rubygems_version = '>= 1.3.6'
15
+ end
@@ -0,0 +1,10 @@
1
+ module Jekyll
2
+ class EnvironmentVariables < Generator
3
+ def generate(site)
4
+ site.config['env'] = {}
5
+ ENV.each do |key, value|
6
+ site.config['env'][key] = value
7
+ end
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-environment-variables
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - iBug
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Access environment variables using Liquid tags with Jekyll
28
+ email:
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - ".travis.yml"
34
+ - Gemfile
35
+ - README.md
36
+ - jekyll-environment-variables.gemspec
37
+ - lib/jekyll-environment-variables.rb
38
+ homepage: http://github.com/iBug/jekyll-environment-variables
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 1.3.6
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.7.6
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Access environment variables using Liquid tags with Jekyll
62
+ test_files: []