From: Tom Hughes Date: Wed, 29 Sep 2021 18:10:22 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/3332' X-Git-Tag: live~2474 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cb10c10ea3effe166ce9e1790d7b79993801ab61?hp=9ab15f38ea72ccd0a6b6715a9b8014c1f4ce1ad8 Merge remote-tracking branch 'upstream/pull/3332' --- diff --git a/Gemfile.lock b/Gemfile.lock index 00da83e1a..06752b223 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -77,8 +77,8 @@ GEM autoprefixer-rails (10.3.3.0) execjs (~> 2) aws-eventstream (1.2.0) - aws-partitions (1.503.0) - aws-sdk-core (3.121.0) + aws-partitions (1.507.0) + aws-sdk-core (3.121.1) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.239.0) aws-sigv4 (~> 1.1) @@ -151,9 +151,9 @@ GEM activerecord (>= 3.0, < 6.2) delayed_job (>= 3.0, < 5) docile (1.4.0) - doorkeeper (5.5.2) + doorkeeper (5.5.3) railties (>= 5) - doorkeeper-i18n (5.2.2) + doorkeeper-i18n (5.2.3) doorkeeper (>= 5.2) dry-configurable (0.13.0) concurrent-ruby (~> 1.0) @@ -405,18 +405,18 @@ GEM rexml (3.2.5) rinku (2.0.6) rotp (6.2.0) - rubocop (1.21.0) + rubocop (1.22.0) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 1.9.1, < 2.0) + rubocop-ast (>= 1.12.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.11.0) + rubocop-ast (1.12.0) parser (>= 3.0.1.1) - rubocop-minitest (0.15.0) + rubocop-minitest (0.15.1) rubocop (>= 0.90, < 2.0) rubocop-performance (1.11.5) rubocop (>= 1.7.0, < 2.0) @@ -465,7 +465,7 @@ GEM sprockets (>= 3.0.0) strong_migrations (0.7.8) activerecord (>= 5) - terser (1.1.6) + terser (1.1.7) execjs (>= 0.3.0, < 3) thor (1.1.0) tilt (2.0.10) diff --git a/app/models/trace.rb b/app/models/trace.rb index 0860d2b31..b3d87fc09 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -53,7 +53,7 @@ class Trace < ApplicationRecord def tagstring=(s) self.tags = if s.include? "," - s.split(/\s*,\s*/).reject { |tag| tag =~ /^\s*$/ }.collect do |tag| + s.split(/\s*,\s*/).grep_v(/^\s*$/).collect do |tag| tt = Tracetag.new tt.tag = tag tt diff --git a/config/locales/en.yml b/config/locales/en.yml index 6869e966b..c8392231e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1864,9 +1864,8 @@ en: credit_3_1_html: | The map tiles in the “standard style” at www.openstreetmap.org are a Produced Work by the OpenStreetMap Foundation using OpenStreetMap data - under the Open Database License. If you are using these tiles please use - the following attribution: - “Base map and data from OpenStreetMap and OpenStreetMap Foundation”. + under the Open Database License. When using this map style, the same attribution is + required as for the map data. credit_4_html: | For a browsable electronic map, the credit should appear in the corner of the map. For example: