Skip to content

Commit

Permalink
Merge pull request WinRb#51 from WinRb/no_travis
Browse files Browse the repository at this point in the history
use gh action instead of travis and modernize rubocop
  • Loading branch information
mwrock authored Apr 11, 2022
2 parents 2c91d6a + e242499 commit 947046d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
inherit_from: .rubocop_todo.yml

Style/FrozenStringLiteralComment:
Enabled: false

Style/FileName:
Naming/FileName:
Enabled: false

Style/Encoding:
Enabled: true

Metrics/LineLength:
Layout/LineLength:
Max: 120

Metrics/MethodLength:
Max: 20

ClassLength:
Metrics/ClassLength:
Max: 250

Metrics/AbcSize:
Expand Down
28 changes: 28 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-04-11 21:11:36 UTC using RuboCop version 1.26.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 8
# Configuration parameters: EnforcedStyle.
# SupportedStyles: native, lf, crlf
Layout/EndOfLine:
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'lib/winrm-elevated.rb'
- 'lib/winrm/shells/elevated.rb'
- 'spec/matchers.rb'
- 'spec/powershell_elevated_spec.rb'
- 'spec/spec_helper.rb'
- 'winrm-elevated.gemspec'

# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'lib/winrm/shells/elevated.rb'
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions winrm-elevated.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.extra_rdoc_files = %w[README.md LICENSE]

s.required_ruby_version = '>= 2.3.0'
s.required_ruby_version = '>= 2.5.0'
s.add_runtime_dependency 'erubi', '~> 1.8'
s.add_runtime_dependency 'winrm', '~> 2.0'
s.add_runtime_dependency 'winrm-fs', '~> 1.0'
s.add_development_dependency 'rake', '>= 10.3', '< 13'
s.add_development_dependency 'rexml'
s.add_development_dependency 'rspec', '~> 3.2'
s.add_development_dependency 'rubocop', '~> 0.51.0'
s.add_development_dependency 'rubocop', '~> 1.26.0'
end

0 comments on commit 947046d

Please sign in to comment.