jekyll-itafroma-sort_tag 0.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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/jekyll/itafroma/sort_tag.rb +18 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f9727790cccb8c5759a7f0b7a712ef0791fba04b
4
+ data.tar.gz: 90b32c580fbb582fbe3d1aaf665eb3148602aa0c
5
+ SHA512:
6
+ metadata.gz: 830e7abb598c4988da51a50ccb8a74fcb1bf7aa3348f0185827224c173617491abd669f0de4477ade37c12d8080407b82bb1a23f72a751dc04e98de498c483ec
7
+ data.tar.gz: fae011638e8f1e2933d794fe3255e897a0801a32196fc042da9f966b20e95444e7d24c4a0387b815c7b76e782cdd18d8451b32d3284298eadb1acf0b2eebc140
@@ -0,0 +1,18 @@
1
+ #
2
+ # Sorts rendered lines.
3
+ #
4
+ # Author:: Mark Trapp
5
+ # Copyright:: Copyright (c) 2013 Mark Trapp
6
+ # License:: MIT
7
+
8
+ module Jekyll
9
+ module Itafroma
10
+ class SortTag < Liquid::Block
11
+ def render(context)
12
+ super.split(/\n/).sort.join("\n")
13
+ end
14
+ end
15
+ end
16
+ end
17
+
18
+ Liquid::Template.register_tag('sort', Jekyll::Itafroma::SortTag)
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-itafroma-sort_tag
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mark Trapp
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Jekyll plugin to provide a sort tag.
14
+ email: mark@marktrapp.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/jekyll/itafroma/sort_tag.rb
20
+ homepage: http://marktrapp.com/projects/jekyll-sort-tag
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.0.6
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Jekyll plugin to provide a sort tag.
44
+ test_files: []