cleanup_vendor 0.3.0 → 0.6.1

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: 8cd69188501d192b24e691c1e39f4f234ddaafe83d438563c866fb23c0cc9d14
4
- data.tar.gz: 3adda87794ca9d802fb13d30cb084eba8d8320fb6653b75f21e85c3350f8178f
3
+ metadata.gz: 83c0f8f4ee14446ad3670f5e07214c15232131cc361614cbe2e59ce54cf4c08e
4
+ data.tar.gz: 3d6e0f172bec8e59091b3bb18421cbfe126b29d905aca62f0d43d539c30a5889
5
5
  SHA512:
6
- metadata.gz: ebbf384b886c6c981f46493a7e34a4b99aeb9d1d56a1c0b28ee40ea93778365d30a9b49fbf562745c9f96629f22f54434c7eb5726fd77480b3aa754e113f4e76
7
- data.tar.gz: 287c969e76e59265d4edba74c5ddeaf46016832e444eeab66248aa27dfe637cc4e7132390deeb6e536e8a1a876b4c291c7bbda77f946b7662b1103247eeb63a8
6
+ metadata.gz: d619db9b5e593ff3bb6e5ab3fbdbbc2386ef0ffb46299d82087c87300780b408f5b69c256464be3caa2959187009e12fd15c1fb4ce20d0a69f4c37b3ed9b79a7
7
+ data.tar.gz: 68193ea245422ad15093e6104fb718f03ad300339e708d608330d255089da91001ffc1c7407ab59495cce3b744be1ad2bd224117def0989a46db3cf84c9bcaa5
@@ -0,0 +1,19 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ commit-message:
8
+ prefix: "chore"
9
+ include: "scope"
10
+ rebase-strategy: "disabled"
11
+
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "daily"
16
+ commit-message:
17
+ prefix: "chore"
18
+ include: "scope"
19
+ rebase-strategy: "disabled"
@@ -0,0 +1,41 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ ruby: [2.5, 2.6, 2.7, 3.0]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v2.4.0
19
+
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+
26
+ - name: Update the RubyGems system software
27
+ run: gem update --system
28
+
29
+ - name: Update Bundler
30
+ run: bundle update --bundler
31
+
32
+ - name: Install dependencies
33
+ run: bundle install
34
+
35
+ - name: Run tests and publish coverage
36
+ uses: paambaati/codeclimate-action@v3.0.0
37
+ env:
38
+ COVERAGE: on
39
+ CC_TEST_REPORTER_ID: 223eccd52e0685221f32d788a5847a98d00c00688c3eebfa714ee95887d40f20
40
+ with:
41
+ coverageCommand: bundle exec rspec
data/.rubocop.yml CHANGED
@@ -1,19 +1,23 @@
1
+ require:
2
+ - rubocop-rspec
3
+
1
4
  AllCops:
2
5
  TargetRubyVersion: 2.5
6
+ NewCops: enable
3
7
  Exclude:
4
- - 'bin/**/*'
5
- - 'vendor/**/*'
6
- - 'vendor.test/**/*'
8
+ - "bin/**/*"
9
+ - "vendor/**/*"
10
+ - "vendor.test/**/*"
7
11
 
8
12
  Layout/LineLength:
9
13
  Exclude:
10
- - 'exe/cleanup_vendor'
14
+ - "exe/cleanup_vendor"
11
15
  Max: 128
12
16
 
13
17
  Metrics/BlockLength:
14
18
  Exclude:
15
- - 'exe/cleanup_vendor'
16
- - 'spec/**/*'
19
+ - "exe/cleanup_vendor"
20
+ - "spec/**/*"
17
21
 
18
22
  Style/AccessModifierDeclarations:
19
23
  Enabled: false
@@ -27,4 +31,7 @@ Style/HashTransformValues:
27
31
  Enabled: true
28
32
  Style/StderrPuts:
29
33
  Exclude:
30
- - 'lib/cleanup_vendor.rb'
34
+ - "lib/cleanup_vendor.rb"
35
+
36
+ RSpec/MultipleMemoizedHelpers:
37
+ Enabled: false
data/Gemfile.lock CHANGED
@@ -1,74 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cleanup_vendor (0.3.0)
4
+ cleanup_vendor (0.6.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.0)
10
- byebug (11.1.1)
11
- coderay (1.1.2)
12
- diff-lcs (1.3)
13
- docile (1.3.2)
14
- gem-release (2.1.1)
15
- jaro_winkler (1.5.4)
16
- method_source (0.9.2)
17
- parallel (1.19.1)
18
- parser (2.7.0.4)
19
- ast (~> 2.4.0)
20
- pry (0.12.2)
21
- coderay (~> 1.1.0)
22
- method_source (~> 0.9.0)
23
- pry-byebug (3.8.0)
9
+ ast (2.4.2)
10
+ byebug (11.1.3)
11
+ coderay (1.1.3)
12
+ diff-lcs (1.4.4)
13
+ docile (1.3.5)
14
+ gem-release (2.2.2)
15
+ method_source (1.0.0)
16
+ parallel (1.21.0)
17
+ parser (3.1.0.0)
18
+ ast (~> 2.4.1)
19
+ pry (0.13.1)
20
+ coderay (~> 1.1)
21
+ method_source (~> 1.0)
22
+ pry-byebug (3.9.0)
24
23
  byebug (~> 11.0)
25
- pry (~> 0.10)
26
- pry-doc (1.0.0)
24
+ pry (~> 0.13.0)
25
+ pry-doc (1.3.0)
27
26
  pry (~> 0.11)
28
27
  yard (~> 0.9.11)
29
28
  rainbow (3.0.0)
30
- rexml (3.2.4)
31
- rspec (3.9.0)
32
- rspec-core (~> 3.9.0)
33
- rspec-expectations (~> 3.9.0)
34
- rspec-mocks (~> 3.9.0)
35
- rspec-core (3.9.1)
36
- rspec-support (~> 3.9.1)
37
- rspec-expectations (3.9.1)
29
+ regexp_parser (2.2.0)
30
+ rexml (3.2.5)
31
+ rspec (3.10.0)
32
+ rspec-core (~> 3.10.0)
33
+ rspec-expectations (~> 3.10.0)
34
+ rspec-mocks (~> 3.10.0)
35
+ rspec-core (3.10.0)
36
+ rspec-support (~> 3.10.0)
37
+ rspec-expectations (3.10.0)
38
38
  diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.9.0)
40
- rspec-mocks (3.9.1)
39
+ rspec-support (~> 3.10.0)
40
+ rspec-mocks (3.10.0)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.9.0)
43
- rspec-support (3.9.2)
44
- rubocop (0.80.1)
45
- jaro_winkler (~> 1.5.1)
42
+ rspec-support (~> 3.10.0)
43
+ rspec-support (3.10.0)
44
+ rubocop (1.24.1)
46
45
  parallel (~> 1.10)
47
- parser (>= 2.7.0.1)
46
+ parser (>= 3.0.0.0)
48
47
  rainbow (>= 2.2.2, < 4.0)
48
+ regexp_parser (>= 1.8, < 3.0)
49
49
  rexml
50
+ rubocop-ast (>= 1.15.1, < 2.0)
50
51
  ruby-progressbar (~> 1.7)
51
- unicode-display_width (>= 1.4.0, < 1.7)
52
- ruby-progressbar (1.10.1)
53
- simplecov (0.18.5)
52
+ unicode-display_width (>= 1.4.0, < 3.0)
53
+ rubocop-ast (1.15.1)
54
+ parser (>= 3.0.1.1)
55
+ rubocop-rspec (2.7.0)
56
+ rubocop (~> 1.19)
57
+ ruby-progressbar (1.11.0)
58
+ simplecov (0.21.2)
54
59
  docile (~> 1.1)
55
60
  simplecov-html (~> 0.11)
56
- simplecov-html (0.12.2)
57
- unicode-display_width (1.6.1)
58
- yard (0.9.24)
61
+ simplecov_json_formatter (~> 0.1)
62
+ simplecov-html (0.12.3)
63
+ simplecov_json_formatter (0.1.2)
64
+ unicode-display_width (2.1.0)
65
+ webrick (1.7.0)
66
+ yard (0.9.27)
67
+ webrick (~> 1.7.0)
59
68
 
60
69
  PLATFORMS
61
70
  ruby
62
71
 
63
72
  DEPENDENCIES
64
- bundler (~> 1.17)
73
+ bundler (~> 2.1)
65
74
  cleanup_vendor!
66
75
  gem-release (~> 2.1)
67
76
  pry-byebug (~> 3.8)
68
77
  pry-doc (~> 1.0)
69
78
  rspec (~> 3.0)
70
- rubocop (~> 0.80.1)
71
- simplecov (~> 0.18.5)
79
+ rubocop (~> 1.24.1)
80
+ rubocop-rspec (~> 2.0, >= 2.0.1)
81
+ simplecov (= 0.21.2)
72
82
 
73
83
  BUNDLED WITH
74
- 1.17.3
84
+ 2.2.32
data/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # CleanupVendor
2
2
 
3
- [![Build Status](https://travis-ci.org/raszi/cleanup_vendor.svg?branch=master)](https://travis-ci.org/raszi/cleanup_vendor)
3
+ [![Build Status](https://github.com/raszi/cleanup_vendor/workflows/Ruby/badge.svg?branch=master)](https://github.com/raszi/cleanup_vendor/actions?query=workflow%3ARuby)
4
4
  [![Code Climate](https://codeclimate.com/github/raszi/cleanup_vendor/badges/gpa.svg)](https://codeclimate.com/github/raszi/cleanup_vendor)
5
5
  [![Test Coverage](https://codeclimate.com/github/raszi/cleanup_vendor/badges/coverage.svg)](https://codeclimate.com/github/raszi/cleanup_vendor)
6
6
  [![Gem Version](https://badge.fury.io/rb/cleanup_vendor.svg)](https://badge.fury.io/rb/cleanup_vendor)
7
7
 
8
- This gem was created to help minimizing the size of your docker images.
8
+ This gem was created to help minimizing the size of your Docker images by removing the unnecessary files in the production environment.
9
+
10
+ Files like build leftovers, test files, CI configurations, etc. You can check the [`defaults.yml`](lib/defaults.yml) for the exact list.
9
11
 
10
12
  ## Installation
11
13
 
@@ -34,11 +36,68 @@ RUN bundle install --deployment --frozen --jobs 4 --no-cache --retry 5 --without
34
36
  bundle exec cleanup_vendor --summary
35
37
  ```
36
38
 
37
- ## Development
39
+ To make it even smaller you can create a separate group in your `Gemfile` for this gem and remove that in the next step:
40
+
41
+ ```ruby
42
+ group :build do
43
+ gem 'cleanup_vendor'
44
+ end
45
+ ```
46
+
47
+ Then modify the previous command to something like this:
48
+
49
+ ```Dockerfile
50
+ RUN bundle install --deployment --frozen --jobs 4 --no-cache --retry 5 --without development test && \
51
+ bundle exec cleanup_vendor --summary && \
52
+ bundle install --deployment --frozen --jobs 4 --no-cache --retry 5 --without build development test && \
53
+ bundle clean --force
54
+ ```
55
+
56
+ If you are using multi-stage builds then you don't need to combine the commands into one `RUN` procedure:
57
+
58
+ ```Dockerfile
59
+ RUN bundle install --deployment --frozen --jobs 4 --no-cache --retry 5 --without development test
60
+ RUN bundle exec cleanup_vendor --summary
61
+ RUN bundle install --deployment --frozen --jobs 4 --no-cache --retry 5 --without build development test
62
+ RUN bundle clean --force
63
+ ```
38
64
 
39
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
65
+ ### Defaults
66
+
67
+ Please consult the [`defaults.yml`](lib/defaults.yml) file to see what files will be removed if the command executed without overrides.
68
+
69
+ Please note that patterns like `**/*.rb` will match every file with `.rb` extension recursively but a pattern like `Makefile` or `*.txt*` will be only applied if there is a gemspec file in that directory.
70
+
71
+ ### Overrides
72
+
73
+ The CLI supports multiple convenient options:
74
+
75
+ ```
76
+ Usage: cleanup_vendor [options]
77
+
78
+ Specific options:
79
+ -v, --[no-]verbose Run verbosely
80
+ -0, --null Print the pathname of the removed file to standard output, followed by an ASCII NUL character (character code 0).
81
+ --dry-run Do not delete files
82
+ -s, --summary Display a summary after execution
83
+ -d, --directory PATTERN Match on directory
84
+ -f, --extension PATTERN Match on file
85
+ -e --exclude pattern Exclude pattern from matching
86
+ -h, --help Show this message
87
+ -V, --version Show version
88
+ ```
89
+
90
+ ### Override Examples
91
+
92
+ This example excludes a file from the Password Strength gem
93
+
94
+ ```
95
+ bundle exec cleanup_vendor --dry-run --verbose -e '**/password_strength*/*/common.txt'
96
+ ```
97
+
98
+ ## Development
40
99
 
41
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
100
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
42
101
 
43
102
  ## Contributing
44
103
 
@@ -23,11 +23,14 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.17'
26
+ spec.required_ruby_version = '>= 2.5'
27
+
28
+ spec.add_development_dependency 'bundler', '~> 2.1'
27
29
  spec.add_development_dependency 'gem-release', '~> 2.1'
28
30
  spec.add_development_dependency 'pry-byebug', '~> 3.8'
29
31
  spec.add_development_dependency 'pry-doc', '~> 1.0'
30
32
  spec.add_development_dependency 'rspec', '~> 3.0'
31
- spec.add_development_dependency 'rubocop', '~> 0.80.1'
32
- spec.add_development_dependency 'simplecov', '~> 0.18.5'
33
+ spec.add_development_dependency 'rubocop', '~> 1.24.1'
34
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.0', '>= 2.0.1'
35
+ spec.add_development_dependency 'simplecov', '= 0.21.2'
33
36
  end
data/exe/cleanup_vendor CHANGED
@@ -29,19 +29,19 @@ opt_parser = OptionParser.new do |opts|
29
29
  options[:summary] = s
30
30
  end
31
31
 
32
- opts.on('-d', '--directory DIR', 'Match on this directory') do |dir|
32
+ opts.on('-d', '--directory PATTERN', 'Match on directory') do |pattern|
33
33
  options[:directories] ||= []
34
- options[:directories] << dir
34
+ options[:directories] << pattern
35
35
  end
36
36
 
37
- opts.on('-x', '--extension EXT', 'Match on extension') do |ext|
38
- options[:extensions] ||= []
39
- options[:extensions] << ext
37
+ opts.on('-f', '--extension PATTERN', 'Match on file') do |pattern|
38
+ options[:files] ||= []
39
+ options[:files] << pattern
40
40
  end
41
41
 
42
- opts.on('-f', '--file FILE', 'Match on these filenames') do |file|
43
- options[:filenames] ||= []
44
- options[:filenames] << file
42
+ opts.on('-e', '--exclude PATTERN', 'Exclude pattern from matching') do |pattern|
43
+ options[:exclude] ||= []
44
+ options[:exclude] << pattern
45
45
  end
46
46
 
47
47
  opts.on_tail('-h', '--help', 'Show this message') do
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pathname'
4
+
5
+ module CleanupVendor
6
+ class Path < ::Pathname
7
+ def recursive_entries
8
+ return to_enum(:recursive_entries) unless block_given?
9
+
10
+ glob('**/*', File::FNM_DOTMATCH) do |path|
11
+ yield(Path.new(path)) unless path == self
12
+ end
13
+ end
14
+
15
+ def match?(patterns)
16
+ patterns.any? do |p|
17
+ p.eql?(self) ||
18
+ p.start_with?('**') && fnmatch?(p, File::FNM_EXTGLOB) ||
19
+ basename.fnmatch?(p, File::FNM_EXTGLOB) && gem_level?
20
+ end
21
+ end
22
+
23
+ def gem_level?
24
+ @gem_level ||= parent.glob('*.gemspec').any?
25
+ end
26
+
27
+ def include?(enum)
28
+ descend.any? { |p| enum.include?(p) }
29
+ end
30
+
31
+ def summary
32
+ entries = [self] + recursive_entries.to_a
33
+ entries.map(&:stat)
34
+ end
35
+ end
36
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CleanupVendor
4
- VERSION = '0.3.0'
4
+ VERSION = '0.6.1'
5
5
  end
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pathname'
3
+ require 'fileutils'
4
4
  require 'yaml'
5
+ require 'set'
5
6
 
6
7
  require 'cleanup_vendor/version'
8
+ require 'cleanup_vendor/path'
7
9
 
8
10
  module CleanupVendor
9
11
  class Error < StandardError; end
@@ -16,7 +18,7 @@ module CleanupVendor
16
18
  summary = []
17
19
 
18
20
  filter(dir, DEFAULTS.merge(opts)) do |p|
19
- summary << collect_summary(p) if opts[:summary]
21
+ summary << p.summary if opts[:summary]
20
22
 
21
23
  print_verbose(p) if opts[:verbose]
22
24
  print_path(p) if opts[:print0]
@@ -27,72 +29,36 @@ module CleanupVendor
27
29
  print_summary(summary) if opts[:summary]
28
30
  end
29
31
 
32
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
30
33
  def filter(dir, opts = {})
31
34
  raise Error, 'Not a directory' unless File.directory?(dir.to_s)
32
35
  return to_enum(:filter, dir, opts) unless block_given?
33
36
 
34
- file_opts, dir_opts = get_options(opts)
35
- filtered = Set.new
37
+ files, directories, filtered, exclude = get_options(opts)
36
38
 
37
- dir_entries(dir) do |path|
38
- next if skip_path?(path, filtered)
39
- next unless match_file?(path, file_opts) || match_directory?(path, dir_opts)
39
+ Path.new(dir).recursive_entries do |path|
40
+ next if path.match?(exclude)
41
+ next if path.include?(filtered)
42
+ next unless path.file? && path.match?(files) || path.directory? && path.match?(directories)
40
43
 
41
44
  filtered << path
42
45
  yield(path)
43
46
  end
44
47
  end
45
-
46
- def skip_path?(path, filtered)
47
- path.basename.to_s == '.' || path.descend.any? { |p| filtered.include?(p) }
48
- end
49
- private :skip_path?
50
-
51
- def match_file?(path, filenames: [], extensions: [])
52
- return unless path.file?
53
-
54
- filenames.include?(path.basename.to_s) || extensions.include?(path.extname.delete('.'))
55
- end
56
- private :match_file?
57
-
58
- def match_directory?(path, directories: [], top_level_directories: [])
59
- return unless path.directory?
60
-
61
- basename = path.basename.to_s
62
- directories.include?(basename) || top_level_directories.include?(basename) && path.parent.glob('*.gemspec').any?
63
- end
64
- private :match_directory?
48
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
65
49
 
66
50
  def get_options(options)
67
- file_opts = transform_options(options, :filenames, :extensions)
68
- dir_opts = transform_options(options, :directories, :top_level_directories)
69
- [file_opts, dir_opts]
70
- end
71
- private :get_options
72
-
73
- def transform_options(options, *keys)
74
- options.slice(*keys).transform_values do |v|
51
+ options.values_at(:files, :directories, :filtered, :exclude).map do |v|
75
52
  (v || []).to_set
76
53
  end
77
54
  end
78
- private :transform_options
79
-
80
- def dir_entries(dir, &block)
81
- Pathname.new(dir).glob('**/*', File::FNM_DOTMATCH, &block)
82
- end
83
- private :dir_entries
55
+ private :get_options
84
56
 
85
57
  def format_summary(prefix, number)
86
58
  "\t#{prefix}\t#{number.to_s.rjust(20)}"
87
59
  end
88
60
  private :format_summary
89
61
 
90
- def collect_summary(path)
91
- files = path.file? ? [path] : dir_entries(path).reject { |p| p.basename.to_s == '.' }
92
- files.map(&:stat)
93
- end
94
- private :collect_summary
95
-
96
62
  def print_verbose(path)
97
63
  $stderr.puts "Removing #{path}..."
98
64
  end
data/lib/defaults.yml CHANGED
@@ -1,54 +1,32 @@
1
- extensions:
2
- - c
3
- - cpp
4
- - gcov
5
- - gem
6
- - h
7
- - hpp
8
- - java
9
- - log
10
- - markdown
11
- - md
12
- - mk
13
- - o
14
- - orig
15
- - rdoc
16
- - txt
17
- filenames:
18
- - .DS_Store
19
- - .appveyor.yml
20
- - .byebug_history
21
- - .codeclimate.yml
22
- - .dockerignore
23
- - .gitignore
24
- - .gitkeep
25
- - .gitmodules
26
- - .hound.yml
27
- - .keep
28
- - .npmignore
29
- - .rspec
30
- - .rspec_status
31
- - .rubocop.yml
32
- - .ruby-gemset
33
- - .ruby-version
34
- - .rvmrc
35
- - .travis.yml
36
- - .yardopts
37
- - CHANGELOG
38
- - LICENSE
39
- - MIT-LICENSE
40
- - Makefile
41
- - NEWS
42
- - README
43
- - TAGS
44
- - TODO
45
- - gem_make.out
46
- top_level_directories:
47
- - spec
48
1
  directories:
49
- - .circleci
50
- - .config
51
- - .git
52
- - .github
53
- - .idea
54
- - .yardoc
2
+ - "**/.circleci"
3
+ - "**/.config"
4
+ - "**/.idea"
5
+ - "**/.yardoc"
6
+ - "**/.{git,github}"
7
+ - "**/.{npm,yarn}"
8
+ - "Gemfile"
9
+ - "Rakefile"
10
+ - "coverage"
11
+ - "spec"
12
+ - "test"
13
+ files:
14
+ - "**/.DS_Store"
15
+ - "**/*.{c,cpp,h,hpp,java,log,markdown,md,mk,o,orig,rdoc,txt}"
16
+ - "**/gem_make.out"
17
+ - "**/Makefile"
18
+ - "**/TAGS"
19
+ - "**/*.{gcov,gem}"
20
+ - "**/*.{log,markdown,md,rdoc,txt,yardopts}"
21
+ - "**/*.{bak,orig}"
22
+ - "**/{CHANGELOG,CHANGES,LICENSE,MIT-LICENSE,NEWS,README,TODO}"
23
+ - "**/.{gitkeep,gitignore,gitmodules}"
24
+ - "**/.keep"
25
+ - "**/{Dockerfile,.dockerignore}"
26
+ - "**/Guardfile"
27
+ - "**/.{appveyor,codeclimate,hound,travis}.yml"
28
+ - "**/.{ruby-gemset,ruby-version,rvm}"
29
+ - "**/.{rspec,rspec_status}"
30
+ - "**/.npmignore"
31
+ - "**/.rubocop.yml"
32
+ - "**/.byebug_history"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cleanup_vendor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - KARASZI István
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2022-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.17'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gem-release
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,48 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.80.1
89
+ version: 1.24.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.80.1
96
+ version: 1.24.1
97
97
  - !ruby/object:Gem::Dependency
98
- name: simplecov
98
+ name: rubocop-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.18.5
103
+ version: '2.0'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 2.0.1
104
107
  type: :development
105
108
  prerelease: false
106
109
  version_requirements: !ruby/object:Gem::Requirement
107
110
  requirements:
108
111
  - - "~>"
109
112
  - !ruby/object:Gem::Version
110
- version: 0.18.5
113
+ version: '2.0'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 2.0.1
117
+ - !ruby/object:Gem::Dependency
118
+ name: simplecov
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - '='
122
+ - !ruby/object:Gem::Version
123
+ version: 0.21.2
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - '='
129
+ - !ruby/object:Gem::Version
130
+ version: 0.21.2
111
131
  description: Removes unnecessary files which are not required in production environment.
112
132
  email:
113
133
  - github@spam.raszi.hu
@@ -116,10 +136,11 @@ executables:
116
136
  extensions: []
117
137
  extra_rdoc_files: []
118
138
  files:
139
+ - ".github/dependabot.yml"
140
+ - ".github/workflows/ruby.yml"
119
141
  - ".gitignore"
120
142
  - ".rspec"
121
143
  - ".rubocop.yml"
122
- - ".travis.yml"
123
144
  - Gemfile
124
145
  - Gemfile.lock
125
146
  - LICENSE.txt
@@ -129,13 +150,14 @@ files:
129
150
  - cleanup_vendor.gemspec
130
151
  - exe/cleanup_vendor
131
152
  - lib/cleanup_vendor.rb
153
+ - lib/cleanup_vendor/path.rb
132
154
  - lib/cleanup_vendor/version.rb
133
155
  - lib/defaults.yml
134
156
  homepage: https://github.com/raszi/cleanup_vendor
135
157
  licenses:
136
158
  - MIT
137
159
  metadata: {}
138
- post_install_message:
160
+ post_install_message:
139
161
  rdoc_options: []
140
162
  require_paths:
141
163
  - lib
@@ -143,15 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
165
  requirements:
144
166
  - - ">="
145
167
  - !ruby/object:Gem::Version
146
- version: '0'
168
+ version: '2.5'
147
169
  required_rubygems_version: !ruby/object:Gem::Requirement
148
170
  requirements:
149
171
  - - ">="
150
172
  - !ruby/object:Gem::Version
151
173
  version: '0'
152
174
  requirements: []
153
- rubygems_version: 3.0.8
154
- signing_key:
175
+ rubygems_version: 3.2.32
176
+ signing_key:
155
177
  specification_version: 4
156
178
  summary: This gem helps to cleanup vendor directory
157
179
  test_files: []
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- env:
2
- global:
3
- - CC_TEST_REPORTER_ID=223eccd52e0685221f32d788a5847a98d00c00688c3eebfa714ee95887d40f20
4
- - COVERAGE=on
5
- language: ruby
6
- rvm:
7
- - 2.5.0
8
- - 2.6.0
9
- before_install:
10
- - gem update --system
11
- - bundle update --bundler
12
- before_script:
13
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
14
- - chmod +x ./cc-test-reporter
15
- - ./cc-test-reporter before-build
16
- script:
17
- - bundle exec rspec
18
- - bundle exec rubocop
19
- after_script:
20
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT