hoc 0.9.0 → 0.10.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: 0ec7266a7d2e15dece90873097b71041dcefad0c7f18c845048198aae3aeb24a
4
- data.tar.gz: 03a2e3d738372b6b205e640cec6bff1579235036a388bc8d1c96d323b366c109
3
+ metadata.gz: dbe19710315f3c5fb3694392ba6d4ea98af1e7b93c236c06bffbdd6d97fa8ffe
4
+ data.tar.gz: c2952fbe694ec63726ef0f04b9ae1d74c142bd8df31dbd445d03220af9ba7e79
5
5
  SHA512:
6
- metadata.gz: 743aa2521c968908ca181618f9f6479a9b251ab16a897c9e8f9ac76aa8c9e94f1a7b415c5d9645aa60c5a5e3a6688a92ac5c2db4e2e53e13dbf6f8b0e3f90168
7
- data.tar.gz: affe8972f8e40d92419b8972ed0b7392ee12bfafc138abc99d78d7046f60d59683cb00ce993d7bfcc841b65f20b75627076a662691cebd6265bb8d42e348fbc6
6
+ metadata.gz: 2725602c91b9702b37f5a34c6a891f598d7d5195bd5f301b96197be6cc86bcca58e17c19af61bc62cf613387b0b08a315eb29788ab2ae58fed838f094fe00c82
7
+ data.tar.gz: df30349fd8ced4df84a2fbd9ffefc3b22a6095576e8b36fdabe81b1b72d5d60d278f119d67f0124321f47aa0a853bee5f1f40b20242acc655988235de4eb6f53
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: codecov
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ jobs:
8
+ codecov:
9
+ runs-on: ubuntu-20.04
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-ruby@v1
13
+ with:
14
+ ruby-version: 3.0
15
+ - run: sudo apt install -y diffstat
16
+ - run: bundle update
17
+ - run: bundle exec rake
18
+ - uses: codecov/codecov-action@v3
19
+ with:
20
+ file: coverage/.resultset.json
21
+ fail_ci_if_error: true
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: pdd
3
+ "on":
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ pdd:
12
+ runs-on: ubuntu-20.04
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: g4s8/pdd-action@master
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: rake
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test:
12
+ name: test
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-20.04]
16
+ ruby: [3.0, 2.7]
17
+ runs-on: ${{ matrix.os }}
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ - run: sudo apt install -y diffstat
24
+ - run: bundle update
25
+ - run: bundle exec rake
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: xcop
3
+ "on":
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ xcop:
12
+ runs-on: ubuntu-20.04
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: g4s8/xcop-action@master
16
+ with:
17
+ files: '**/*.xml'
data/.rubocop.yml CHANGED
@@ -1,7 +1,13 @@
1
1
  AllCops:
2
+ Exclude:
3
+ - 'assets/**/*'
2
4
  DisplayCopNames: true
3
5
  TargetRubyVersion: 2.2.2
6
+ SuggestExtensions: false
7
+ NewCops: enable
4
8
 
9
+ Layout/EndOfLine:
10
+ EnforcedStyle: lf
5
11
  Metrics/MethodLength:
6
12
  Max: 30
7
13
  Metrics/AbcSize:
data/.rultor.yml CHANGED
@@ -1,10 +1,10 @@
1
+ docker:
2
+ image: yegor256/rultor-image:1.19.0
1
3
  assets:
2
4
  rubygems.yml: yegor256/home#assets/rubygems.yml
3
- s3cfg: yegor256/home#assets/s3cfg
4
5
  install: |
5
- export GEM_HOME=~/.ruby
6
- export GEM_PATH=$GEM_HOME:$GEM_PATH
7
- sudo gem install pdd -v 0.20.5
6
+ pdd -f /dev/null
7
+ sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
8
8
  sudo apt-get update --fix-missing
9
9
  sudo apt-get install -y subversion diffstat
10
10
  sudo apt-get install -y software-properties-common
@@ -12,11 +12,6 @@ install: |
12
12
  sudo apt-get update --fix-missing
13
13
  sudo apt-get remove -y git
14
14
  sudo apt-get install -y git
15
- bundle install
16
- deploy:
17
- script: |
18
- echo There is nothing to deploy
19
- exit 1
20
15
  merge:
21
16
  script: |
22
17
  bundle exec rake
data/.simplecov CHANGED
@@ -1,7 +1,5 @@
1
- # encoding: utf-8
2
1
  #
3
- # Copyright (c) 2014-2019 Teamed.io
4
- # Copyright (c) 2014-2019 Yegor Bugayenko
2
+ # Copyright (c) 2014-2023 Yegor Bugayenko
5
3
  #
6
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
5
  # of this software and associated documentation files (the 'Software'), to deal
@@ -23,13 +21,13 @@
23
21
 
24
22
  require 'coveralls'
25
23
 
26
- if Gem.win_platform? then
24
+ if Gem.win_platform?
27
25
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
28
26
  SimpleCov::Formatter::HTMLFormatter
29
27
  ]
30
28
  SimpleCov.start do
31
- add_filter "/test/"
32
- add_filter "/features/"
29
+ add_filter '/test/'
30
+ add_filter '/features/'
33
31
  end
34
32
  else
35
33
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
@@ -37,8 +35,8 @@ else
37
35
  Coveralls::SimpleCov::Formatter
38
36
  ]
39
37
  SimpleCov.start do
40
- add_filter "/test/"
41
- add_filter "/features/"
38
+ add_filter '/test/'
39
+ add_filter '/features/'
42
40
  minimum_coverage 100
43
41
  end
44
42
  end
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -20,3 +20,11 @@
20
20
 
21
21
  source 'https://rubygems.org'
22
22
  gemspec
23
+
24
+ gem 'cucumber', '8.0.0', require: false
25
+ gem 'minitest', '5.18.0', require: false
26
+ gem 'rake', '13.0.6', require: false
27
+ gem 'rdoc', '6.5.0', require: false
28
+ gem 'rubocop', '1.51.0', require: false
29
+ gem 'rubocop-rspec', '2.22.0', require: false
30
+ gem 'simplecov', '0.22.0', require: false
data/LICENSE.txt CHANGED
@@ -1,7 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014-2019 Teamed.io
4
- Copyright (c) 2014-2019 Yegor Bugayenko
3
+ Copyright (c) 2014-2023 Yegor Bugayenko
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
6
  of this software and associated documentation files (the 'Software'), to deal
data/README.md CHANGED
@@ -1,14 +1,11 @@
1
1
  [![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
2
- [![Managed by Zerocracy](https://www.0crat.com/badge/C3RFVLU72.svg)](https://www.0crat.com/p/C3RFVLU72)
3
2
  [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/hoc)](http://www.rultor.com/p/yegor256/hoc)
4
3
  [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
5
4
 
6
- [![Build Status](https://travis-ci.org/yegor256/hoc.svg)](https://travis-ci.org/yegor256/hoc)
7
- [![Build status](https://ci.appveyor.com/api/projects/status/pb7us019469mftui?svg=true)](https://ci.appveyor.com/project/yegor256/hoc)
5
+ [![rake](https://github.com/yegor256/hoc/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/hoc/actions/workflows/rake.yml)
8
6
  [![Gem Version](https://badge.fury.io/rb/hoc.svg)](http://badge.fury.io/rb/hoc)
9
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/4302208cf578d101143e/maintainability)](https://codeclimate.com/github/yegor256/hoc/maintainability)
10
8
  [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/hoc.svg)](https://codecov.io/github/yegor256/hoc?branch=master)
11
-
12
9
  [![Hits-of-Code](https://hitsofcode.com/github/yegor256/hoc)](https://hitsofcode.com/view/github/yegor256/hoc)
13
10
 
14
11
  It is a command line tool to calculate Hits-of-Code metric
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
data/bin/hoc CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2014-2019 Yegor Bugayenko
3
+ # Copyright (c) 2014-2023 Yegor Bugayenko
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the 'Software'), to deal
@@ -20,7 +20,7 @@
20
20
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  # SOFTWARE.
22
22
 
23
- STDOUT.sync = true
23
+ $stdout.sync = true
24
24
 
25
25
  require 'hoc'
26
26
  require 'slop'
@@ -7,7 +7,7 @@ Feature: Git repo processing
7
7
  Given I run bash:
8
8
  """
9
9
  git init --quiet .
10
- git config user.email test@teamed.io
10
+ git config user.email test@zerocracy.com
11
11
  git config user.name test
12
12
  echo 'hello, world!' > test.txt
13
13
  git add test.txt
@@ -7,7 +7,7 @@ Feature: Exclude dirs from Git counting
7
7
  Given I run bash:
8
8
  """
9
9
  git init --quiet .
10
- git config user.email test@teamed.io
10
+ git config user.email test@zerocracy.com
11
11
  git config user.name test
12
12
  mkdir x
13
13
  echo 'hello, world!' > x/invalid.txt
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -26,13 +26,13 @@ require 'English'
26
26
  Before do
27
27
  @cwd = Dir.pwd
28
28
  @dir = Dir.mktmpdir('test')
29
- FileUtils.mkdir_p(@dir) unless File.exist?(@dir)
29
+ FileUtils.mkdir_p(@dir)
30
30
  Dir.chdir(@dir)
31
31
  end
32
32
 
33
33
  After do
34
34
  Dir.chdir(@cwd)
35
- FileUtils.rm_rf(@dir) if File.exist?(@dir)
35
+ FileUtils.rm_rf(@dir)
36
36
  end
37
37
 
38
38
  Given(/^It is Unix$/) do
@@ -58,9 +58,7 @@ When(%r{^I run bin/hoc with "([^"]*)"$}) do |arg|
58
58
  end
59
59
 
60
60
  Then(/^Stdout contains "([^"]*)"$/) do |txt|
61
- unless @stdout.include?(txt)
62
- raise "STDOUT doesn't contain '#{txt}':\n\n--------\n#{@stdout}\n--------\n"
63
- end
61
+ raise "STDOUT doesn't contain '#{txt}':\n\n--------\n#{@stdout}\n--------\n" unless @stdout.include?(txt)
64
62
  end
65
63
 
66
64
  Then(/^Exit code is zero$/) do
@@ -69,7 +67,5 @@ end
69
67
 
70
68
  Given(/^I have a "([^"]*)" file with content:$/) do |file, text|
71
69
  FileUtils.mkdir_p(File.dirname(file)) unless File.exist?(file)
72
- File.open(file, 'w') do |f|
73
- f.write(text)
74
- end
70
+ File.write(file, text)
75
71
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
data/hoc.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -23,11 +23,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
23
23
  require 'hoc/version'
24
24
 
25
25
  Gem::Specification.new do |s|
26
- s.specification_version = 2 if s.respond_to? :specification_version=
27
- if s.respond_to? :required_rubygems_version=
28
- s.required_rubygems_version = Gem::Requirement.new('>= 0')
29
- end
30
- s.rubygems_version = '2.2.2'
26
+ s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
31
27
  s.required_ruby_version = '>= 2.2.2'
32
28
  s.name = 'hoc'
33
29
  s.version = HOC::VERSION
@@ -39,16 +35,8 @@ Gem::Specification.new do |s|
39
35
  s.homepage = 'http://github.com/teamed/hoc'
40
36
  s.files = `git ls-files`.split($RS)
41
37
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
42
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
43
38
  s.rdoc_options = ['--charset=UTF-8']
44
39
  s.extra_rdoc_files = %w[README.md LICENSE.txt]
45
40
  s.add_runtime_dependency 'slop', '~>4.4'
46
- s.add_development_dependency 'codecov', '0.1.10'
47
- s.add_development_dependency 'cucumber', '1.3.11'
48
- s.add_development_dependency 'minitest', '5.4'
49
- s.add_development_dependency 'rake', '12.0.0'
50
- s.add_development_dependency 'rdoc', '3.12.1'
51
- s.add_development_dependency 'rspec-rails', '2.13'
52
- s.add_development_dependency 'rubocop', '0.61.0'
53
- s.add_development_dependency 'rubocop-rspec', '1.5.1'
41
+ s.metadata['rubygems_mfa_required'] = 'true'
54
42
  end
data/lib/hoc/git.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
data/lib/hoc/hits.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
data/lib/hoc/svn.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
data/lib/hoc/version.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -20,8 +20,8 @@
20
20
 
21
21
  # HOC main module.
22
22
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
23
- # Copyright:: Copyright (c) 2014-2019 Yegor Bugayenko
23
+ # Copyright:: Copyright (c) 2014-2023 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module HOC
26
- VERSION = '0.9.0'.freeze
26
+ VERSION = '0.10.0'.freeze
27
27
  end
data/lib/hoc.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -23,7 +23,7 @@ require 'hoc/svn'
23
23
 
24
24
  # HOC main module.
25
25
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
26
- # Copyright:: Copyright (c) 2014-2019 Yegor Bugayenko
26
+ # Copyright:: Copyright (c) 2014-2023 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module HOC
29
29
  # Code base abstraction
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
data/test/test__helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -18,13 +18,9 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
  # SOFTWARE.
20
20
 
21
- STDOUT.sync = true
21
+ $stdout.sync = true
22
22
 
23
23
  require 'simplecov'
24
24
  SimpleCov.start
25
- if ENV['CI'] == 'true'
26
- require 'codecov'
27
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
28
- end
29
25
 
30
26
  require 'hoc'
data/test/test_git.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -24,7 +24,7 @@ require 'tmpdir'
24
24
 
25
25
  # Git test.
26
26
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
27
- # Copyright:: Copyright (c) 2014-2019 Yegor Bugayenko
27
+ # Copyright:: Copyright (c) 2014-2023 Yegor Bugayenko
28
28
  # License:: MIT
29
29
  class TestGit < Minitest::Test
30
30
  def test_parsing
@@ -32,9 +32,10 @@ class TestGit < Minitest::Test
32
32
  Dir.mktmpdir 'test' do |dir|
33
33
  raise unless system("
34
34
  set -e
35
+ set -x
35
36
  cd '#{dir}'
36
37
  git init --quiet .
37
- git config user.email test@teamed.io
38
+ git config user.email test@zerocracy.com
38
39
  git config user.name test
39
40
  echo 'hello, world!' > test.txt
40
41
  git add test.txt
@@ -42,6 +43,7 @@ class TestGit < Minitest::Test
42
43
  echo 'good bye, world!' > test.txt
43
44
  git commit -qam 'modify line'
44
45
  rm test.txt
46
+ git add test.txt
45
47
  git commit -qam 'delete line'
46
48
  ")
47
49
  hits = HOC::Git.new(dir, [], '', '2000-01-01',
@@ -73,7 +75,7 @@ class TestGit < Minitest::Test
73
75
  set -e
74
76
  cd '#{dir}'
75
77
  git init --quiet .
76
- git config user.email test@teamed.io
78
+ git config user.email test@zerocracy.com
77
79
  git config user.name test
78
80
  dd if=/dev/urandom of=test.dat bs=1 count=65536
79
81
  git add test.dat
data/test/test_hoc.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -25,7 +25,7 @@ require 'slop'
25
25
 
26
26
  # HOC main module test.
27
27
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
28
- # Copyright:: Copyright (c) 2014-2019 Yegor Bugayenko
28
+ # Copyright:: Copyright (c) 2014-2023 Yegor Bugayenko
29
29
  # License:: MIT
30
30
  class TestHOC < Minitest::Test
31
31
  def test_basic_git
@@ -35,7 +35,7 @@ class TestHOC < Minitest::Test
35
35
  set -e
36
36
  cd '#{dir}'
37
37
  git init .
38
- git config user.email test@teamed.io
38
+ git config user.email test@zerocracy.com
39
39
  git config user.name test
40
40
  echo 'hello, world!' > test.txt
41
41
  git add test.txt
data/test/test_svn.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2014-2019 Yegor Bugayenko
1
+ # Copyright (c) 2014-2023 Yegor Bugayenko
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the 'Software'), to deal
@@ -24,7 +24,7 @@ require 'tmpdir'
24
24
 
25
25
  # Svn test.
26
26
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
27
- # Copyright:: Copyright (c) 2014-2019 Yegor Bugayenko
27
+ # Copyright:: Copyright (c) 2014-2023 Yegor Bugayenko
28
28
  # License:: MIT
29
29
  class TestSvn < Minitest::Test
30
30
  def test_parsing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -24,118 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.4'
27
- - !ruby/object:Gem::Dependency
28
- name: codecov
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '='
32
- - !ruby/object:Gem::Version
33
- version: 0.1.10
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '='
39
- - !ruby/object:Gem::Version
40
- version: 0.1.10
41
- - !ruby/object:Gem::Dependency
42
- name: cucumber
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 1.3.11
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
54
- version: 1.3.11
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: '5.4'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '='
67
- - !ruby/object:Gem::Version
68
- version: '5.4'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '='
74
- - !ruby/object:Gem::Version
75
- version: 12.0.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '='
81
- - !ruby/object:Gem::Version
82
- version: 12.0.0
83
- - !ruby/object:Gem::Dependency
84
- name: rdoc
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '='
88
- - !ruby/object:Gem::Version
89
- version: 3.12.1
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '='
95
- - !ruby/object:Gem::Version
96
- version: 3.12.1
97
- - !ruby/object:Gem::Dependency
98
- name: rspec-rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: '2.13'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: '2.13'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 0.61.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 0.61.0
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop-rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 1.5.1
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 1.5.1
139
27
  description: Collects information about hits-of-code
140
28
  email: yegor256@gmail.com
141
29
  executables:
@@ -147,8 +35,10 @@ extra_rdoc_files:
147
35
  files:
148
36
  - ".0pdd.yml"
149
37
  - ".gitattributes"
150
- - ".github/ISSUE_TEMPLATE.md"
151
- - ".github/PULL_REQUEST_TEMPLATE.md"
38
+ - ".github/workflows/codecov.yml"
39
+ - ".github/workflows/pdd.yml"
40
+ - ".github/workflows/rake.yml"
41
+ - ".github/workflows/xcop.yml"
152
42
  - ".gitignore"
153
43
  - ".pdd"
154
44
  - ".rubocop.yml"
@@ -176,6 +66,7 @@ files:
176
66
  - lib/hoc/hits.rb
177
67
  - lib/hoc/svn.rb
178
68
  - lib/hoc/version.rb
69
+ - renovate.json
179
70
  - test/test__helper.rb
180
71
  - test/test_git.rb
181
72
  - test/test_hoc.rb
@@ -183,7 +74,8 @@ files:
183
74
  homepage: http://github.com/teamed/hoc
184
75
  licenses:
185
76
  - MIT
186
- metadata: {}
77
+ metadata:
78
+ rubygems_mfa_required: 'true'
187
79
  post_install_message:
188
80
  rdoc_options:
189
81
  - "--charset=UTF-8"
@@ -200,20 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
92
  - !ruby/object:Gem::Version
201
93
  version: '0'
202
94
  requirements: []
203
- rubygems_version: 3.0.1
95
+ rubygems_version: 3.2.15
204
96
  signing_key:
205
- specification_version: 2
97
+ specification_version: 4
206
98
  summary: Hits Of Code
207
- test_files:
208
- - features/cli.feature
209
- - features/gem_package.feature
210
- - features/git_basics.feature
211
- - features/git_excludes.feature
212
- - features/step_definitions/steps.rb
213
- - features/support/env.rb
214
- - features/svn_basics.feature
215
- - features/uses_config.feature
216
- - test/test__helper.rb
217
- - test/test_git.rb
218
- - test/test_hoc.rb
219
- - test/test_svn.rb
99
+ test_files: []
@@ -1,12 +0,0 @@
1
- Make sure the title of the issue explains the problem you are having. Also, the description of the issue must clearly explain what is broken, not what you want us to implement. Go through this checklist and make sure you answer "YES" to all points:
2
-
3
- - You have all pre-requisites listed in README.md installed
4
- - You are sure that you are not reporting a duplicate (search all issues)
5
- - You say "is broken" or "doesn't work" in the title
6
- - You tell us what you are trying to do
7
- - You explain the results you are getting
8
- - You suggest an alternative result you would like to see
9
-
10
- This article will help you understand what we are looking for: http://www.yegor256.com/2014/11/24/principles-of-bug-tracking.html
11
-
12
- Thank you for your contribution!
@@ -1,11 +0,0 @@
1
- Many thanks for your contribution, we truly appreciate it. We will appreciate it even more, if you make sure that you can say "YES" to each point in this short checklist:
2
-
3
- - You made a small amount of changes (less than 100 lines, less than 10 files)
4
- - You made changes related to only one bug (create separate PRs for separate problems)
5
- - You are ready to defend your changes (there will be a code review)
6
- - You don't touch what you don't understand
7
- - You ran the build locally and it passed
8
-
9
- This article will help you understand what we are looking for: http://www.yegor256.com/2015/02/09/serious-code-reviewer.html
10
-
11
- Thank you for your contribution!