jekyll-itafroma-archive 0.4.1 → 0.4.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: f1dab8e51289bc538a25cdb15e08daa1f2338042
4
- data.tar.gz: 5462c9971508af959219de8e568957f34d6ca106
3
+ metadata.gz: fade4bc1053911fb5d09b085c7edced9f9d5e393
4
+ data.tar.gz: 972112682a4cc4c5c5a46d2fc45106ef420f6177
5
5
  SHA512:
6
- metadata.gz: 7fd0371278fedaea1ac0805a9904c1d25622b6ef52a3f12c5ceee3c2dfde44c471ba71d71f07146146641d2f7e4b541e5f994a508155cd43c3d9273928d73b35
7
- data.tar.gz: 47bf01e963daf234211b3207a1d64c4447f9269c99d3bcc87a8c725504783d0dbf2f3616702d04388bd37d962024c96356e5bb716dc45568b5a35662aea8bde3
6
+ metadata.gz: 660619222221f32ac29164bf28577a37f82a36c68588a1d64762a8c77cde474967312e55ed74657f61687e5a84b277e0c6c7e2a98b971bbdfcc0d389ee973c10
7
+ data.tar.gz: 96555722fdafb94adbd2ca607fe09181fcbbe1d8adcd506299082016c70dbb7fc98e2dd3ac3419345d59d75b959295ef2a01944f8c1b2fdd1495a800089e8dcb
@@ -41,13 +41,10 @@ module Jekyll
41
41
  title = archive['title'] || DEFAULT_TITLE
42
42
 
43
43
  inclusions = archive['include'] || DEFAULT_INCLUSIONS
44
- posts = if inclusions.empty?
45
- site.posts
46
- else
47
- site.posts.select do |post|
48
- inclusions.any? do |key, inclusion|
49
- (post[key] & inclusion).any?
50
- end
44
+ posts = site.posts.dup
45
+ inclusions.any? do |key, inclusion|
46
+ posts.select! do |post|
47
+ (post[key] & inclusion).any?
51
48
  end
52
49
  end
53
50
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-itafroma-archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Trapp