Skip to content

Commit 94b049e

Browse files
committed
fix rubocop hints in Rakefile
1 parent 3763805 commit 94b049e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ MATOMO_REPO_URL = 'https://github.com/matomo-org/device-detector'
4545
MATOMO_REPO_TAG = '6.4.6'
4646
MATOMO_CHECKOUT_LOCATION = '/tmp/matomo_device_detector'
4747

48-
def get_latest_matomo_checkout
48+
def matomo_checkout!
4949
if File.exist?(MATOMO_CHECKOUT_LOCATION)
5050
system "cd #{MATOMO_CHECKOUT_LOCATION}; git fetch origin; git reset --hard #{MATOMO_REPO_TAG}"
5151
else
@@ -56,7 +56,7 @@ end
5656
desc 'update regex database from matomo project'
5757
task :update_regexes do
5858
top = File.expand_path(__dir__)
59-
get_latest_matomo_checkout
59+
matomo_checkout!
6060
Dir.glob("#{top}/regexes/**/*.yml").each do |f|
6161
File.unlink(f)
6262
end
@@ -66,7 +66,7 @@ end
6666
desc 'update fixtures from matomo project'
6767
task :update_fixtures do
6868
top = File.expand_path(__dir__)
69-
get_latest_matomo_checkout
69+
matomo_checkout!
7070

7171
fixture_mappings = [
7272
{ target_path: "#{top}/spec/fixtures/detector", source_path: 'Tests/fixtures/*.yml' },

0 commit comments

Comments
 (0)