poepod 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/poepod/cli.rb +1 -1
- data/lib/poepod/processor.rb +5 -4
- data/lib/poepod/version.rb +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: 74aa4bb662884ffcb18e91baf9e8b25d892fd863218556e80a78ed30e603835d
|
4
|
+
data.tar.gz: 0d8c004bac28b64d0b3cb47732a118b28bca2fdcabb2c7f31ed5d8a574d554b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b21d65bed30d5eaf4ae15f29434d94cd25546ba69f72c00c01c89aacbe7e9c17b0cf38560a5e9620bfa6b3c1b59eb0ec0caa4e9b74f23290cb7fd6e050803957
|
7
|
+
data.tar.gz: 9b1313031ed40252c18d8db8f17b72bb67deefd114964eec56beb52cb7493e5a794746f54eeb086d9774ec1777d6fdb5cf5462badff62bc72bbe71a51c17358d
|
data/lib/poepod/cli.rb
CHANGED
data/lib/poepod/processor.rb
CHANGED
@@ -7,9 +7,10 @@ require "pathname"
|
|
7
7
|
module Poepod
|
8
8
|
class Processor
|
9
9
|
EXCLUDE_DEFAULT = [
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
/node_modules\//, /.git\//, /.gitignore$/, /.DS_Store$/,
|
11
|
+
/.jpg$/, /.jpeg$/, /.png/, /.svg$/, /.gif$/,
|
12
|
+
/.exe$/, /.dll$/, /.so$/, /.bin$/, /.o$/, /.a$/, /.gem$/, /.cap$/,
|
13
|
+
/.zip$/,
|
13
14
|
].freeze
|
14
15
|
|
15
16
|
def initialize(config_file = nil)
|
@@ -35,7 +36,7 @@ module Poepod
|
|
35
36
|
|
36
37
|
def gather_files(directory_path, exclude)
|
37
38
|
exclude += @config["exclude"] if @config["exclude"]
|
38
|
-
exclude_pattern = Regexp.union(exclude.map { |ex| Regexp.
|
39
|
+
exclude_pattern = Regexp.union(exclude.map { |ex| Regexp.new(ex) })
|
39
40
|
|
40
41
|
Dir.glob("#{directory_path}/**/*").reject do |file_path|
|
41
42
|
File.directory?(file_path) || file_path.match?(exclude_pattern)
|
data/lib/poepod/version.rb
CHANGED