Skip to content

Commit

Permalink
Changes after rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Apr 17, 2024
1 parent 5d3eb91 commit d654edc
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# frozen_string_literal: true

source "https://rubygems.org"
source 'https://rubygems.org'

gemspec

group :development, :test do
gem 'debug'
end

gem "pg", "~> 1.5"
gem "rubocop"
gem 'pg', '~> 1.5'
gem 'rubocop'
24 changes: 24 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ GEM
zeitwerk (~> 2.3)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
base62-rb (0.3.1)
bcp47 (0.3.3)
i18n
Expand Down Expand Up @@ -172,9 +173,11 @@ GEM
io-console (0.5.11)
irb (1.4.2)
reline (>= 0.3.0)
json (2.7.2)
jwt (2.7.1)
kramdown (2.4.0)
rexml
language_server-protocol (3.17.0.3)
method_source (1.0.0)
mime-types (3.5.1)
mime-types-data (~> 3.2015)
Expand Down Expand Up @@ -207,6 +210,10 @@ GEM
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
oj (3.11.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pastel (0.8.0)
tty-color (~> 0.5)
pg (1.5.6)
Expand All @@ -221,8 +228,10 @@ GEM
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rainbow (3.1.1)
rake (13.1.0)
redis (4.8.1)
regexp_parser (2.9.0)
reline (0.3.1)
io-console (~> 0.5)
rest-client (2.1.0)
Expand All @@ -245,6 +254,20 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.63.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sequel (5.42.0)
sidekiq (6.5.12)
Expand Down Expand Up @@ -301,6 +324,7 @@ DEPENDENCIES
factory_bot (~> 6.1)
pg (~> 1.5)
rspec (~> 3.10)
rubocop
webmock (~> 3.11)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ down:

rubocop:
docker compose build
docker compose run inferno rubocop -A
docker compose run inferno rubocop
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'pry'
require 'pry-byebug'

Expand Down
3 changes: 3 additions & 0 deletions au_core_test_kit.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'lib/au_core_test_kit/version'

Gem::Specification.new do |spec|
Expand Down Expand Up @@ -28,4 +30,5 @@ Gem::Specification.new do |spec|
].flatten

spec.require_paths = ['lib']
spec.metadata['rubygems_mfa_required'] = 'true'
end
2 changes: 2 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'inferno'

use Rack::Static,
Expand Down
2 changes: 2 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

environment ENV.fetch('APP_ENV', 'development')
port ENV.fetch('PUMA_PORT', 4567)
2 changes: 2 additions & 0 deletions lib/au_core_test_kit.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# frozen_string_literal: true

require_relative 'au_core_test_kit/generated/v0.3.0-ballot/au_core_test_suite'
2 changes: 1 addition & 1 deletion lib/au_core_test_kit/generator/read_test_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def conformance_expectation

def generate
FileUtils.mkdir_p(output_file_directory)
File.open(output_file_name, 'w') { |f| f.write(output) }
File.write(output_file_name, output)

group_metadata.add_test(
id: test_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def generate
return if must_support_references.empty?

FileUtils.mkdir_p(output_file_directory)
File.open(output_file_name, 'w') { |f| f.write(output) }
File.write(output_file_name, output)

group_metadata.add_test(
id: test_id,
Expand Down
2 changes: 1 addition & 1 deletion lib/au_core_test_kit/generator/suite_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def ig_link
end

def generate
File.open(output_file_name, 'w') { |f| f.write(output) }
File.write(output_file_name, output)
end

def groups
Expand Down

0 comments on commit d654edc

Please sign in to comment.