hoc 0.8 → 0.8.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
  SHA1:
3
- metadata.gz: 59817ec1af4e198e3781968afd7fceaefa0dd849
4
- data.tar.gz: ee87b4d697449b09a1f8c90d7edecc0d317ccde1
3
+ metadata.gz: 2713e7d60200a7a84de27d7237959a0c4efb8013
4
+ data.tar.gz: c72ecfa6f90f566d7c844c73e8adf66faf0c737e
5
5
  SHA512:
6
- metadata.gz: b4a18fc8b6492e4dd86f97e2054e13dde5431a14b2ea1e621236f908444f4d690f79715ea8261243e0b5fe272de2fdc506b0e9af1e80a421e19798f6db9eef45
7
- data.tar.gz: 79f1efd22363e32ed47055cd0e47dd710d3e44af75dc532ebbd18c80d5ffa6c1fe72f3c93f383e58148fd56a2de3327c6f95d92751f370c7306f56ee351ae3ce
6
+ metadata.gz: cc6058afcab3abcec28a2b7587a67138a128a0a3803774a5dbd859891dbeab0f6f3cb786ba244d5198315a4679e1fa54f6f8dece8a736978a5c7bccd741c586a
7
+ data.tar.gz: d769c392c2ae4d6f6c2857d71a9ebf259ce4d00a0d62dd004a1ee32ec54e6e2ecbb541901dfa0efe01f6fc51dfe5f53de1e837c662575e4db46cb938dd302152
data/.0pdd.yml CHANGED
@@ -3,3 +3,7 @@ errors:
3
3
  # alerts:
4
4
  # github:
5
5
  # - yegor256
6
+
7
+ tags:
8
+ - pdd
9
+ - bug
@@ -0,0 +1,12 @@
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!
@@ -0,0 +1,11 @@
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!
@@ -5,3 +5,5 @@ Metrics/MethodLength:
5
5
  Max: 30
6
6
  Metrics/AbcSize:
7
7
  Max: 30
8
+ Metrics/CyclomaticComplexity:
9
+ Max: 10
@@ -16,7 +16,7 @@ deploy:
16
16
  release:
17
17
  script: |
18
18
  pdd --verbose --file=/dev/null
19
- sudo bundle install
19
+ bundle install
20
20
  rake
21
21
  rm -rf *.gem
22
22
  sed -i "s/1\.0\.snapshot/${tag}/g" lib/hoc/version.rb
data/.simplecov CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -10,16 +10,19 @@ addons:
10
10
  packages:
11
11
  - diffstat
12
12
  install:
13
- - travis_retry sudo apt-get update
13
+ - travis_retry sudo apt-get -y update
14
14
  - travis_retry sudo apt-get remove -y subversion git
15
15
  - travis_retry sudo add-apt-repository "deb http://ppa.launchpad.net/svn/ppa/ubuntu precise main"
16
16
  - travis_retry sudo add-apt-repository -y ppa:git-core/ppa
17
- - travis_retry sudo apt-get update
18
- - travis_retry sudo apt-get install -y subversion git
17
+ - travis_retry sudo apt-get -y update
18
+ - travis_retry sudo apt-get install -y git
19
+ - travis_retry sudo apt-get install -y subversion
19
20
  - travis_retry bundle install
20
21
  - svn --version
21
22
  - git --version
22
23
  - diffstat --version
23
24
  script:
24
25
  - rake
26
+ after_success:
27
+ - "bash <(curl -s https://codecov.io/bash)"
25
28
 
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014-2017 Teamed.io
4
- Copyright (c) 2014-2017 Yegor Bugayenko
3
+ Copyright (c) 2014-2018 Teamed.io
4
+ Copyright (c) 2014-2018 Yegor Bugayenko
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the 'Software'), to deal
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
- [![Made By Teamed.io](http://img.teamed.io/btn.svg)](http://www.teamed.io)
2
- [![DevOps By Rultor.com](http://www.rultor.com/b/teamed/hoc)](http://www.rultor.com/p/teamed/hoc)
3
- [![We recommend RubyMine](http://img.teamed.io/rubymine-recommend.svg)](https://www.jetbrains.com/ruby/)
1
+ [![EO principles respected here](http://www.elegantobjects.org/badge.svg)](http://www.elegantobjects.org)
2
+ [![Managed by Zerocracy](https://www.0crat.com/badge/C3RFVLU72.svg)](https://www.0crat.com/p/C3RFVLU72)
3
+ [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/hoc)](http://www.rultor.com/p/yegor256/hoc)
4
+ [![We recommend RubyMine](http://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
4
5
 
5
- [![Build Status](https://travis-ci.org/teamed/hoc.svg)](https://travis-ci.org/teamed/hoc)
6
+ [![Build Status](https://travis-ci.org/yegor256/hoc.svg)](https://travis-ci.org/yegor256/hoc)
6
7
  [![Build status](https://ci.appveyor.com/api/projects/status/yww1brb4xy80jh11?svg=true)](https://ci.appveyor.com/project/yegor256/hoc)
7
-
8
8
  [![Gem Version](https://badge.fury.io/rb/hoc.svg)](http://badge.fury.io/rb/hoc)
9
- [![Dependency Status](https://gemnasium.com/teamed/hoc.svg)](https://gemnasium.com/teamed/hoc)
10
- [![Code Climate](http://img.shields.io/codeclimate/github/teamed/hoc.svg)](https://codeclimate.com/github/teamed/hoc)
11
- [![Coverage Status](https://coveralls.io/repos/teamed/hoc/badge.svg)](https://coveralls.io/r/teamed/hoc)
9
+ [![Dependency Status](https://gemnasium.com/yegor256/hoc.svg)](https://gemnasium.com/yegor256/hoc)
10
+ [![Code Climate](http://img.shields.io/codeclimate/github/yegor256/hoc.svg)](https://codeclimate.com/github/yegor256/hoc)
11
+ [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/hoc.svg)](https://codecov.io/github/yegor256/hoc?branch=master)
12
12
 
13
13
  It is a command line tool to calculate Hits-of-Code metric
14
14
  in a source code repository (at the moment we support Git 2+ and Subversion 1.7+).
@@ -34,7 +34,7 @@ installed.
34
34
  ## Questions?
35
35
 
36
36
  If you have any questions about the tool, or something doesn't work as expected,
37
- please [submit an issue here](https://github.com/teamed/hoc/issues/new).
37
+ please [submit an issue here](https://github.com/yegor256/hoc/issues/new).
38
38
 
39
39
  ## How to contribute?
40
40
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -8,7 +8,7 @@ branches:
8
8
  - gh-pages
9
9
  os: Windows Server 2012
10
10
  install:
11
- - cmd: SET PATH=C:\Ruby200\bin;C:\msys64\usr\bin;%PATH%
11
+ - cmd: SET PATH=C:\Ruby23-x64\bin;C:\msys64\usr\bin;%PATH%
12
12
  - cmd: bash --login -c "pacman -S --needed --noconfirm base-devel"
13
13
  - cmd: ruby --version
14
14
  - cmd: svn --version
data/bin/hoc CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
  #
4
- # Copyright (c) 2014-2017 Teamed.io
5
- # Copyright (c) 2014-2017 Yegor Bugayenko
4
+ # Copyright (c) 2014-2018 Teamed.io
5
+ # Copyright (c) 2014-2018 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -46,6 +46,12 @@ opts = Slop.parse(args, strict: true, help: true) do |o|
46
46
  '--exclude',
47
47
  'Glob pattern to exclude files/dirs, e.g. "vendor/**"'
48
48
  )
49
+ o.string(
50
+ '-a',
51
+ '--author',
52
+ 'Filter results by given author',
53
+ default: ''
54
+ )
49
55
  o.string(
50
56
  '-d',
51
57
  '--dir',
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
38
38
  s.summary = 'Hits Of Code'
39
39
  s.description = 'Collects information about hits-of-code'
40
40
  s.authors = ['Yegor Bugayenko']
41
- s.email = 'yegor@teamed.io'
41
+ s.email = 'yegor256@gmail.com'
42
42
  s.homepage = 'http://github.com/teamed/hoc'
43
43
  s.files = `git ls-files`.split($RS)
44
44
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
47
47
  s.extra_rdoc_files = %w(README.md LICENSE.txt)
48
48
  s.add_runtime_dependency 'slop', '~>4.4.1'
49
49
  s.add_development_dependency 'rake', '12.0.0'
50
- s.add_development_dependency 'coveralls', '0.7'
50
+ s.add_development_dependency 'codecov', '0.1.10'
51
51
  s.add_development_dependency 'rdoc', '3.11'
52
52
  s.add_development_dependency 'cucumber', '1.3.11'
53
53
  s.add_development_dependency 'minitest', '5.4'
data/lib/hoc.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -25,8 +25,8 @@ require 'hoc/git'
25
25
  require 'hoc/svn'
26
26
 
27
27
  # HOC main module.
28
- # Author:: Yegor Bugayenko (yegor@teamed.io)
29
- # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
28
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
29
+ # Copyright:: Copyright (c) 2014-2018 Yegor Bugayenko
30
30
  # License:: MIT
31
31
  module HOC
32
32
  # Code base abstraction
@@ -35,22 +35,34 @@ module HOC
35
35
  # +opts+:: Options
36
36
  def initialize(opts)
37
37
  @dir = opts[:dir]
38
- raise 'only "int" format is supported now' unless
39
- opts[:format].nil? || opts[:format] == 'int'
40
- @exclude = opts[:exclude].nil? ? [] : opts[:exclude]
38
+ @exclude = opts[:exclude] || []
39
+ @author = opts[:author] || ''
40
+ @format = opts[:format] || 'int'
41
41
  end
42
42
 
43
43
  # Generate report.
44
44
  def report
45
45
  repo = nil
46
46
  if File.exist?(File.join(@dir, '.git'))
47
- repo = Git.new(@dir, @exclude)
47
+ repo = Git.new(@dir, @exclude, @author)
48
48
  elsif File.exist?(File.join(@dir, '.svn'))
49
49
  repo = Svn.new(@dir)
50
50
  else
51
- raise 'only Git repositories supported now'
51
+ raise 'Only Git repositories supported now'
52
+ end
53
+ count = repo.hits.map(&:total).inject(:+)
54
+ case @format
55
+ when 'xml'
56
+ "<hoc><total>#{count}</total></hoc>"
57
+ when 'json'
58
+ "{\"total\":#{count}}"
59
+ when 'text'
60
+ "Total Hits-of-Code: #{count}"
61
+ when 'int'
62
+ count
63
+ else
64
+ raise 'Only "text|xml|json|int" formats are supported now'
52
65
  end
53
- repo.hits.map(&:total).inject(:+)
54
66
  end
55
67
  end
56
68
  end
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -27,9 +27,10 @@ require 'hoc/hits'
27
27
  module HOC
28
28
  # Git source code base.
29
29
  class Git
30
- def initialize(dir, exclude)
30
+ def initialize(dir, exclude, author)
31
31
  @dir = dir
32
32
  @exclude = exclude
33
+ @author = author
33
34
  end
34
35
 
35
36
  def hits
@@ -42,7 +43,7 @@ module HOC
42
43
  '--ignore-space-change', '--ignore-all-space',
43
44
  '--ignore-submodules', '--no-color',
44
45
  '--find-copies-harder', '-M', '--diff-filter=ACDM',
45
- '--', '.',
46
+ "'--author=#{@author}'", '--', '.',
46
47
  @exclude.map { |e| "':(exclude,glob)#{e}'" }.join(' ')
47
48
  ].join(' ')
48
49
  [
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -22,9 +22,9 @@
22
22
  # SOFTWARE.
23
23
 
24
24
  # HOC main module.
25
- # Author:: Yegor Bugayenko (yegor@teamed.io)
26
- # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
25
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
26
+ # Copyright:: Copyright (c) 2014-2018 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module HOC
29
- VERSION = '0.8'.freeze
29
+ VERSION = '0.8.1'.freeze
30
30
  end
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -21,5 +21,13 @@
21
21
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  # SOFTWARE.
23
23
 
24
+ STDOUT.sync = true
25
+
24
26
  require 'simplecov'
27
+ SimpleCov.start
28
+ if ENV['CI'] == 'true'
29
+ require 'codecov'
30
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
31
+ end
32
+
25
33
  require 'hoc'
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -26,8 +26,8 @@ require 'hoc/git'
26
26
  require 'tmpdir'
27
27
 
28
28
  # Git test.
29
- # Author:: Yegor Bugayenko (yegor@teamed.io)
30
- # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
29
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
+ # Copyright:: Copyright (c) 2014-2018 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestGit < Minitest::Test
33
33
  def test_parsing
@@ -47,7 +47,7 @@ class TestGit < Minitest::Test
47
47
  rm test.txt
48
48
  git commit -qam 'delete line'
49
49
  ")
50
- hits = HOC::Git.new(dir, []).hits
50
+ hits = HOC::Git.new(dir, [], '').hits
51
51
  assert_equal 1, hits.size
52
52
  assert_equal 4, hits[0].total
53
53
  end
@@ -61,7 +61,7 @@ class TestGit < Minitest::Test
61
61
  cd '#{dir}'
62
62
  git init --quiet .
63
63
  ")
64
- hits = HOC::Git.new(dir, []).hits
64
+ hits = HOC::Git.new(dir, [], '').hits
65
65
  assert_equal 1, hits.size
66
66
  assert_equal 0, hits[0].total
67
67
  end
@@ -83,7 +83,7 @@ class TestGit < Minitest::Test
83
83
  git add test.dat
84
84
  git commit -qam 'binary file modified'
85
85
  ")
86
- hits = HOC::Git.new(dir, []).hits
86
+ hits = HOC::Git.new(dir, [], '').hits
87
87
  assert_equal 1, hits.size
88
88
  assert_equal 0, hits[0].total
89
89
  end
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -27,8 +27,8 @@ require 'tmpdir'
27
27
  require 'slop'
28
28
 
29
29
  # HOC main module test.
30
- # Author:: Yegor Bugayenko (yegor@teamed.io)
31
- # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
30
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
+ # Copyright:: Copyright (c) 2014-2018 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TestHOC < Minitest::Test
34
34
  def test_basic_git
@@ -44,7 +44,7 @@ class TestHOC < Minitest::Test
44
44
  git add test.txt
45
45
  git commit -am test
46
46
  ")
47
- assert HOC::Base.new(dir: '.', exclude: ['a/**']).report > 0
47
+ assert HOC::Base.new(dir: '.', exclude: ['a/**'], author: '').report > 0
48
48
  end
49
49
  end
50
50
 
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014-2017 Teamed.io
4
- # Copyright (c) 2014-2017 Yegor Bugayenko
3
+ # Copyright (c) 2014-2018 Teamed.io
4
+ # Copyright (c) 2014-2018 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -26,8 +26,8 @@ require 'hoc/svn'
26
26
  require 'tmpdir'
27
27
 
28
28
  # Svn test.
29
- # Author:: Yegor Bugayenko (yegor@teamed.io)
30
- # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
29
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
+ # Copyright:: Copyright (c) 2014-2018 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestSvn < Minitest::Test
33
33
  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.8'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 12.0.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: coveralls
42
+ name: codecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '0.7'
47
+ version: 0.1.10
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '0.7'
54
+ version: 0.1.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.13'
139
139
  description: Collects information about hits-of-code
140
- email: yegor@teamed.io
140
+ email: yegor256@gmail.com
141
141
  executables:
142
142
  - hoc
143
143
  extensions: []
@@ -147,6 +147,8 @@ extra_rdoc_files:
147
147
  files:
148
148
  - ".0pdd.yml"
149
149
  - ".gitattributes"
150
+ - ".github/ISSUE_TEMPLATE.md"
151
+ - ".github/PULL_REQUEST_TEMPLATE.md"
150
152
  - ".gitignore"
151
153
  - ".pdd"
152
154
  - ".rubocop.yml"
@@ -199,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
201
  version: '0'
200
202
  requirements: []
201
203
  rubyforge_project:
202
- rubygems_version: 2.4.5.2
204
+ rubygems_version: 2.6.8
203
205
  signing_key:
204
206
  specification_version: 2
205
207
  summary: Hits Of Code