-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from soundasleep/scrivo/add-rubocop
- Loading branch information
Showing
11 changed files
with
265 additions
and
167 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
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,35 @@ | ||
require: | ||
- rubocop-performance | ||
- rubocop-rake | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 3.0 | ||
|
||
Metrics/MethodLength: | ||
Max: 30 | ||
|
||
Metrics/ClassLength: | ||
Max: 200 | ||
|
||
Metrics/ModuleLength: | ||
Max: 200 | ||
|
||
Metrics/BlockLength: | ||
Max: 50 | ||
|
||
Gemspec/DevelopmentDependencies: | ||
EnforcedStyle: gemspec | ||
|
||
# TODO: Enable these cops after fixing the issues | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
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
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,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
task default: :spec |
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,27 +1,34 @@ | ||
$:.push File.expand_path("../lib", __FILE__) | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.push File.expand_path('lib', __dir__) | ||
|
||
# Maintain your gem's version: | ||
require "html2text/version" | ||
require 'html2text/version' | ||
|
||
# Describe your gem and declare its dependencies: | ||
Gem::Specification.new do |s| | ||
s.name = "html2text" | ||
s.name = 'html2text' | ||
s.version = Html2Text::VERSION | ||
s.authors = ["Jevon Wright"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "https://github.com/soundasleep/html2text_ruby" | ||
s.summary = "Convert HTML into plain text." | ||
s.description = "A Ruby component to convert HTML into a plain text format." | ||
s.license = "MIT" | ||
s.authors = ['Jevon Wright'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'https://github.com/soundasleep/html2text_ruby' | ||
s.summary = 'Convert HTML into plain text.' | ||
s.description = 'A Ruby component to convert HTML into a plain text format.' | ||
s.license = 'MIT' | ||
s.required_ruby_version = '>= 3.0' | ||
|
||
s.files = Dir['lib/**/*', 'LICENSE.md', 'README.md', 'CHANGELOG.md'] | ||
|
||
s.files = Dir["lib/**/*", "LICENSE.md", "README.md", "CHANGELOG.md"] | ||
s.test_files = Dir["spec/**/*"] | ||
s.add_dependency 'nokogiri', ['>= 1.0', '< 2.0'] | ||
|
||
s.add_dependency "nokogiri", ['>= 1.0', '< 2.0'] | ||
s.add_development_dependency 'bundler-audit' | ||
s.add_development_dependency 'colorize' | ||
s.add_development_dependency 'rake' | ||
s.add_development_dependency 'rspec' | ||
s.add_development_dependency 'rspec-collection_matchers' | ||
s.add_development_dependency 'rubocop' | ||
s.add_development_dependency 'rubocop-performance' | ||
s.add_development_dependency 'rubocop-rake' | ||
|
||
s.add_development_dependency "rspec" | ||
s.add_development_dependency "rspec-collection_matchers" | ||
s.add_development_dependency "colorize" | ||
s.add_development_dependency "rake" | ||
s.add_development_dependency "bundler-audit" | ||
s.metadata['rubygems_mfa_required'] = 'true' | ||
end |
Oops, something went wrong.