jekyll-planningwikiplugins 0.2.1 → 0.2.2

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: 68893d1a692f6fab7260a03403c60f468327ddf8975737c845f45708c5ea953f
4
- data.tar.gz: 6b033e92caa128a70678ea740de60be33b12b5116bcdaf1af5a954c50d04e3ff
3
+ metadata.gz: a5a1cb867d8e07c9bea65589aff11169b9adcce582f8e91698cce365551174a2
4
+ data.tar.gz: 9980da038161eec0d7ee03902f84c6313f07cd80dbfb09d0e0ea2f8d3e3991b8
5
5
  SHA512:
6
- metadata.gz: 8d652fbbcf0a1acc5cb14d8a42a67fff9d451129816814f03276a489b91674a96949ab08ecbe80854ee5bd4b22a4c9d4fa7ab3c530996b54aaaa90ddac6612d0
7
- data.tar.gz: 8e6eca2935b4fa0d003b236feea4b14d238df2eaee207eb85dfe06f884494654f4c55a1a60145247f45655ed71b708b34fadf9d3aa314e482fcee8700b47a1f8
6
+ metadata.gz: 00ae1360c79cc55e0247f82954fb6b3513122e9284d5960a980d17a6c2f8cec5bdf65e0ccdd5329f46f55890350ef002fe7216b1f2bbd86d19d594d399f870e5
7
+ data.tar.gz: 91e09f37cf16db308e0e97528e5e9421c048aced965c104df12fcccb923f23903a59c7223129e6622148c99f037e0a3511ee065083360a63dccb0a378b3bcefa
@@ -52,12 +52,15 @@ module Jekyll
52
52
  class CitePaperTag < Liquid::Tag
53
53
  def initialize(tag_name, text, tokens)
54
54
  super
55
- @text = text.split(' ')[0]
56
- @paper = text.split(' ')[1]
55
+
57
56
  if text.split(' ').length > 2
58
- @pageno = text.split(' ')[2]
59
- else
60
- @pageno = 1
57
+ @text = text.split(' ')[0..-2].join("")
58
+ @paper = text.split(' ')[-2]
59
+ @pageno = text.split(' ')[-1]
60
+ else
61
+ @text = text.split(' ')[0]
62
+ @paper = text.split(' ')[1]
63
+ @pageno = 1
61
64
  end
62
65
  end
63
66
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Planningwikiplugins
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-planningwikiplugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Green