Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run bundle update mainly for rubocop racc/parser #26

Merged
merged 2 commits into from
Aug 2, 2024
Merged
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
11 changes: 1 addition & 10 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
Metrics/AbcSize:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/LineLength:
Enabled: false

Metrics/MethodLength:
Metrics:
Enabled: false

Style/Documentation:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

- Reduce some files from gem package.
- Correct some RuboCop offenses.

## 0.5.0 - 2024-03-28

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

source 'https://rubygems.org'

# Specify your gem's dependencies in rspec-request_describer.gemspec
Expand Down
65 changes: 38 additions & 27 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,49 @@ PATH
GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
diff-lcs (1.3)
jaro_winkler (1.5.1)
parallel (1.12.1)
parser (2.5.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
rainbow (3.0.0)
rake (13.0.1)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.2)
ast (2.4.2)
diff-lcs (1.5.1)
json (2.7.2)
language_server-protocol (3.17.0.3)
parallel (1.25.1)
parser (3.3.4.0)
ast (~> 2.4.1)
racc
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.3.4)
strscan
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rubocop (0.61.1)
jaro_winkler (~> 1.5.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.65.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
unicode-display_width (1.4.0)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
strscan (3.1.0)
unicode-display_width (2.5.0)

PLATFORMS
ruby
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# frozen_string_literal: true

require 'bundler/gem_tasks'
4 changes: 3 additions & 1 deletion lib/rspec/request_describer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rspec/request_describer/version'

module RSpec
Expand Down Expand Up @@ -56,7 +58,7 @@ def included(base)
let(:env) do
headers.inject({}) do |result, (key, value)|
key = key.to_s
key = 'HTTP_' + key unless RESERVED_HEADER_NAMES.include?(key.downcase)
key = "HTTP_#{key}" unless RESERVED_HEADER_NAMES.include?(key.downcase)
key = key.tr('-', '_').upcase
result.merge(key => value)
end
Expand Down
4 changes: 3 additions & 1 deletion lib/rspec/request_describer/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

module RSpec
module RequestDescriber
VERSION = '0.5.0'.freeze
VERSION = '0.5.0'
end
end
2 changes: 2 additions & 0 deletions rspec-request_describer.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Check warning on line 1 in rspec-request_describer.gemspec

View workflow job for this annotation

GitHub Actions / rubocop / rubocop

Gemspec/RequiredRubyVersion: required_ruby_version should be specified.

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rspec/request_describer/version'
Expand Down
34 changes: 18 additions & 16 deletions spec/rspec/request_describer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'openssl'

RSpec.describe RSpec::RequestDescriber do
Expand All @@ -13,8 +15,8 @@ def get(*args)
[
:get,
'/users',
headers: {},
params: {}
{ headers: {},
params: {} }
]
)
end
Expand All @@ -29,8 +31,8 @@ def get(*args)
[
:get,
'/users',
headers: { 'HTTP_AUTHORIZATION' => 'token 12345' },
params: {}
{ headers: { 'HTTP_AUTHORIZATION' => 'token 12345' },
params: {} }
]
)
end
Expand All @@ -46,8 +48,8 @@ def get(*args)
[
:get,
'/users',
headers: { 'HTTPS' => 'on' },
params: {}
{ headers: { 'HTTPS' => 'on' },
params: {} }
]
)
end
Expand All @@ -63,8 +65,8 @@ def get(*args)
[
:get,
'/users',
headers: { 'HTTP_AUTHORIZATION' => 'token 12345' },
params: {}
{ headers: { 'HTTP_AUTHORIZATION' => 'token 12345' },
params: {} }
]
)
end
Expand All @@ -80,8 +82,8 @@ def get(*args)
[
:get,
'/users',
headers: { 'HTTP_X_SIGNATURE' => 'sha1=5d61605c3feea9799210ddcb71307d4ba264225f' },
params: {}
{ headers: { 'HTTP_X_SIGNATURE' => 'sha1=5d61605c3feea9799210ddcb71307d4ba264225f' },
params: {} }
]
)
end
Expand All @@ -97,8 +99,8 @@ def get(*args)
[
:get,
'/users',
headers: {},
params: { 'sort' => 'id' }
{ headers: {},
params: { 'sort' => 'id' } }
]
)
end
Expand All @@ -114,8 +116,8 @@ def get(*args)
[
:get,
'/users',
headers: {},
params: { 'sort' => 'id' }
{ headers: {},
params: { 'sort' => 'id' } }
]
)
end
Expand All @@ -132,8 +134,8 @@ def get(*args)
[
:get,
'/users/1',
headers: {},
params: {}
{ headers: {},
params: {} }
]
)
end
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rspec/request_describer'

RSpec.configure do |config|
Expand Down
Loading