Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
161 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
inherit_from: .rubocop_todo.yml | ||
require: rubocop-rspec | ||
|
||
AllCops: | ||
Include: | ||
- 'lib/**/*' | ||
- 'spec/**/*' | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'examples/**/*' | ||
- 'tmp/**/*' | ||
- Gemfile | ||
- Rakefile | ||
- '*.gemspec' | ||
DisplayCopNames: true | ||
TargetRubyVersion: '2.3' | ||
|
||
Style/PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
default: '{}' | ||
|
||
Style/SignalException: | ||
EnforcedStyle: semantic | ||
|
||
Style/RegexpLiteral: | ||
Enabled: false | ||
|
||
Style/FormatStringToken: | ||
Enabled: false | ||
|
||
Style/AndOr: | ||
EnforcedStyle: conditionals | ||
|
||
Layout/SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
Metrics/LineLength: | ||
Enabled: false | ||
|
||
# TODO | ||
Style/Documentation: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'yard' | ||
|
||
group :test do | ||
gem 'rspec' | ||
gem 'rspec-its' | ||
gem 'fakefs' | ||
end | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Gem::Specification.new do |s| | ||
s.name = 'junk_yard' | ||
s.version = '0.0.1pre' | ||
s.authors = ['Victor Shepelev'] | ||
s.email = 'zverok.offline@gmail.com' | ||
s.homepage = 'https://github.com/zverok/junk_yard' | ||
|
||
s.summary = 'Get rid of junk in your YARD docs' | ||
s.description = <<-EOF | ||
JunkYard is structured logger/error validator plugin for YARD documentation gem. | ||
EOF | ||
s.licenses = ['MIT'] | ||
|
||
s.required_ruby_version = '>= 2.1.0' | ||
|
||
s.files = `git ls-files`.split($RS).reject do |file| | ||
file =~ /^(?: | ||
spec\/.* | ||
|Gemfile | ||
|Rakefile | ||
|\.rspec | ||
|\.gitignore | ||
|\.rubocop.yml | ||
|\.travis.yml | ||
)$/x | ||
end | ||
s.require_paths = ["lib"] | ||
|
||
s.add_dependency 'yard' | ||
|
||
s.add_development_dependency 'rubocop', '>= 0.30' | ||
s.add_development_dependency 'rspec', '>= 3' | ||
s.add_development_dependency 'rubocop-rspec' | ||
s.add_development_dependency 'rspec-its', '~> 1' | ||
s.add_development_dependency 'fakefs' | ||
s.add_development_dependency 'simplecov', '~> 0.9' | ||
s.add_development_dependency 'rake' | ||
s.add_development_dependency 'rubygems-tasks' | ||
s.add_development_dependency 'yard' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
require_relative 'junk_yard/logger' | ||
|
||
#class YARD::CLI::Yardoc | ||
#alias parse_options_no_junk parse_options | ||
|
||
#def parse_options(opts, *arg) | ||
#opts.separator "" | ||
#opts.separator "JunkYard plugin options" | ||
# frozen_string_literal: true | ||
|
||
#opts.on('--junk-logger-format [FORMAT]', 'JunkYard::Logger format string') do | ||
#p "HERE we go!" | ||
#end | ||
|
||
#opts.separator "" | ||
#opts.separator "Generic options" | ||
require_relative 'junk_yard/logger' | ||
|
||
#parse_options_no_junk(opts, *arg) | ||
#end | ||
#end | ||
# class YARD::CLI::Yardoc | ||
# alias parse_options_no_junk parse_options | ||
# | ||
# def parse_options(opts, *arg) | ||
# opts.separator "" | ||
# opts.separator "JunkYard plugin options" | ||
# | ||
# opts.on('--junk-logger-format [FORMAT]', 'JunkYard::Logger format string') do | ||
# p "HERE we go!" | ||
# end | ||
# | ||
# opts.separator "" | ||
# opts.separator "Generic options" | ||
# | ||
# parse_options_no_junk(opts, *arg) | ||
# end | ||
# end | ||
|
||
YARD::Logger.prepend JunkYard::Logger::Mixin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
inherit_from: ../.rubocop.yml | ||
|
||
Style/BlockDelimiters: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Enabled: false | ||
|
||
Layout/MultilineBlockLayout: | ||
Enabled: false | ||
|
||
Layout/AlignParameters: | ||
EnforcedStyle: with_fixed_indentation | ||
|
||
RSpec/DescribeClass: | ||
Enabled: false | ||
|
||
RSpec/BeforeAfterAll: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rspec/its' | ||
require 'fakefs/spec_helpers' | ||
require 'pp' | ||
|