mirror of
https://github.com/tildeverse/lobsters
synced 2024-06-14 13:06:41 +00:00
bump rubocop (#753)
This commit is contained in:
parent
a4a907984c
commit
d5016368e5
|
@ -180,6 +180,8 @@ Style/ExpandPathArguments:
|
|||
Enabled: false
|
||||
Style/FormatString:
|
||||
Enabled: false
|
||||
Style/FormatStringToken:
|
||||
Enabled: false
|
||||
Style/FrozenStringLiteralComment:
|
||||
EnforcedStyle: never
|
||||
Style/GuardClause:
|
||||
|
|
14
Gemfile.lock
14
Gemfile.lock
|
@ -129,7 +129,7 @@ GEM
|
|||
mini_portile2 (~> 2.4.0)
|
||||
oauth (0.5.4)
|
||||
parallel (1.17.0)
|
||||
parser (2.6.3.0)
|
||||
parser (2.6.5.0)
|
||||
ast (~> 2.4.0)
|
||||
public_suffix (3.1.1)
|
||||
rack (2.0.7)
|
||||
|
@ -188,18 +188,18 @@ GEM
|
|||
rspec-mocks (~> 3.8.0)
|
||||
rspec-support (~> 3.8.0)
|
||||
rspec-support (3.8.2)
|
||||
rubocop (0.71.0)
|
||||
rubocop (0.75.0)
|
||||
jaro_winkler (~> 1.5.1)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 2.6)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 1.4.0, < 1.7)
|
||||
rubocop-rails (2.0.1)
|
||||
rubocop-rails (2.3.2)
|
||||
rack (>= 1.1)
|
||||
rubocop (>= 0.70.0)
|
||||
rubocop-rspec (1.33.0)
|
||||
rubocop (>= 0.60.0)
|
||||
rubocop (>= 0.72.0)
|
||||
rubocop-rspec (1.36.0)
|
||||
rubocop (>= 0.68.1)
|
||||
ruby-enum (0.7.2)
|
||||
i18n
|
||||
ruby-progressbar (1.10.1)
|
||||
|
@ -280,4 +280,4 @@ DEPENDENCIES
|
|||
unicorn
|
||||
|
||||
BUNDLED WITH
|
||||
2.0.1
|
||||
2.0.2
|
||||
|
|
|
@ -41,12 +41,10 @@ class KeybaseProofsController < ApplicationController
|
|||
@brand_color = "#AC130D"
|
||||
@description = "Computing-focused community centered around link aggregation and discussion"
|
||||
@contacts = ["admin@#{Keybase.DOMAIN}"]
|
||||
# rubocop:disable Style/FormatStringToken
|
||||
@prefill_url = "#{new_keybase_proof_url}?kb_username=%{kb_username}&" \
|
||||
"kb_signature=%{sig_hash}&kb_ua=%{kb_ua}&username=%{username}"
|
||||
@profile_url = "#{u_url}/%{username}"
|
||||
@check_url = "#{u_url}/%{username}.json"
|
||||
# rubocop:enable Style/FormatStringToken
|
||||
@logo_black = "https://lobste.rs/small-black-logo.svg"
|
||||
@logo_full = "https://lobste.rs/full-color.logo.svg"
|
||||
@user_re = User.username_regex_s[1...-1]
|
||||
|
|
|
@ -132,6 +132,7 @@ describe Search do
|
|||
|
||||
expect(search.results).to include(@comments[1])
|
||||
end
|
||||
|
||||
it "can search for comments by tag" do
|
||||
search = Search.new
|
||||
search.q = "comment2 comment3 tag:tag1"
|
||||
|
@ -142,6 +143,7 @@ describe Search do
|
|||
expect(search.results).to include(@comments[2])
|
||||
expect(search.results).not_to include(@comments[3])
|
||||
end
|
||||
|
||||
it "can search for comments with only tags" do
|
||||
search = Search.new
|
||||
search.q = "tag:tag1"
|
||||
|
@ -152,6 +154,7 @@ describe Search do
|
|||
expect(search.results).to include(@comments[2])
|
||||
expect(search.results).not_to include(@comments[3])
|
||||
end
|
||||
|
||||
it "should only return comments matching all tags if multiple are present" do
|
||||
search = Search.new
|
||||
search.q = "tag:tag1 tag:tag2"
|
||||
|
|
Loading…
Reference in New Issue
Block a user