mpiwg-jekyll-tags 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 535de82875917d4a297aa8e7f1732751fddc202a
4
- data.tar.gz: b409d8add11d52f505b7add3de629365d7fb00be
3
+ metadata.gz: 68f9bd6aedd3f1df5150a1966583a171a1e4a908
4
+ data.tar.gz: 785102101dbe49ce439e98da65ee8c95295330cc
5
5
  SHA512:
6
- metadata.gz: c1b1e532c9cb484a89d8019f96716a96d9e42d58659b837f420d18cd067a3c962a486de6f6b783cdec760ce9ddc7a0cce21018a1312c336a95b4f9aa95f2103a
7
- data.tar.gz: 70c41f239fc952e4f6c1010143e326b84660fbb09298445cb7ab4cc54cac780ebc66e85ae441128c1dffcf8a4bca4c2035fe221feeb297a9c583d6b45081d374
6
+ metadata.gz: cedce4bee98352e43858d830872e8412288e0f346ed9a3b0e9998108ab02b309c2033c9a47c61eb46748b699028972241810031e79601fcba2dc6ed6dce47bfa
7
+ data.tar.gz: 013fa99282407b8939b3eacd2accd5f2aa1da4842cf6cf66159a04e7c2f68eb7310c09d1531d08ab8a6714cb9329ed3e64ac55e44141a66f2e2875d607ce55e0
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "jekyll", "~> 4.0.0"
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Florian Kräutli <fkraeutli@mpiwg-berlin.mpg.de> (http://www.kraeutli.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,36 @@
1
+ CWD := $(shell pwd)
2
+
3
+ .PHONY: all
4
+ all: build
5
+
6
+ .PHONY: start
7
+ start:
8
+ @bundle exec jekyll serve --verbose
9
+
10
+ .PHONY: build
11
+ build: clean
12
+ @gem build *.gemspec
13
+ @echo ::: BUILD :::
14
+
15
+ .PHONY: install
16
+ install: deps
17
+ -@rm -f Gemfile.lock &>/dev/null || true
18
+ @bundle install
19
+ @echo ::: INSTALL :::
20
+
21
+ .PHONY: push
22
+ push: build
23
+ @gem push *.gem
24
+ @echo ::: PUSH :::
25
+
26
+ .PHONY: clean
27
+ clean:
28
+ -@rm -rf *.gem &>/dev/null || true
29
+ @echo ::: CLEAN :::
30
+
31
+ .PHONY: deps
32
+ deps: bundle
33
+ @echo ::: DEPS :::
34
+ .PHONY: bundle
35
+ bundle:
36
+ @if ! o=$$(which bundle); then gem install bundle jekyll; fi
data/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # MPIWG Jekyll Tags
2
+
3
+ > 💎 Custom functionality for MPIWG Jekyll Microsites
4
+
5
+ ## Development
6
+
7
+ To release a new version do the following:
8
+
9
+ - increase version number in lib/mpiwg-jekyll-tags/version.rb
10
+ - add release notes to HISTORY.md
11
+ - build new gem: `gem build mpiwg-jekyll-tags.gemspec`
12
+ - push new version to rubygems.org: `gem push mpiwg-jekyll-tags-${version}.gem`
@@ -0,0 +1,17 @@
1
+ module Jekyll
2
+ class RenderIntroBlock < Liquid::Tag
3
+
4
+ def initialize(tag_name, text, tokens)
5
+ super
6
+ @text = text
7
+ end
8
+
9
+ require "kramdown"
10
+ def render(context)
11
+ "<p class='intro'>#{ @text }</p>"
12
+ end
13
+
14
+ end
15
+ end
16
+
17
+ Liquid::Template.register_tag('intro', Jekyll::RenderIntroBlock)
@@ -0,0 +1,3 @@
1
+ module MpiwgJekyllTags
2
+ VERSION = "0.0.2".freeze
3
+ end
@@ -0,0 +1,5 @@
1
+ require_relative "mpiwg-jekyll-tags/version"
2
+ require_relative "mpiwg-jekyll-tags/tag"
3
+
4
+ module MpiwgJekyllTags
5
+ end
@@ -0,0 +1,19 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "mpiwg-jekyll-tags/version"
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "mpiwg-jekyll-tags"
6
+ spec.summary = "Custom tags for MPIWG Jekyll Microsites"
7
+ spec.description = "Custom tags for MPIWG Jekyll Microsites"
8
+ spec.version = MpiwgJekyllTags::VERSION
9
+ spec.authors = ["Florian Kräutli"]
10
+ spec.email = ["fkraeutli@mpiwg-berlin.mpg.de"]
11
+ spec.homepage = "http://www.mpiwg-berlin.mpg.de"
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", "~> 4.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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpiwg-jekyll-tags
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
  - Florian Kräutli
@@ -72,7 +72,16 @@ email:
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
- files: []
75
+ files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - LICENSE
79
+ - Makefile
80
+ - README.md
81
+ - lib/mpiwg-jekyll-tags.rb
82
+ - lib/mpiwg-jekyll-tags/tag.rb
83
+ - lib/mpiwg-jekyll-tags/version.rb
84
+ - mpiwg-jekyll-tags.gemspec
76
85
  homepage: http://www.mpiwg-berlin.mpg.de
77
86
  licenses:
78
87
  - MIT