File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ MATOMO_REPO_URL = 'https://github.com/matomo-org/device-detector'
4545MATOMO_REPO_TAG = '6.4.6'
4646MATOMO_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
5656desc 'update regex database from matomo project'
5757task :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
6666desc 'update fixtures from matomo project'
6767task :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' } ,
You can’t perform that action at this time.
0 commit comments