perron 0.13.2 → 0.13.3

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: c9220fa63d98abad0b69758811716bdb3bd445f61e918adb0edee0c54064444d
4
- data.tar.gz: 6c360d6a12e27664810f0e0936724587e5a4b21d6eaa1d83c13ecb554e868416
3
+ metadata.gz: ebff05f1548f6e133cde9cdfc40ba692d65a52d548cdf47df78b16b52d072b49
4
+ data.tar.gz: 8fcf6d0a11a8ed4b7426c11473d1d8d791a329cd47417d072434b8a1d28e8c6c
5
5
  SHA512:
6
- metadata.gz: ce70a594ace145f7cb1a15e97ee6c6c3fa310d59dd17b9c15d774a5272d3bc6ad74da41443b37a7b150c346342dffb7f681c781f3df9a9574fb4af50277d6228
7
- data.tar.gz: bf44b04d4a9bb4ef81706a2a75088979cdc808a3ed6f139909f803c50fec6125a675e6272c595c20710204472b7e8c6750ba7bae55ab47bf9704baef9e903892
6
+ metadata.gz: fcb6b264a9d159852991f67803bf9f8e666d535a87dc8f12cd82e87362ce326ec3cfa47c0681bfa13e83889e7374fbfe3289d86674b7f8c120971c34969928a0
7
+ data.tar.gz: 45f0d1fd94a3152d396e64ef8178639fffdd527d8a7fc3c50318578cc71684587fa4622aa99f8b3cc347cf8729460d0d6853e22e0d07122c3b88de01c18c444d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- perron (0.13.2)
4
+ perron (0.13.3)
5
5
  csv
6
6
  json
7
7
  psych
@@ -16,9 +16,12 @@ module Perron
16
16
  end
17
17
 
18
18
  def all(resource_class = "Content::#{name.classify}".safe_constantize)
19
- Dir.glob("#{@collection_path}/**/*.*").map do |file_path|
20
- resource_class.new(file_path)
21
- end.select(&:published?)
19
+ allowed_extensions = Perron.configuration.allowed_extensions.map { ".#{it}" }.to_set
20
+
21
+ Dir.glob("#{@collection_path}/**/*.*")
22
+ .select { allowed_extensions.include?(File.extname(it)) }
23
+ .map { resource_class.new(it) }
24
+ .select(&:published?)
22
25
  end
23
26
  alias_method :resources, :all
24
27
 
@@ -1,3 +1,3 @@
1
1
  module Perron
2
- VERSION = "0.13.2"
2
+ VERSION = "0.13.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails Designer Developers