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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e77209b86f75c10688257dfe4a79d1c1265c7be3a501d815d759fb92e1363d9a
4
- data.tar.gz: 9c9d9535212835b3bc7ddb75f0cbc8737b8660e1432c3b5f43f96c12c530c800
3
+ metadata.gz: 74aa4bb662884ffcb18e91baf9e8b25d892fd863218556e80a78ed30e603835d
4
+ data.tar.gz: 0d8c004bac28b64d0b3cb47732a118b28bca2fdcabb2c7f31ed5d8a574d554b2
5
5
  SHA512:
6
- metadata.gz: ad6419f6b2eeee7283457ca3ddfe15bc8ac1ef3993394bb4c886829408966f13a633f3d06423ecf6f28f15c333be379c7050fba5153658d408f97f6929a7c347
7
- data.tar.gz: 331b8822d8667efbf4c2c01b77d7bcf9825e6b110122d90100e8a5dcad0378e1cf1b9e7c20eb4977b1c2f69993577c76a43f7b69e6b78a3f7e3c7d392099831d
6
+ metadata.gz: b21d65bed30d5eaf4ae15f29434d94cd25546ba69f72c00c01c89aacbe7e9c17b0cf38560a5e9620bfa6b3c1b59eb0ec0caa4e9b74f23290cb7fd6e050803957
7
+ data.tar.gz: 9b1313031ed40252c18d8db8f17b72bb67deefd114964eec56beb52cb7493e5a794746f54eeb086d9774ec1777d6fdb5cf5462badff62bc72bbe71a51c17358d
data/lib/poepod/cli.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "thor"
4
- require "poepod/processor"
4
+ require_relative "processor"
5
5
 
6
6
  module Poepod
7
7
  class Cli < Thor
@@ -7,9 +7,10 @@ require "pathname"
7
7
  module Poepod
8
8
  class Processor
9
9
  EXCLUDE_DEFAULT = [
10
- "node_modules/", ".git/", ".gitignore", ".DS_Store",
11
- "*.jpg", "*.jpeg", "*.png", "*.svg", "*.gif",
12
- "*.exe", "*.dll", "*.so", "*.bin", "*.o", "*.a"
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.escape(ex) })
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Poepod
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poepod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.