jekyll-planningwikiplugins 0.2.5 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfe9d07c1d6148a6fe4165db41c1b719e66f139309a144e1c1c8640330fc29c8
4
- data.tar.gz: 2adc4d70a828dae068c907a7a2935b546a3d87442d3a4af3ce7d3ec83381aa9c
3
+ metadata.gz: f628bee52e45f13c56888838ee7fba715de64593af420e0d82a42765e6016215
4
+ data.tar.gz: 833b123ff027258c69cdbcf66143bcfd5841fdf10710f1acca1627ef93c5feb7
5
5
  SHA512:
6
- metadata.gz: e9ca772646c764c6ae01986e988735aa82cb69cf07901a4a26ea764e144f2974694e8f9f3d7aa9d2093c60184707b9ef448295c76808b05e763d7e136b051cce
7
- data.tar.gz: 80280fd717803d5b2b180ca65a681a5308fec4b8bb2d680b51a7af39518aa0c5874e7f3b154750ec317796a8b90026b038d7054ea6d7c8c0ce3979f96e28d809
6
+ metadata.gz: 42e6fec83752f89e1bacd9399d4fc1e139ecc1f18e751dc7dd2765cb2a4c78bbe8be8a98c8e95cacca3c18865ef6e55e6a275402fdaf6f9c7c8c3b5e5139c749
7
+ data.tar.gz: e8696576a2e4dcf66df4ab35f59cdede986a545820405d8a0e4d4922afc6467c90849153086fc145173edb29a3a447b6d47be1794e4ad41ad5311af3f252be88
@@ -9,12 +9,12 @@ module Jekyll
9
9
 
10
10
  def lookup(context, name)
11
11
  lookup = context
12
- name.split(".").each { |value| lookup = lookup[value] }
12
+ name.encode('UTF-8').split(".").each { |value| lookup = lookup[value] }
13
13
  lookup
14
14
  end
15
15
 
16
16
  def render(context)
17
- `git log --pretty=format:"%an," #{lookup(context, 'page.path')} | sort | uniq`
17
+ `git log --pretty=format:"%an," #{lookup(context, 'page.path')} | sort | uniq | grep -v -F "adamgreen,"`
18
18
  end
19
19
  end
20
20
  class GitAuthorAllTag < Liquid::Tag
@@ -25,12 +25,12 @@ module Jekyll
25
25
 
26
26
  def lookup(context, name)
27
27
  lookup = context
28
- name.split(".").each { |value| lookup = lookup[value] }
28
+ name.encode('UTF-8').split(".").each { |value| lookup = lookup[value] }
29
29
  lookup
30
30
  end
31
31
 
32
32
  def render(context)
33
- `git log --pretty=format:"%an," . | sort | uniq`
33
+ `git log --pretty=format:"%an," . | sort | uniq | grep -v -F "adamgreen,"`
34
34
  end
35
35
  end
36
36
  class PlannerTag < Liquid::Tag
@@ -56,13 +56,7 @@ module Jekyll
56
56
  end
57
57
 
58
58
  def render(context)
59
- #Split by space
60
- tags = @text.split(' ')
61
- result = "tags: "
62
- tags.each do |tag|
63
- result = "#{result} <a href=\"/ref/planners/#{tag.downcase}\">#{tag}</a>"
64
- end
65
- result
59
+ "<a href=\"/ref/planners/#{@text.downcase}\">#{@text}</a>"
66
60
  end
67
61
  end
68
62
  class CitePaperTag < Liquid::Tag
@@ -70,12 +64,12 @@ module Jekyll
70
64
  super
71
65
 
72
66
  if text.split(' ').length > 2
73
- @text = text.split(' ')[0..-3].join(" ")
74
- @paper = text.split(' ')[-2]
75
- @pageno = text.split(' ')[-1]
67
+ @text = text.encode('UTF-8').split(' ')[0..-3].join(" ")
68
+ @paper = text.encode('UTF-8').split(' ')[-2]
69
+ @pageno = text.encode('UTF-8').split(' ')[-1]
76
70
  else
77
- @text = text.split(' ')[0]
78
- @paper = text.split(' ')[1]
71
+ @text = text.encode('UTF-8').split(' ')[0]
72
+ @paper = text.encode('UTF-8').split(' ')[1]
79
73
  @pageno = 1
80
74
  end
81
75
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Planningwikiplugins
3
- VERSION = "0.2.5"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-planningwikiplugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Green
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-31 00:00:00.000000000 Z
11
+ date: 2020-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.7.6
97
+ rubygems_version: 3.1.2
99
98
  signing_key:
100
99
  specification_version: 4
101
100
  summary: Plugins to support the maintenance and running of the planning wiki