Skip to content
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
3 changes: 1 addition & 2 deletions api_auth.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop', '~> 1.50'
s.add_development_dependency 'typhoeus', '~> 1.4'

s.files = `git ls-files`.split("\n")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@yuri-zubov yuri-zubov Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api_auth.gemspec is not necessary
Added VERSION

Copy link
Contributor Author

@yuri-zubov yuri-zubov Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fwininger
The same MR in the popular gem friendly_id

https://github.com/rgrove/sanitize/pull/248/changes
No one adds gemspec

s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.files = `git ls-files lib`.split("\n") + ['LICENSE.txt', 'CHANGELOG.md', 'README.md', 'VERSION']
s.require_paths = ['lib']
end
3 changes: 2 additions & 1 deletion lib/api_auth/request_drivers/rest_client.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# give access to RestClient @processed_headers
module RestClient; class Request; attr_accessor :processed_headers; end; end

require_relative '../../rest_client/request_patch'

module ApiAuth
module RequestDrivers # :nodoc:
Expand Down
6 changes: 6 additions & 0 deletions lib/rest_client/request_patch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module RestClient
# Adds accessor for processed_headers used by ApiAuth.
class Request
attr_accessor :processed_headers
end
end