-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/change-capacity
- Loading branch information
Showing
37 changed files
with
524 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2022-10-08 19:18:22 UTC using RuboCop version 1.36.0. | ||
# on 2023-04-19 19:51:02 UTC using RuboCop version 1.50.2. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 5 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
# Configuration parameters: Include. | ||
# Include: **/test/**/*.rb | ||
Rails/ActionControllerTestCase: | ||
Exclude: | ||
- 'test/controllers/event_controller_test.rb' | ||
- 'test/controllers/partners_controller_test.rb' | ||
- 'test/controllers/registrations_controller_test.rb' | ||
- 'test/controllers/users_controller_test.rb' | ||
- 'test/controllers/welcome_controller_test.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.4 | ||
3.0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby 3.0.4 | ||
ruby 3.0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ruby:3.0.4 | ||
FROM ruby:3.0.6 | ||
|
||
ENV RAILS_ENV=production | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'barby/barcode/ean_13' | ||
require 'barby/outputter/html_outputter' | ||
|
||
class GenerateHtmlBarcodes | ||
def initialize(barcode_data) | ||
@barcode_data = barcode_data | ||
end | ||
|
||
def call | ||
barcode = Barby::EAN13.new(@barcode_data) | ||
|
||
html_outputter = Barby::HtmlOutputter.new(barcode) | ||
html_outputter.to_html.html_safe # rubocop:disable Rails/OutputSafety | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
class GenerateIcal | ||
def initialize(event) | ||
@event = event | ||
end | ||
|
||
def call | ||
cal = Icalendar::Calendar.new | ||
cal.event do |e| | ||
e.dtstart = @event.start_date | ||
e.dtend = @event.end_date | ||
e.location = @event.location | ||
e.summary = @event.name | ||
e.description = @event.website | ||
e.organizer = "mailto:#{@event.contact_email}" | ||
e.organizer = Icalendar::Values::CalAddress.new("mailto:#{@event.contact_email}", cn: @event.club.name) | ||
end | ||
cal.publish | ||
cal.to_ical | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
table.barby-barcode { border-spacing: 0; } | ||
tr.barby-row {} | ||
td.barby-cell { width: 3px; height: 70px; } | ||
td.barby-cell.on { background: #000; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.