Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Jan 10, 2024
1 parent a379e33 commit 10154c9
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 3 deletions.
49 changes: 49 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
json (2.6.3)
language_server-protocol (3.17.0.3)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
regexp_parser (2.8.2)
rexml (3.2.6)
rubocop (1.57.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
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 (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-discourse (3.4.1)
rubocop (>= 1.1.0)
rubocop-rspec (>= 2.0.0)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-rspec (2.25.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
unicode-display_width (2.5.0)

PLATFORMS
arm64-darwin-22

DEPENDENCIES
rubocop-discourse

BUNDLED WITH
2.4.13
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module DiscourseSubscriptionsCouponsControllerExtension
def create
params.require([:promo, :discount_type, :discount, :active, :applies_to_products])
Expand Down Expand Up @@ -26,4 +27,4 @@ def create
render_json_error e.message
end
end
end
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module DiscourseSubscriptionsProductsControllerExtension
def show
begin
Expand Down Expand Up @@ -28,4 +29,4 @@ def show
}
}
end
end
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
module DiscourseSubscriptionsSubscribeControllerExtension
private def serialize_product(product)
{
Expand All @@ -19,4 +20,4 @@ module DiscourseSubscriptionsSubscribeControllerExtension
result
end.sort_by { |plan| plan[:amount] }
end
end
end

0 comments on commit 10154c9

Please sign in to comment.