jekyll-paginate-v2 1.6.0 → 1.6.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49eff43d9fc82a1291afa41a9375f5e4892dd977
|
4
|
+
data.tar.gz: 9446fed7b472bb42b50d16f0e4f718aa38fe220d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed1b856077d5f7fb1ccd9e3839adf8264167ac2a09b73b095b1d54157929ad0d8df283aadfcb4edccb8993a97bd6556ba909f6a703d6aa6c1391a4b459ece33
|
7
|
+
data.tar.gz: 9da8d889d46921e8d792399da5be7ee832691a1f1d823ee178f351a60e6428860f38d0e5d5c13fba4cb279c19b9fce82c3a6b796f0a7a221fc373f2eb626bff9
|
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# Jekyll::Paginate V2
|
2
2
|
|
3
|
-
Pagination gem built specially for Jekyll 3 and newer
|
3
|
+
Pagination gem built specially for Jekyll 3 and newer that is fully backwards compatable and serves as an enhanced replacement for the previously built-in [jekyll-paginate gem](https://github.com/jekyll/jekyll-paginate). View it on [rubygems.org](https://rubygems.org/gems/jekyll-paginate-v2).
|
4
4
|
|
5
|
+
[![Gem](https://img.shields.io/gem/v/jekyll-paginate-v2.svg)](https://rubygems.org/gems/jekyll-paginate-v2)
|
5
6
|
[![Build Status](https://travis-ci.org/sverrirs/jekyll-paginate-v2.svg?branch=master)](https://travis-ci.org/sverrirs/jekyll-paginate-v2)
|
6
|
-
[![Gem Version](https://badge.fury.io/rb/jekyll-paginate-v2.svg)](https://badge.fury.io/rb/jekyll-paginate-v2)
|
7
7
|
[![Dependency Status](https://gemnasium.com/badges/github.com/sverrirs/jekyll-paginate-v2.svg)](https://gemnasium.com/github.com/sverrirs/jekyll-paginate-v2)
|
8
|
+
[![Code Climate](https://codeclimate.com/github/sverrirs/jekyll-paginate-v2/badges/gpa.svg)](https://codeclimate.com/github/sverrirs/jekyll-paginate-v2)
|
9
|
+
[![security](https://hakiri.io/github/sverrirs/jekyll-paginate-v2/master.svg)](https://hakiri.io/github/sverrirs/jekyll-paginate-v2/master)
|
10
|
+
[![Gem](https://img.shields.io/gem/dt/jekyll-paginate-v2.svg)](https://rubygems.org/gems/jekyll-paginate-v2)
|
8
11
|
|
9
12
|
Reach me at the [project issues](https://github.com/sverrirs/jekyll-paginate-v2/issues) section or via email at [jekyll@sverrirs.com](mailto:jekyll@sverrirs.com).
|
10
13
|
|
@@ -60,6 +60,7 @@ module Jekyll
|
|
60
60
|
if !index.has_key?(k_split)
|
61
61
|
index[k_split.to_s] = []
|
62
62
|
end
|
63
|
+
# TODO: Need to store the original key value here so that I can present it to the users as a page variable they can use (unmodified, e.g. tags not being 'sci-fi' but "Sci-Fi")
|
63
64
|
index[k_split.to_s] << post
|
64
65
|
end
|
65
66
|
end
|
@@ -27,11 +27,11 @@ module Jekyll
|
|
27
27
|
end
|
28
28
|
|
29
29
|
for key in post_data
|
30
|
-
key = key.downcase.strip
|
30
|
+
key = key.to_s.downcase.strip
|
31
31
|
# If the key is a delimetered list of values
|
32
32
|
# (meaning the user didn't use an array but a string with commas)
|
33
33
|
for k_split in key.split(/;|,/)
|
34
|
-
k_split = k_split.downcase.strip #Clean whitespace and junk
|
34
|
+
k_split = k_split.to_s.downcase.strip #Clean whitespace and junk
|
35
35
|
if !index.has_key?(k_split)
|
36
36
|
index[k_split.to_s] = []
|
37
37
|
end
|
@@ -80,7 +80,7 @@ module Jekyll
|
|
80
80
|
# Now for all filter values for the config key, let's remove all items from the posts that
|
81
81
|
# aren't common for all collections that the user wants to filter on
|
82
82
|
for key in config_value
|
83
|
-
key = key.downcase.strip
|
83
|
+
key = key.to_s.downcase.strip
|
84
84
|
posts = PaginationIndexer.intersect_arrays(posts, source_posts[key])
|
85
85
|
end
|
86
86
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Jekyll
|
2
2
|
module PaginateV2
|
3
|
-
VERSION = "1.6.
|
3
|
+
VERSION = "1.6.1"
|
4
4
|
# When modifying remember to issue a new tag command in git before committing, then push the new tag
|
5
|
-
# git tag -a v1.6.
|
5
|
+
# git tag -a v1.6.1 -m "Gem v1.6.1"
|
6
6
|
# git push origin --tags
|
7
7
|
end # module PaginateV2
|
8
8
|
end # module Jekyll
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-paginate-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sverrir Sigmundarson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|