Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1 # no need for ruby-version because we have a .ruby_version file
with:
bundler-cache: true
bundler-cache: true

- name: Run Rubocop
run: bundle exec rubocop --config ./.rubocop.yml
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.1
3.0.6
58 changes: 43 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,35 +1,63 @@
PATH
remote: .
specs:
codecademy-style (0.1.9)
rubocop (= 0.79)
codecademy-style (0.2.0)
rubocop (~> 1.56)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
jaro_winkler (1.5.4)
parallel (1.19.1)
parser (2.7.0.2)
ast (~> 2.4.0)
rainbow (3.0.0)
rubocop (0.79.0)
jaro_winkler (~> 1.5.1)
ast (2.4.2)
base64 (0.1.1)
diff-lcs (1.5.0)
json (2.6.3)
language_server-protocol (3.17.0.3)
parallel (1.23.0)
parser (3.2.2.3)
ast (~> 2.4.1)
racc
racc (1.7.1)
rainbow (3.1.1)
regexp_parser (2.8.1)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.56.3)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 2.7.0.1)
parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
unicode-display_width (1.6.1)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
unicode-display_width (2.4.2)

PLATFORMS
ruby

DEPENDENCIES
bundler (>= 2.2.10)
codecademy-style!
rubocop (= 0.79)
rspec
rubocop (~> 1.56)

BUNDLED WITH
2.2.25
7 changes: 5 additions & 2 deletions codecademy-style.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Gem::Specification.new do |spec|
spec.version = CodecademyStyle::VERSION
spec.authors = ['Codecademy Engineering']

spec.required_ruby_version = '>= 3.0'

spec.summary = 'Shared RuboCop style configuration'
spec.description = 'This gem holds shared RuboCop configuration for all of' \
'Codecademy\'s Ruby code bases.'
Expand All @@ -34,8 +36,9 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

# Require clients of this gem to have RuboCop installed
spec.add_dependency 'rubocop', '=0.79'
spec.add_dependency 'rubocop', '~>1.56'

spec.add_development_dependency 'bundler', '>= 2.2.10'
spec.add_development_dependency 'rubocop', '=0.79'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop', '~>1.56'
end
2 changes: 1 addition & 1 deletion default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- '**/*.gemspec'
ExcludedMethods:
AllowedMethods:
- 'included' # ActiveSupport concerns
- 'namespace' # rake tasks
- 'task' # rake tasks
Expand Down
2 changes: 1 addition & 1 deletion lib/codecademy_style/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CodecademyStyle
VERSION = '0.1.9'
VERSION = '0.2.0'
end
8 changes: 2 additions & 6 deletions spec/codecademy/style_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# frozen_string_literal: true

RSpec.describe Codecademy::Style do
RSpec.describe CodecademyStyle do
it 'has a version number' do
expect(Codecademy::Style::VERSION).not_to be nil
end

it 'does something useful' do
expect(false).to eq(true)
expect(CodecademyStyle::VERSION).not_to be nil
end
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require 'bundler/setup'
require 'codecademy/style'
require 'codecademy/style_spec'

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down