flora 0.1.2 → 0.1.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: b340a03e054b40453f05f5b751bd3abc4cf186111bb825dbe5990fa26f970d42
4
- data.tar.gz: b35a8ede2c532cd62b779c47501533a559722a92881e4e9fe6f4461b317798db
3
+ metadata.gz: e1924be5519b0ec6c689e7ffd28635492f273595e0a6fdd3d482618911475015
4
+ data.tar.gz: f6d24d9cf6c0d3c094805d5686320eddc5759542f595184329e1404abf0a0a79
5
5
  SHA512:
6
- metadata.gz: ba753c9a4eae80973985438f154c30cfbd3706ffd29acccb7918b3fe212c1d248f6a63c3148635f89d874e62f3b50f61fedec9dff2f67ef0948ccf0944ad4895
7
- data.tar.gz: 14c102dae1d31a85bd12bc3d9f50d5775230ed94f4342312d94d97df13ee0759770a5b576118fb5776fc9275cc348a20cb802686e307719a195a54155de07801
6
+ metadata.gz: ba0c66410d2db67867441765ac14f316ccf6f3c94b71da3d49024ac33b0ad7561e251910032d0db8cbb3ccc59087edd09c7ee9b3756d4a112582bafc341b16d5
7
+ data.tar.gz: 3590f10225344dd69fccf934e3c3d68e31dfc336a1f43a86294f35df7c3c71cdfa227ddff87e0e307ced25c57644a34b0ab6b4a93b6487488f2dbaac09ddfbb3
@@ -10,6 +10,7 @@ class Flora::Engine::Page
10
10
  path.find do |file|
11
11
  next if IGNORES.any? { file.fnmatch((path / it).to_s) }
12
12
  next if file.directory?
13
+ next unless supported_file_type?(file)
13
14
 
14
15
  yield(self.for(path, file))
15
16
  end
@@ -25,6 +26,13 @@ class Flora::Engine::Page
25
26
  end
26
27
  end
27
28
 
29
+
30
+ private
31
+
32
+ def supported_file_type?(file)
33
+ file.extname == '.rb' || file.extname == '.md'
34
+ end
35
+
28
36
  end
29
37
 
30
38
 
data/lib/flora/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Flora
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Vladimiroff