synful 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/synful +7 -4
- data/synful.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa9ee611c7df5d3c3480dce9a4c33a80139c42aa586de594df56e7e0f0f67cea
|
4
|
+
data.tar.gz: 43e3148e0b44a981051bbc77b645b44572e021dff5abb23a501cc2898412e880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3bc847129fac70c76e6d81a99bb40eb5e85ce05e1d7046b8c9c6717f0f62427d1083c63efb38ac5d9487b60ecac591da152c4ff76ce488c55c9f63df63c81a
|
7
|
+
data.tar.gz: 7bb2d076e36e4226acd9ed9ca7ef8e9566b81109fecf3f6583f53987cbd50602aea48e8adabd173238487ce0e8a92e1b2c3d940c5979821cb4002b5b2f98690f
|
data/bin/synful
CHANGED
@@ -47,8 +47,8 @@ elsif keep
|
|
47
47
|
else
|
48
48
|
keep = nil
|
49
49
|
deny = Set.new(((deny || []) + %w[
|
50
|
-
ico jpg jpeg otf png pdf
|
51
|
-
gem gz zip sqlite3 DS_Store
|
50
|
+
css gif ico jpg jpeg otf png pdf svg eot ttf woff woff2 o a dylib
|
51
|
+
gem gz lock zip sqlite3 DS_Store
|
52
52
|
]).map(&:downcase))
|
53
53
|
end
|
54
54
|
|
@@ -86,11 +86,14 @@ class Synful < Sinatra::Application
|
|
86
86
|
warn "unreadable '#{path}'"
|
87
87
|
elsif File.directory?(path)
|
88
88
|
Find.find(path) do |path|
|
89
|
-
path.delete_prefix!("./")
|
89
|
+
path.delete_prefix!("./")
|
90
90
|
if !File.readable?(path) || path == "."
|
91
91
|
next
|
92
92
|
elsif File.directory?(path)
|
93
|
-
|
93
|
+
base = File.basename(path)
|
94
|
+
Find.prune if base.start_with?(".") or
|
95
|
+
base == "node_modules" or
|
96
|
+
skip&.include?(path)
|
94
97
|
elsif File.file?(path)
|
95
98
|
next if skip&.include?(path)
|
96
99
|
type = path[/(?<=\.)[^.\/]+\z/].to_s.downcase
|
data/synful.gemspec
CHANGED