Skip to content

Commit 348c6f4

Browse files
committed
fix: update dependencies and lint errors
1 parent 2f30898 commit 348c6f4

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

Gemfile.lock

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ GEM
8282
addressable (2.8.7)
8383
public_suffix (>= 2.0.2, < 7.0)
8484
ast (2.4.3)
85-
base64 (0.2.0)
86-
benchmark (0.4.0)
87-
bigdecimal (3.1.9)
85+
base64 (0.3.0)
86+
benchmark (0.4.1)
87+
bigdecimal (3.2.2)
8888
browser (6.2.0)
8989
builder (3.3.0)
9090
byebug (12.0.0)
@@ -96,20 +96,20 @@ GEM
9696
crass (1.0.6)
9797
date (3.4.1)
9898
domain_name (0.6.20240107)
99-
drb (2.2.1)
99+
drb (2.2.3)
100+
erb (5.0.2)
100101
erubi (1.13.1)
101-
faker (3.5.1)
102+
faker (3.5.2)
102103
i18n (>= 1.8.11, < 2)
103104
ffi (1.17.2-x86_64-linux-gnu)
104105
ffi-compiler (1.3.2)
105106
ffi (>= 1.15.5)
106107
rake
107108
globalid (1.2.1)
108109
activesupport (>= 6.1)
109-
hashdiff (1.1.2)
110-
http (5.2.0)
110+
hashdiff (1.2.0)
111+
http (5.3.1)
111112
addressable (~> 2.8)
112-
base64 (~> 0.1)
113113
http-cookie (~> 1.0)
114114
http-form_data (~> 2.2)
115115
llhttp-ffi (~> 0.5.0)
@@ -118,19 +118,19 @@ GEM
118118
http-form_data (2.3.0)
119119
i18n (1.14.7)
120120
concurrent-ruby (~> 1.0)
121-
io-console (0.8.0)
121+
io-console (0.8.1)
122122
irb (1.15.2)
123123
pp (>= 0.6.0)
124124
rdoc (>= 4.0.0)
125125
reline (>= 0.4.2)
126-
json (2.11.3)
127-
language_server-protocol (3.17.0.4)
126+
json (2.13.0)
127+
language_server-protocol (3.17.0.5)
128128
lint_roller (1.1.0)
129129
llhttp-ffi (0.5.1)
130130
ffi-compiler (~> 1.0)
131131
rake (~> 13.0)
132132
logger (1.7.0)
133-
loofah (2.24.0)
133+
loofah (2.24.1)
134134
crass (~> 1.0.2)
135135
nokogiri (>= 1.12.0)
136136
mail (2.8.1)
@@ -142,7 +142,7 @@ GEM
142142
mini_mime (1.1.5)
143143
minitest (5.25.5)
144144
minitest-cc (1.0.0)
145-
net-imap (0.5.8)
145+
net-imap (0.5.9)
146146
date
147147
net-protocol
148148
net-pop (0.1.2)
@@ -162,12 +162,12 @@ GEM
162162
prettyprint
163163
prettyprint (0.2.0)
164164
prism (1.4.0)
165-
psych (5.2.4)
165+
psych (5.2.6)
166166
date
167167
stringio
168168
public_suffix (6.0.2)
169169
racc (1.8.1)
170-
rack (3.1.14)
170+
rack (3.1.16)
171171
rack-session (2.1.1)
172172
base64 (>= 0.1.0)
173173
rack (>= 3.0.0)
@@ -189,7 +189,7 @@ GEM
189189
activesupport (= 7.2.2.1)
190190
bundler (>= 1.15.0)
191191
railties (= 7.2.2.1)
192-
rails-dom-testing (2.2.0)
192+
rails-dom-testing (2.3.0)
193193
activesupport (>= 5.0.0)
194194
minitest
195195
nokogiri (>= 1.6)
@@ -205,25 +205,26 @@ GEM
205205
thor (~> 1.0, >= 1.2.2)
206206
zeitwerk (~> 2.6)
207207
rainbow (3.1.1)
208-
rake (13.2.1)
209-
rdoc (6.13.1)
208+
rake (13.3.0)
209+
rdoc (6.14.2)
210+
erb
210211
psych (>= 4.0.0)
211212
regexp_parser (2.10.0)
212213
reline (0.6.1)
213214
io-console (~> 0.5)
214215
rexml (3.4.1)
215-
rubocop (1.75.5)
216+
rubocop (1.78.0)
216217
json (~> 2.3)
217218
language_server-protocol (~> 3.17.0.2)
218219
lint_roller (~> 1.1.0)
219220
parallel (~> 1.10)
220221
parser (>= 3.3.0.2)
221222
rainbow (>= 2.2.2, < 4.0)
222223
regexp_parser (>= 2.9.3, < 3.0)
223-
rubocop-ast (>= 1.44.0, < 2.0)
224+
rubocop-ast (>= 1.45.1, < 2.0)
224225
ruby-progressbar (~> 1.7)
225226
unicode-display_width (>= 2.4.0, < 4.0)
226-
rubocop-ast (1.44.1)
227+
rubocop-ast (1.46.0)
227228
parser (>= 3.3.7.2)
228229
prism (~> 1.4)
229230
ruby-progressbar (1.13.0)
@@ -236,9 +237,9 @@ GEM
236237
actionpack (>= 6.1)
237238
activesupport (>= 6.1)
238239
sprockets (>= 3.0.0)
239-
sqlite3 (2.6.0-x86_64-linux-gnu)
240+
sqlite3 (2.7.3-x86_64-linux-gnu)
240241
stringio (3.1.7)
241-
thor (1.3.2)
242+
thor (1.4.0)
242243
timeout (0.4.3)
243244
tzinfo (2.0.6)
244245
concurrent-ruby (~> 1.0)
@@ -252,11 +253,11 @@ GEM
252253
addressable (>= 2.8.0)
253254
crack (>= 0.3.2)
254255
hashdiff (>= 0.4.0, < 2.0.0)
255-
websocket-driver (0.7.7)
256+
websocket-driver (0.8.0)
256257
base64
257258
websocket-extensions (>= 0.1.0)
258259
websocket-extensions (0.1.5)
259-
zeitwerk (2.7.2)
260+
zeitwerk (2.7.3)
260261

261262
PLATFORMS
262263
x86_64-linux
@@ -274,4 +275,4 @@ DEPENDENCIES
274275
webmock
275276

276277
BUNDLED WITH
277-
2.6.5
278+
2.6.2

app/models/rails_url_shortener/visit.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class Visit < ApplicationRecord
3535
# Return boolean
3636
# rubocop:disable Metrics/AbcSize
3737
def self.parse_and_save(url, request)
38-
return false if !RailsUrlShortener.save_visits
38+
return false unless RailsUrlShortener.save_visits
39+
3940
browser(request)
4041
return false if !RailsUrlShortener.save_bots_visits && @browser.bot?
4142

lib/rails_url_shortener/model.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module RailsUrlShortener
22
module Model
3-
# rubocop:disable Naming/PredicateName
3+
# rubocop:disable Naming/PredicatePrefix
44
def has_short_urls
55
class_eval do
66
has_many :urls, class_name: 'RailsUrlShortener::Url', as: 'owner'
77
end
88
end
9-
# rubocop:enable Naming/PredicateName
9+
# rubocop:enable Naming/PredicatePrefix
1010
end
1111
end

rails_url_shortener.gemspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ Gem::Specification.new do |spec|
2121
spec.required_ruby_version = '>= 3.1'
2222
spec.required_rubygems_version = '>= 1.8.11'
2323

24-
spec.metadata['homepage_uri'] = spec.homepage
25-
2624
spec.metadata = {
2725
'bug_tracker_uri' => 'https://www.github.com/a-chacon/rails-url-shortener/issues',
2826
'changelog_uri' => "https://www.github.com/a-chacon/rails-url-shortener/releases/tag/v#{RailsUrlShortener::VERSION}",

0 commit comments

Comments
 (0)