Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ruby Australia Meetups and artwork #605

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion app/models/organisation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Organisation < ApplicationRecord
validates :name, presence: true

# enums
enum :kind, {conference: 0, meetup: 1}
enum :kind, {conference: 0, meetup: 1, organisation: 2}
enum :frequency, {unknown: 0, yearly: 1, monthly: 2, biyearly: 3, quarterly: 4}

def title
Expand Down
5 changes: 3 additions & 2 deletions app/models/talk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,10 @@ def update_from_yml_metadata!(event: nil)
return
end

date = static_metadata.try(:date) ||
date =
Date.parse(static_metadata.try(:date)) rescue nil ||
(parent_talk && parent_talk.static_metadata.try(:date)) ||
static_metadata.try(:published_at) ||
Time.parse(static_metadata.try(:published_at)).to_date rescue nil ||
(parent_talk && parent_talk.static_metadata.try(:published_at)) ||
event.start_date ||
event.end_date ||
Expand Down
12 changes: 12 additions & 0 deletions data/organisations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -731,3 +731,15 @@
slug: lyon-rb
language: french
youtube_channel_id: "UCFqRbkEEaM4w1iEK1ovBXxg"

- name: Ruby Australia
website: http://ruby.org.au
twitter: rubyconf
kind: organisation
frequency: unknown
playlist_matcher: Meetups
default_country_code: AU
youtube_channel_name: RubyAustralia
slug: ruby-australia
language: english
youtube_channel_id: UCr38SHAvOKMDyX3-8lhvJHA
14 changes: 14 additions & 0 deletions data/ruby-australia/playlists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

- id: PL9_jjLrTYxc3_iKoLe4ZDocgTi1GVwbND
title: Ruby Australia Meetup
location: Australia
description: Videos from Ruby meetups around Australia
published_at: '2017-05-22'
channel_id: UCr38SHAvOKMDyX3-8lhvJHA
videos_count: 195
metadata_parser: Youtube::VideoMetadata
slug: ruby-australia-meetup
banner_background: "#E3342E"
featured_background: "#E3342E"
featured_color: "#FFFFFF"
Loading
Loading