Skip to content

Commit

Permalink
Re-enable RSpec/SpecFilePathSuffix and update Webhook paths to work w…
Browse files Browse the repository at this point in the history
…ith 1.0 in the path
  • Loading branch information
bobbrodie committed Oct 15, 2024
1 parent eec9f0e commit e6f944d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ RSpec/RepeatedSubjectCall:
RSpec/SpecFilePathFormat:
Enabled: false

RSpec/SpecFilePathSuffix:
Enabled: false

RSpec/StubbedMock:
Enabled: false

Expand Down
6 changes: 5 additions & 1 deletion lib/jira/resource/webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ def self.full_url(client)
client.options[:context_path] + REST_BASE_PATH
end

def self.singular_path(client, key, prefix = '/')
"#{full_url(client)}#{prefix}/#{endpoint_name}/#{key}"
end

def self.collection_path(client, prefix = '/')
full_url(client) + prefix + endpoint_name
"#{full_url(client)}#{prefix}/#{endpoint_name}"
end

def self.all(client, options = {})
Expand Down
File renamed without changes.

0 comments on commit e6f944d

Please sign in to comment.