Browse Source

Maintenance: Updated rubocop(-* gems) to latest version (1.16.0).

Martin Gruner 3 years ago
parent
commit
c4d2d7fd3b

+ 3 - 3
Gemfile.lock

@@ -456,16 +456,16 @@ GEM
       rspec-support (~> 3.9.0)
     rspec-support (3.9.3)
     rszr (0.5.2)
-    rubocop (1.15.0)
+    rubocop (1.16.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.5.0, < 2.0)
+      rubocop-ast (>= 1.7.0, < 2.0)
       ruby-progressbar (~> 1.7)
       unicode-display_width (>= 1.4.0, < 3.0)
-    rubocop-ast (1.6.0)
+    rubocop-ast (1.7.0)
       parser (>= 3.0.1.1)
     rubocop-performance (1.11.3)
       rubocop (>= 1.7.0, < 2.0)

+ 1 - 1
app/models/channel/email_parser.rb

@@ -274,7 +274,7 @@ returns
           content_type: mail[:content_type],
           body:         mail[:body],
           from:         mail[:from],
-          reply_to:     mail[:"reply-to"],
+          reply_to:     mail[:'reply-to'],
           to:           mail[:to],
           cc:           mail[:cc],
           subject:      mail[:subject],

+ 1 - 1
lib/gitlab/http_client.rb

@@ -39,7 +39,7 @@ class GitLab
 
     def headers
       {
-        "PRIVATE-TOKEN": @api_token
+        'PRIVATE-TOKEN': @api_token
       }
     end
   end

+ 1 - 1
spec/system/manage/organizations_spec.rb

@@ -14,7 +14,7 @@ RSpec.describe 'Manage > Organizations', type: :system do
         it 'creates record', db_strategy: :reset do
 
           # required to edit attribute in admin interface
-          screens = { edit:  { "admin.organization": { shown: true, required: false } } }
+          screens = { edit:  { 'admin.organization': { shown: true, required: false } } }
 
           attribute = create(:object_manager_attribute_text,
                              object_name:             'Organization',