diff --git a/.rubocop.yml b/.rubocop.yml index 074d0225..f5399879 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,8 +17,6 @@ AllCops: #################### Metrics ############################### # Start with cops for Ruby >= 2.3 disabled -Style/FrozenStringLiteralComment: - Enabled: false Style/SafeNavigation: Enabled: false Style/NumericPredicate: diff --git a/app/views/admin/booths/_all_booths.xlsx.axlsx b/app/views/admin/booths/_all_booths.xlsx.axlsx index bd1cc1db..43f77b49 100644 --- a/app/views/admin/booths/_all_booths.xlsx.axlsx +++ b/app/views/admin/booths/_all_booths.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.add_worksheet(name: 'all booths') do |sheet| bold_style = wb.styles.add_style(b: true) wrap_text = wb.styles.add_style alignment: {wrap_text: true} diff --git a/app/views/admin/booths/_confirmed_booths.xlsx.axlsx b/app/views/admin/booths/_confirmed_booths.xlsx.axlsx index 2dc10013..4d119fae 100644 --- a/app/views/admin/booths/_confirmed_booths.xlsx.axlsx +++ b/app/views/admin/booths/_confirmed_booths.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.add_worksheet(name: 'all booths') do |sheet| bold_style = wb.styles.add_style(b: true) wrap_text = wb.styles.add_style alignment: {wrap_text: true} diff --git a/app/views/admin/booths/booths.xlsx.axlsx b/app/views/admin/booths/booths.xlsx.axlsx index 5fe084db..33d16e72 100644 --- a/app/views/admin/booths/booths.xlsx.axlsx +++ b/app/views/admin/booths/booths.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb = xlsx_package.workbook xlsx_package.use_autowidth = true if @booth_export_option == 'confirmed' diff --git a/app/views/admin/events/_all_events.xlsx.axlsx b/app/views/admin/events/_all_events.xlsx.axlsx index 3197cf38..686102c5 100644 --- a/app/views/admin/events/_all_events.xlsx.axlsx +++ b/app/views/admin/events/_all_events.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.add_worksheet(name: 'all events') do |sheet| bold_style = wb.styles.add_style(b: true) wrap_text = wb.styles.add_style alignment: {wrap_text: true} diff --git a/app/views/admin/events/_all_with_comments.xlsx.axlsx b/app/views/admin/events/_all_with_comments.xlsx.axlsx index fd798ca5..60e038a6 100644 --- a/app/views/admin/events/_all_with_comments.xlsx.axlsx +++ b/app/views/admin/events/_all_with_comments.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.use_shared_strings = true wb.add_worksheet(name: 'events with comments') do |sheet| bold_style = wb.styles.add_style(b: true) diff --git a/app/views/admin/events/_confirmed_events.xlsx.axlsx b/app/views/admin/events/_confirmed_events.xlsx.axlsx index a1c8c886..bbb7ef82 100644 --- a/app/views/admin/events/_confirmed_events.xlsx.axlsx +++ b/app/views/admin/events/_confirmed_events.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.add_worksheet(name: 'confirmed events') do |sheet| bold_style = wb.styles.add_style(b: true) wrap_text = wb.styles.add_style alignment: {wrap_text: true} diff --git a/app/views/admin/events/events.xlsx.axlsx b/app/views/admin/events/events.xlsx.axlsx index abfd1365..7b8b1dc4 100644 --- a/app/views/admin/events/events.xlsx.axlsx +++ b/app/views/admin/events/events.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb = xlsx_package.workbook if @event_export_option == 'confirmed' render partial: 'confirmed_events', locals: {:wb => wb} diff --git a/app/views/admin/registrations/index.xlsx.axlsx b/app/views/admin/registrations/index.xlsx.axlsx index babc24ef..ee49eb4d 100644 --- a/app/views/admin/registrations/index.xlsx.axlsx +++ b/app/views/admin/registrations/index.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb = xlsx_package.workbook wb.add_worksheet(name: 'registrations') do |sheet| bold_style = wb.styles.add_style(b: true) diff --git a/app/views/admin/tracks/_all_tracks.xlsx.axlsx b/app/views/admin/tracks/_all_tracks.xlsx.axlsx index d1397193..1b9566a5 100644 --- a/app/views/admin/tracks/_all_tracks.xlsx.axlsx +++ b/app/views/admin/tracks/_all_tracks.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.add_worksheet(name: 'all tracks') do |sheet| bold_style = wb.styles.add_style(b: true) wrap_text = wb.styles.add_style alignment: {wrap_text: true} diff --git a/app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx b/app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx index 673b985c..1cb77318 100644 --- a/app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx +++ b/app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb.add_worksheet(name: 'all tracks') do |sheet| bold_style = wb.styles.add_style(b: true) wrap_text = wb.styles.add_style alignment: {wrap_text: true} diff --git a/app/views/admin/tracks/tracks.xlsx.axlsx b/app/views/admin/tracks/tracks.xlsx.axlsx index 6a84da9b..f90b6005 100644 --- a/app/views/admin/tracks/tracks.xlsx.axlsx +++ b/app/views/admin/tracks/tracks.xlsx.axlsx @@ -1,3 +1,5 @@ +# frozen_string_literal: true + wb = xlsx_package.workbook if @track_export_option == 'confirmed' render partial: 'confirmed_tracks', locals: { wb: wb } diff --git a/db/migrate/20180316185150_add_code_of_conduct_to_organization.rb b/db/migrate/20180316185150_add_code_of_conduct_to_organization.rb index 447e0c84..545900a3 100644 --- a/db/migrate/20180316185150_add_code_of_conduct_to_organization.rb +++ b/db/migrate/20180316185150_add_code_of_conduct_to_organization.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCodeOfConductToOrganization < ActiveRecord::Migration[5.0] def change add_column :organizations, :code_of_conduct, :text diff --git a/db/migrate/20180316220446_add_accepted_code_of_conduct_to_registrations.rb b/db/migrate/20180316220446_add_accepted_code_of_conduct_to_registrations.rb index fb5f043b..c100037e 100644 --- a/db/migrate/20180316220446_add_accepted_code_of_conduct_to_registrations.rb +++ b/db/migrate/20180316220446_add_accepted_code_of_conduct_to_registrations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddAcceptedCodeOfConductToRegistrations < ActiveRecord::Migration[5.0] def change add_column :registrations, :accepted_code_of_conduct, :boolean diff --git a/spec/features/code_of_conduct_spec.rb b/spec/features/code_of_conduct_spec.rb index 7ce27ce5..df6b7782 100644 --- a/spec/features/code_of_conduct_spec.rb +++ b/spec/features/code_of_conduct_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' feature 'Code of Conduct:' do