giteaucrat 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +19 -0
- data/.rubocop.yml +17 -0
- data/.rubocop_todo.yml +79 -0
- data/{LICENSE.txt → LICENSE} +2 -2
- data/Rakefile +14 -0
- data/bin/rspec +18 -0
- data/bin/rubocop +18 -0
- data/bin/ruby-parse +18 -0
- data/bin/ruby-rewrite +18 -0
- data/bin/yard +18 -0
- data/bin/yardoc +18 -0
- data/bin/yri +18 -0
- data/giteaucrat.gemspec +6 -3
- data/lib/giteaucrat/version.rb +1 -1
- metadata +59 -8
- data/MIT-LICENSE +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b26743753ed689081e320be74d3ea0815246311
|
4
|
+
data.tar.gz: 44b439d6f11098698b35d1c858c5eb325553130d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f71611c04481be2d012b3419d641510731b68bc477cb043e60c3154771c602c74928bc3d40b06ca2765f990f3335a0645989a6548abd49a1c162b69020543ea5
|
7
|
+
data.tar.gz: 334c4855c2bd36b7ff39921149b8e9c6dadc34480a117ecdce4795f46ee739c87a4d771089c4dc5b1ce4e3001f86f090963e79825deee046f5dfdc4e6f748319
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# This file is a template, and might need editing before it works on your project.
|
2
|
+
# Official language image. Look for the different tagged releases at:
|
3
|
+
image: ruby:latest
|
4
|
+
|
5
|
+
# Cache gems in between builds
|
6
|
+
cache:
|
7
|
+
paths:
|
8
|
+
- .bundle
|
9
|
+
|
10
|
+
# This is a basic example for a gem or script which doesn't use
|
11
|
+
# services such as redis or postgres
|
12
|
+
before_script:
|
13
|
+
- ruby -v # Print out ruby version for debugging
|
14
|
+
- gem install bundler --no-ri --no-rdoc # Bundler is not installed with the image
|
15
|
+
- bundle install -j $(nproc) --path .bundle # Install dependencies into ./.bundle
|
16
|
+
|
17
|
+
rake:
|
18
|
+
script:
|
19
|
+
- rake
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# We are using default RuboCop settings.
|
2
|
+
# We are writing beautiful code.
|
3
|
+
# There is nothing to change here. At least now.
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 2.4
|
6
|
+
DefaultFormatter: fuubar
|
7
|
+
DisplayCopNames: true
|
8
|
+
ExtraDetails: true
|
9
|
+
Exclude:
|
10
|
+
# Ignore vendored gems
|
11
|
+
- vendor/**/*
|
12
|
+
|
13
|
+
# UTF-8 FTW
|
14
|
+
Style/AsciiComments:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2017-04-07 03:11:02 +0300 using RuboCop version 0.48.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: AllowSafeAssignment.
|
11
|
+
Lint/AssignmentInCondition:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/core_ext/grit/blame.rb'
|
14
|
+
|
15
|
+
# Offense count: 1
|
16
|
+
Lint/ShadowingOuterLocalVariable:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/giteaucrat/author.rb'
|
19
|
+
|
20
|
+
# Offense count: 8
|
21
|
+
Metrics/AbcSize:
|
22
|
+
Max: 31
|
23
|
+
|
24
|
+
# Offense count: 15
|
25
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
26
|
+
# URISchemes: http, https
|
27
|
+
Metrics/LineLength:
|
28
|
+
Max: 148
|
29
|
+
|
30
|
+
# Offense count: 5
|
31
|
+
# Configuration parameters: CountComments.
|
32
|
+
Metrics/MethodLength:
|
33
|
+
Max: 23
|
34
|
+
|
35
|
+
# Offense count: 12
|
36
|
+
Style/Documentation:
|
37
|
+
Exclude:
|
38
|
+
- 'spec/**/*'
|
39
|
+
- 'test/**/*'
|
40
|
+
- 'lib/core_ext/grit/blame.rb'
|
41
|
+
- 'lib/giteaucrat.rb'
|
42
|
+
- 'lib/giteaucrat/author.rb'
|
43
|
+
- 'lib/giteaucrat/common.rb'
|
44
|
+
- 'lib/giteaucrat/file.rb'
|
45
|
+
- 'lib/giteaucrat/formatters.rb'
|
46
|
+
- 'lib/giteaucrat/formatters/coffee_formatter.rb'
|
47
|
+
- 'lib/giteaucrat/formatters/formatter.rb'
|
48
|
+
- 'lib/giteaucrat/formatters/java_formatter.rb'
|
49
|
+
- 'lib/giteaucrat/formatters/ruby_formatter.rb'
|
50
|
+
- 'lib/giteaucrat/repo.rb'
|
51
|
+
- 'lib/giteaucrat/runner.rb'
|
52
|
+
|
53
|
+
# Offense count: 3
|
54
|
+
Style/DoubleNegation:
|
55
|
+
Exclude:
|
56
|
+
- 'lib/giteaucrat/author.rb'
|
57
|
+
- 'lib/giteaucrat/formatters/formatter.rb'
|
58
|
+
- 'lib/giteaucrat/repo.rb'
|
59
|
+
|
60
|
+
# Offense count: 1
|
61
|
+
# Configuration parameters: MinBodyLength.
|
62
|
+
Style/GuardClause:
|
63
|
+
Exclude:
|
64
|
+
- 'lib/giteaucrat/author.rb'
|
65
|
+
|
66
|
+
# Offense count: 1
|
67
|
+
Style/MultilineBlockChain:
|
68
|
+
Exclude:
|
69
|
+
- 'lib/giteaucrat/repo.rb'
|
70
|
+
|
71
|
+
# Offense count: 2
|
72
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
73
|
+
# NamePrefix: is_, has_, have_
|
74
|
+
# NamePrefixBlacklist: is_, has_, have_
|
75
|
+
# NameWhitelist: is_a?
|
76
|
+
Style/PredicateName:
|
77
|
+
Exclude:
|
78
|
+
- 'spec/**/*'
|
79
|
+
- 'lib/giteaucrat/author.rb'
|
data/{LICENSE.txt → LICENSE}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
|
-
Copyright (c) 2013 Alexander Semyonov
|
2
|
-
|
3
1
|
MIT License
|
4
2
|
|
3
|
+
© Alex Semyonov, 2013-2017
|
4
|
+
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|
7
7
|
"Software"), to deal in the Software without restriction, including
|
data/Rakefile
CHANGED
@@ -1,3 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'bundler/gem_tasks'
|
4
|
+
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new :spec
|
7
|
+
|
8
|
+
require 'rubocop/rake_task'
|
9
|
+
RuboCop::RakeTask.new :style
|
10
|
+
|
11
|
+
require 'yard'
|
12
|
+
YARD::Rake::YardocTask.new :doc
|
13
|
+
|
14
|
+
desc 'Test specification'
|
15
|
+
task test: %i[spec style]
|
16
|
+
|
17
|
+
task default: %i[test doc]
|
data/bin/rspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('rspec-core', 'rspec')
|
data/bin/rubocop
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('rubocop', 'rubocop')
|
data/bin/ruby-parse
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'ruby-parse' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('parser', 'ruby-parse')
|
data/bin/ruby-rewrite
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'ruby-rewrite' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('parser', 'ruby-rewrite')
|
data/bin/yard
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'yard' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('yard', 'yard')
|
data/bin/yardoc
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'yardoc' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('yard', 'yardoc')
|
data/bin/yri
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'yri' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'bundler/setup'
|
17
|
+
|
18
|
+
load Gem.bin_path('yard', 'yri')
|
data/giteaucrat.gemspec
CHANGED
@@ -8,11 +8,11 @@ require 'giteaucrat/version'
|
|
8
8
|
Gem::Specification.new do |spec|
|
9
9
|
spec.name = 'giteaucrat'
|
10
10
|
spec.version = Giteaucrat::VERSION
|
11
|
-
spec.authors = ['
|
12
|
-
spec.email = %w[
|
11
|
+
spec.authors = ['Alex Semyonov']
|
12
|
+
spec.email = %w[alex@semyonov.us]
|
13
13
|
spec.description = 'Automatically update copyright messages using git'
|
14
14
|
spec.summary = 'The Git bureaucrat'
|
15
|
-
spec.homepage = '
|
15
|
+
spec.homepage = 'https://gitlab.com/alsemyonov/giteaucrat'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -25,4 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
27
27
|
spec.add_development_dependency 'rake', '~> 12.0'
|
28
|
+
spec.add_development_dependency 'rubocop', '~> 0.48'
|
29
|
+
spec.add_development_dependency 'yard', '~> 0.9'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
28
31
|
end
|
data/lib/giteaucrat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: giteaucrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Alex Semyonov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grit
|
@@ -66,18 +66,62 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '12.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.48'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.48'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.9'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.5'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.5'
|
69
111
|
description: Automatically update copyright messages using git
|
70
112
|
email:
|
71
|
-
-
|
113
|
+
- alex@semyonov.us
|
72
114
|
executables: []
|
73
115
|
extensions: []
|
74
116
|
extra_rdoc_files: []
|
75
117
|
files:
|
76
118
|
- ".gitignore"
|
119
|
+
- ".gitlab-ci.yml"
|
120
|
+
- ".rubocop.yml"
|
121
|
+
- ".rubocop_todo.yml"
|
77
122
|
- ".travis.yml"
|
78
123
|
- Gemfile
|
79
|
-
- LICENSE
|
80
|
-
- MIT-LICENSE
|
124
|
+
- LICENSE
|
81
125
|
- README.md
|
82
126
|
- Rakefile
|
83
127
|
- bin/bundler
|
@@ -85,7 +129,14 @@ files:
|
|
85
129
|
- bin/ldiff
|
86
130
|
- bin/posix-spawn-benchmark
|
87
131
|
- bin/rake
|
132
|
+
- bin/rspec
|
133
|
+
- bin/rubocop
|
134
|
+
- bin/ruby-parse
|
135
|
+
- bin/ruby-rewrite
|
88
136
|
- bin/thor
|
137
|
+
- bin/yard
|
138
|
+
- bin/yardoc
|
139
|
+
- bin/yri
|
89
140
|
- config/giteaucrat.yml
|
90
141
|
- exe/giteaucrat
|
91
142
|
- giteaucrat.gemspec
|
@@ -105,7 +156,7 @@ files:
|
|
105
156
|
- lib/giteaucrat/repo.rb
|
106
157
|
- lib/giteaucrat/runner.rb
|
107
158
|
- lib/giteaucrat/version.rb
|
108
|
-
homepage:
|
159
|
+
homepage: https://gitlab.com/alsemyonov/giteaucrat
|
109
160
|
licenses:
|
110
161
|
- MIT
|
111
162
|
metadata: {}
|
@@ -125,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
176
|
version: '0'
|
126
177
|
requirements: []
|
127
178
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.6.11
|
129
180
|
signing_key:
|
130
181
|
specification_version: 4
|
131
182
|
summary: The Git bureaucrat
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
© Alexander Semyonov, 2013
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|