cleanup_vendor 0.2.0.pre.1 → 0.6.0

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: cb781c69ce55d187d0da2a212783dcef2910c8b181334651b6c95691db5fce7f
4
- data.tar.gz: a0649cfb8c5a8b6d2c447ff5ae8d0de9c1e48f3b436f6a5dbb27b97ffc74c1ba
3
+ metadata.gz: 5d403417bbae7a38dd4971b59ed763c38546f7e70421932772726d4fb5d17e81
4
+ data.tar.gz: bca191976404a154e6ea744b1c4b534cbfbeb900f2145202877a56f9027b4a17
5
5
  SHA512:
6
- metadata.gz: 39741ff65557e145d2d453366a5c84f72ddc7942b47a793cdb491006e74cc6fd09cd4e21ea77391431742b1203b503b4511e21a5c1593ef41925c244dd90f401
7
- data.tar.gz: 299f334c5b4e124497850edb6a86a4f5edf0a8a365a75f13b5a112bfdf65aeadb01599579c25429179676d88e297554c7f1bbf8d47871d7d338a97431633cb96
6
+ metadata.gz: db9609bd86a140158be40238a6c155ef2e8bd24a02c65bdea6f6d5c7570ee707727c590bc641707a690cf71f55734d894639f37c18e06ff6f72c98cc555ab2ee
7
+ data.tar.gz: 6a30da6486d33ca88bd8eaa545547cfae369c7dcd34c81fadf7794b54f4513242c37da8829aa0b486cce460f10b3ae7fed47b8308fde79ecc9d647b412063c0b
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "daily"
@@ -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
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@v2.7.5
37
+ env:
38
+ COVERAGE: on
39
+ CC_TEST_REPORTER_ID: 223eccd52e0685221f32d788a5847a98d00c00688c3eebfa714ee95887d40f20
40
+ with:
41
+ coverageCommand: bundle exec rspec
@@ -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
@@ -1,74 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cleanup_vendor (0.1.0)
4
+ cleanup_vendor (0.6.0)
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.1)
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.1)
15
+ method_source (1.0.0)
16
+ parallel (1.20.1)
17
+ parser (3.0.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.1.0)
27
26
  pry (~> 0.11)
28
27
  yard (~> 0.9.11)
29
28
  rainbow (3.0.0)
29
+ regexp_parser (2.0.3)
30
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.0)
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.8.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.2.0, < 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.4.0)
54
+ parser (>= 2.7.1.5)
55
+ rubocop-rspec (2.1.0)
56
+ rubocop (~> 1.0)
57
+ rubocop-ast (>= 1.1.0)
58
+ ruby-progressbar (1.11.0)
59
+ simplecov (0.21.2)
54
60
  docile (~> 1.1)
55
61
  simplecov-html (~> 0.11)
56
- simplecov-html (0.12.2)
57
- unicode-display_width (1.6.1)
58
- yard (0.9.24)
62
+ simplecov_json_formatter (~> 0.1)
63
+ simplecov-html (0.12.3)
64
+ simplecov_json_formatter (0.1.2)
65
+ unicode-display_width (2.0.0)
66
+ yard (0.9.25)
59
67
 
60
68
  PLATFORMS
61
69
  ruby
62
70
 
63
71
  DEPENDENCIES
64
- bundler (~> 1.17)
72
+ bundler (~> 2.1)
65
73
  cleanup_vendor!
66
74
  gem-release (~> 2.1)
67
75
  pry-byebug (~> 3.8)
68
76
  pry-doc (~> 1.0)
69
77
  rspec (~> 3.0)
70
- rubocop (~> 0.80.1)
71
- simplecov (~> 0.18.5)
78
+ rubocop (~> 1.8.0)
79
+ rubocop-rspec (~> 2.0, >= 2.0.1)
80
+ simplecov (= 0.21.2)
72
81
 
73
82
  BUNDLED WITH
74
- 1.17.3
83
+ 2.1.4
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.8.0'
34
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.0', '>= 2.0.1'
35
+ spec.add_development_dependency 'simplecov', '= 0.21.2'
33
36
  end
@@ -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
@@ -1,27 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'fileutils'
4
+ require 'yaml'
5
+
3
6
  require 'cleanup_vendor/version'
7
+ require 'cleanup_vendor/path'
4
8
 
5
9
  module CleanupVendor
6
10
  class Error < StandardError; end
7
11
 
8
- DEFAULTS = {
9
- extensions: %w[c cpp gem h hpp java log md mk o rdoc txt],
10
- filenames: %w[
11
- README Makefile LICENSE CHANGELOG .codeclimate.yml .dockerignore
12
- .gitignore .rubocop.yml .ruby-version .ruby-gemset .rspec .rspec_status
13
- .travis.yml .yardopts
14
- ],
15
- top_level_directories: %w[spec],
16
- directories: %w[.git .github]
17
- }.freeze
12
+ CONFIG_FILE = File.expand_path('defaults.yml', __dir__)
13
+ DEFAULTS = YAML.safe_load(File.binread(CONFIG_FILE)).transform_keys(&:to_sym).freeze
18
14
 
19
15
  class << self
20
16
  def run(dir, opts = {})
21
17
  summary = []
22
18
 
23
19
  filter(dir, DEFAULTS.merge(opts)) do |p|
24
- summary << collect_summary(p) if opts[:summary]
20
+ summary << p.summary if opts[:summary]
25
21
 
26
22
  print_verbose(p) if opts[:verbose]
27
23
  print_path(p) if opts[:print0]
@@ -32,72 +28,36 @@ module CleanupVendor
32
28
  print_summary(summary) if opts[:summary]
33
29
  end
34
30
 
31
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
35
32
  def filter(dir, opts = {})
36
33
  raise Error, 'Not a directory' unless File.directory?(dir.to_s)
37
34
  return to_enum(:filter, dir, opts) unless block_given?
38
35
 
39
- file_opts, dir_opts = get_options(opts)
40
- filtered = Set.new
36
+ files, directories, filtered, exclude = get_options(opts)
41
37
 
42
- dir_entries(dir) do |path|
43
- next if skip_path?(path, filtered)
44
- next unless match_file?(path, file_opts) || match_directory?(path, dir_opts)
38
+ Path.new(dir).recursive_entries do |path|
39
+ next if path.match?(exclude)
40
+ next if path.include?(filtered)
41
+ next unless path.file? && path.match?(files) || path.directory? && path.match?(directories)
45
42
 
46
43
  filtered << path
47
44
  yield(path)
48
45
  end
49
46
  end
50
-
51
- def skip_path?(path, filtered)
52
- path.basename.to_s == '.' || path.descend.any? { |p| filtered.include?(p) }
53
- end
54
- private :skip_path?
55
-
56
- def match_file?(path, filenames: [], extensions: [])
57
- return unless path.file?
58
-
59
- filenames.include?(path.basename.to_s) || extensions.include?(path.extname.delete('.'))
60
- end
61
- private :match_file?
62
-
63
- def match_directory?(path, directories: [], top_level_directories: [])
64
- return unless path.directory?
65
-
66
- basename = path.basename.to_s
67
- directories.include?(basename) || top_level_directories.include?(basename) && path.parent.glob('*.gemspec').any?
68
- end
69
- private :match_directory?
47
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
70
48
 
71
49
  def get_options(options)
72
- file_opts = transform_options(options, :filenames, :extensions)
73
- dir_opts = transform_options(options, :directories, :top_level_directories)
74
- [file_opts, dir_opts]
75
- end
76
- private :get_options
77
-
78
- def transform_options(options, *keys)
79
- options.slice(*keys).transform_values do |v|
50
+ options.values_at(:files, :directories, :filtered, :exclude).map do |v|
80
51
  (v || []).to_set
81
52
  end
82
53
  end
83
- private :transform_options
84
-
85
- def dir_entries(dir, &block)
86
- Pathname.new(dir).glob('**/*', File::FNM_DOTMATCH, &block)
87
- end
88
- private :dir_entries
54
+ private :get_options
89
55
 
90
56
  def format_summary(prefix, number)
91
57
  "\t#{prefix}\t#{number.to_s.rjust(20)}"
92
58
  end
93
59
  private :format_summary
94
60
 
95
- def collect_summary(path)
96
- files = path.file? ? [path] : dir_entries(path).reject { |p| p.basename.to_s == '.' }
97
- files.map(&:stat)
98
- end
99
- private :collect_summary
100
-
101
61
  def print_verbose(path)
102
62
  $stderr.puts "Removing #{path}..."
103
63
  end
@@ -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.2.0.pre.1'
4
+ VERSION = '0.6.0'
5
5
  end
@@ -0,0 +1,32 @@
1
+ directories:
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.2.0.pre.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - KARASZI István
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-14 00:00:00.000000000 Z
11
+ date: 2021-01-27 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.8.0
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.8.0
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,7 +150,9 @@ 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
155
+ - lib/defaults.yml
133
156
  homepage: https://github.com/raszi/cleanup_vendor
134
157
  licenses:
135
158
  - MIT
@@ -142,14 +165,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
165
  requirements:
143
166
  - - ">="
144
167
  - !ruby/object:Gem::Version
145
- version: '0'
168
+ version: '2.5'
146
169
  required_rubygems_version: !ruby/object:Gem::Requirement
147
170
  requirements:
148
- - - ">"
171
+ - - ">="
149
172
  - !ruby/object:Gem::Version
150
- version: 1.3.1
173
+ version: '0'
151
174
  requirements: []
152
- rubygems_version: 3.0.8
175
+ rubygems_version: 3.1.4
153
176
  signing_key:
154
177
  specification_version: 4
155
178
  summary: This gem helps to cleanup vendor directory
@@ -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