synful 1.0.2 → 1.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/synful +7 -4
  3. data/synful.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37beb91e8a78a71b6bdbbfb1833b664a5d2cbf8d260cfb8bfe4aa3c1366ebacf
4
- data.tar.gz: eeb2fafa7499da63f9484609c624bfbcea4ef2c29048942e5aaeeee2cedceecf
3
+ metadata.gz: fa9ee611c7df5d3c3480dce9a4c33a80139c42aa586de594df56e7e0f0f67cea
4
+ data.tar.gz: 43e3148e0b44a981051bbc77b645b44572e021dff5abb23a501cc2898412e880
5
5
  SHA512:
6
- metadata.gz: 37af9ab3ba9e38bf792d7a46aea3ec7c0621524d6393c2cf52998fdf6e789957d03c5cb5dbdc2a0192899ccd24e54913e39aec37370c7e076eef20f1bd9cc881
7
- data.tar.gz: 4fa79294450f004e253e37fac1da593a25520b8261ae61132a43c1eeaa76a72e82c1567b80bcede2bb2704eb99e44e0b5426042dd09117d36bfcc324b258ffd8
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 gif css svg eot ttf woff woff2 o a dylib
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!("./") #!# TODO: is this working as expected?
89
+ path.delete_prefix!("./")
90
90
  if !File.readable?(path) || path == "."
91
91
  next
92
92
  elsif File.directory?(path)
93
- Find.prune if File.basename(path).start_with?(".") or skip&.include?(path)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "synful"
5
- s.version = "1.0.2"
5
+ s.version = "1.0.3"
6
6
  s.author = "Steve Shreeve"
7
7
  s.email = "steve.shreeve@gmail.com"
8
8
  s.summary =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synful
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve