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

Emoji for technology - part 1 #436

Merged
merged 2 commits into from
Nov 20, 2023
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddColumnEmojiToTechnologies < ActiveRecord::Migration[7.1]
def change
add_column :technologies, :emoji, :string
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_09_26_080000) do
ActiveRecord::Schema[7.1].define(version: 2023_11_20_143000) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
Expand Down Expand Up @@ -245,6 +245,7 @@
t.string "github_repo"
t.virtual "github_url", type: :string, as: "('https://github.com/'::text || (github_repo)::text)", stored: true
t.string "website_url"
t.string "emoji"
t.index ["slug"], name: "index_technologies_on_slug"
end

Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/apache_solr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_solr = Technology.where(slug: 'solr').first_or_initialize
icon_solr_original_svg = File.read('./db/seeds/technology/svg/apache_solr.svg')
technology_solr.assign_attributes(
emoji: '🔍🌻',
icon: icon_solr_original_svg,
name: 'Solr',
title: 'Apache Solr',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_docker_original_svg = File.read('./db/seeds/technology/svg/docker-original.svg')
icon_docker_wordmark_svg = File.read('./db/seeds/technology/svg/docker-original-wordmark.svg')
technology_docker.assign_attributes(
emoji: '🐳📦',
icon: icon_docker_original_svg,
icon_wordmark: icon_docker_wordmark_svg,
name: 'docker',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_elasticsearch = Technology.where(slug: 'elasticsearch').first_or_initialize
icon_elasticsearch_original_svg = File.read('./db/seeds/technology/svg/elasticsearch.svg')
technology_elasticsearch.assign_attributes(
emoji: '🔍🌐📈',
github_repo: 'elastic/elasticsearch',
icon: icon_elasticsearch_original_svg,
name: 'elasticsearch',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/emberjs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_emberjs = Technology.where(slug: 'emberjs').first_or_initialize
icon_emberjs_wordmark_svg = File.read('./db/seeds/technology/svg/ember-original-wordmark.svg')
technology_emberjs.assign_attributes(
emoji: '🐹🔥',
github_repo: 'emberjs/ember.js',
icon_wordmark: icon_emberjs_wordmark_svg,
name: 'ember',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/javascript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_javascript = Technology.where(slug: 'javascript').first_or_initialize
icon_javascript_original_svg = File.read('./db/seeds/technology/svg/javascript-original.svg')
technology_javascript.assign_attributes(
emoji: '📜💻',
icon: icon_javascript_original_svg,
name: 'javascript',
title: 'JavaScript'
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/leaflet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_leaflet = Technology.where(slug: 'leaflet').first_or_initialize
icon_leaflet_wordmark_svg = File.read('./db/seeds/technology/svg/leaflet-wordmark.svg')
technology_leaflet.assign_attributes(
emoji: '🍃🗺️',
github_repo: 'Leaflet/Leaflet',
icon_wordmark: icon_leaflet_wordmark_svg,
name: 'leaflet',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_linux = Technology.where(slug: 'linux').first_or_initialize
icon_linux_original_svg = File.read('./db/seeds/technology/svg/linux-original.svg')
technology_linux.assign_attributes(
emoji: '🐧🖥️',
icon: icon_linux_original_svg,
name: 'linux',
title: 'GNU/Linux'
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/mathematica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_mathematica = Technology.where(slug: 'mathematica').first_or_initialize
icon_mathematica_svg = File.read('./db/seeds/technology/svg/mathematica.svg')
technology_mathematica.assign_attributes(
emoji: '🧮📊💻',
icon: icon_mathematica_svg,
name: 'mathematica',
title: 'Mathematica',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/matlab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_matlab = Technology.where(slug: 'matlab').first_or_initialize
icon_matlab_original_svg = File.read('./db/seeds/technology/svg/matlab-original.svg')
technology_matlab.assign_attributes(
emoji: '📊🔢💻',
icon: icon_matlab_original_svg,
name: 'MATLAB',
title: 'MATLAB',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_minitest = Technology.where(slug: 'minitest').first_or_initialize
icon_minitest_svg = File.read('./db/seeds/technology/svg/minitest-spec-rails.svg')
technology_minitest.assign_attributes(
emoji: '🧪📝',
github_repo: 'minitest/minitest',
icon: icon_minitest_svg,
name: 'minitest',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_mysql_original_svg = File.read('./db/seeds/technology/svg/mysql-original.svg')
icon_mysql_wordmark_svg = File.read('./db/seeds/technology/svg/mysql-original-wordmark.svg')
technology_mysql.assign_attributes(
emoji: '🐬📊',
icon: icon_mysql_original_svg,
icon_wordmark: icon_mysql_wordmark_svg,
name: 'mysql',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/opensearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_opensearch_original_svg = File.read('./db/seeds/technology/svg/opensearch_logo_default.svg')
icon_opensearch_wordmark_svg = File.read('./db/seeds/technology/svg/opensearch_mark_default.svg')
technology_opensearch.assign_attributes(
emoji: '🔍🌐🔓',
github_repo: 'opensearch-project/OpenSearch',
icon: icon_opensearch_original_svg,
icon_wordmark: icon_opensearch_wordmark_svg,
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/pivotal_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_pivotal_tracker = Technology.where(slug: 'pivotal-tracker').first_or_initialize
icon_pivotal_tracker_svg = File.read('./db/seeds/technology/svg/pivotal-tracker.svg')
technology_pivotal_tracker.assign_attributes(
emoji: '📊🚀🔍',
icon: icon_pivotal_tracker_svg,
name: 'Pivotal Tracker',
title: 'Pivotal Tracker',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/playwright.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_playwright = Technology.where(slug: 'playwright').first_or_initialize
icon_playwright_original_svg = File.read('./db/seeds/technology/svg/playwright.svg')
technology_playwright.assign_attributes(
emoji: '🎭🎮',
github_repo: 'microsoft/playwright',
icon: icon_playwright_original_svg,
name: 'playwright',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/postgis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_postgis_brand_svg = File.read('./db/seeds/technology/svg/postgis-brand.svg')
_icon_postgis_original_svg = File.read('./db/seeds/technology/svg/postgis.svg')
technology_postgis.assign_attributes(
emoji: '🌐🗺️📊',
github_repo: 'postgis/postgis',
icon: icon_postgis_brand_svg,
name: 'postgis',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_postgresql_original_svg = File.read('./db/seeds/technology/svg/postgresql-original.svg')
icon_postgresql_wordmark_svg = File.read('./db/seeds/technology/svg/postgresql-original-wordmark.svg')
technology_postgresql.assign_attributes(
emoji: '🐘📊',
icon: icon_postgresql_original_svg,
icon_wordmark: icon_postgresql_wordmark_svg,
name: 'postgresql',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_python_original_svg = File.read('./db/seeds/technology/svg/python-original.svg')
icon_python_wordmark_svg = File.read('./db/seeds/technology/svg/python-original-wordmark.svg')
technology_python.assign_attributes(
emoji: '🐍👨‍💻',
icon: icon_python_original_svg,
icon_wordmark: icon_python_wordmark_svg,
name: 'python',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/react.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_react_original_svg = File.read('./db/seeds/technology/svg/react-original.svg')
icon_react_wordmark_svg = File.read('./db/seeds/technology/svg/react-original-wordmark.svg')
technology_react.assign_attributes(
emoji: '⚛️🚀',
github_repo: 'facebook/react',
icon: icon_react_original_svg,
icon_wordmark: icon_react_wordmark_svg,
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/red_hat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_red_hat_original_svg = File.read('./db/seeds/technology/svg/redhat-original.svg')
icon_red_hat_wordmark_svg = File.read('./db/seeds/technology/svg/redhat-original-wordmark.svg')
technology_red_hat_linux.assign_attributes(
emoji: '🎩🔴',
icon: icon_red_hat_original_svg,
icon_wordmark: icon_red_hat_wordmark_svg,
name: 'Red Hat',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_rspec_original_svg = File.read('./db/seeds/technology/svg/rspec-original.svg')
icon_rspec_wordmark_svg = File.read('./db/seeds/technology/svg/rspec-original-wordmark.svg')
technology_rspec.assign_attributes(
emoji: '🚥📝',
github_repo: 'rspec/rspec-core',
icon: icon_rspec_original_svg,
icon_wordmark: icon_rspec_wordmark_svg,
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_ruby_original_svg = File.read('./db/seeds/technology/svg/ruby-original.svg')
icon_ruby_wordmark_svg = File.read('./db/seeds/technology/svg/ruby-original-wordmark.svg')
technology_ruby.assign_attributes(
emoji: '💎',
github_repo: 'ruby/ruby',
icon: icon_ruby_original_svg,
icon_wordmark: icon_ruby_wordmark_svg,
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/ruby_on_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_ruby_on_rails = Technology.where(slug: 'ruby-on-rails').first_or_initialize
icon_ruby_on_rails_wordmark_svg = File.read('./db/seeds/technology/svg/rails-original-wordmark.svg')
technology_ruby_on_rails.assign_attributes(
emoji: '🛤️🚂',
github_repo: 'rails/rails',
icon_wordmark: icon_ruby_on_rails_wordmark_svg,
name: 'rails',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/selenium_ide.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_selenium_ide = Technology.where(slug: 'selenium-ide').first_or_initialize
icon_selenium_ide_svg = File.read('./db/seeds/technology/svg/selenium-ide.svg')
technology_selenium_ide.assign_attributes(
emoji: '🕷️🛠️🖱️',
github_repo: 'seleniumhq/selenium-ide',
name: 'Selenium IDE',
title: 'Selenium IDE',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/selenium_webdriver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_selenium_webdriver = Technology.where(slug: 'selenium-webdriver').first_or_initialize
icon_selenium_webdriver_svg = File.read('./db/seeds/technology/svg/selenium-webdriver.svg')
technology_selenium_webdriver.assign_attributes(
emoji: '🕷️🚗💻',
github_repo: 'seleniumhq/selenium',
icon: icon_selenium_webdriver_svg,
name: 'Selenium WebDriver',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/shoulda_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_shoulda_matchers_original_svg = File.read('./db/seeds/technology/svg/shoulda-matchers.svg')
_icon_shoulda_matchers_wordmark_svg = File.read('./db/seeds/technology/svg/shoulda-matchers-wordmark.svg')
technology_shoulda_matchers.assign_attributes(
emoji: '🧦',
github_repo: 'thoughtbot/shoulda-matchers',
icon: icon_shoulda_matchers_original_svg,
name: 'Shoulda Matchers',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_sinatra = Technology.where(slug: 'sinatra').first_or_initialize
icon_sinatra_svg = File.read('./db/seeds/technology/svg/sinatra.svg')
technology_sinatra.assign_attributes(
emoji: '🎤🎸🕺',
github_repo: 'sinatra/sinatra',
icon: icon_sinatra_svg,
name: 'sinatra',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/sqlite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_sqlite_original_svg = File.read('./db/seeds/technology/svg/sqlite-original.svg')
icon_sqlite_wordmark_svg = File.read('./db/seeds/technology/svg/sqlite-original-wordmark.svg')
technology_sqlite.assign_attributes(
emoji: '🗃️📊',
github_repo: 'sqlite/sqlite',
icon: icon_sqlite_original_svg,
icon_wordmark: icon_sqlite_wordmark_svg,
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/terraform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_terraform_original_svg = File.read('./db/seeds/technology/svg/terraform-original.svg')
icon_terraform_wordmark_svg = File.read('./db/seeds/technology/svg/terraform-original-wordmark.svg')
technology_terraform.assign_attributes(
emoji: '🌍🏗️',
github_repo: 'hashicorp/terraform',
icon: icon_terraform_original_svg,
icon_wordmark: icon_terraform_wordmark_svg,
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/trello.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon_trello_plain_svg = File.read('./db/seeds/technology/svg/trello-plain.svg')
icon_trello_wordmark_svg = File.read('./db/seeds/technology/svg/trello-plain-wordmark.svg')
technology_trello.assign_attributes(
emoji: '📌🗂️📆',
icon: icon_trello_plain_svg,
icon_wordmark: icon_trello_wordmark_svg,
name: 'Trello',
Expand Down
1 change: 1 addition & 0 deletions db/seeds/technology/truffleruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
technology_truffleruby = Technology.where(slug: 'truffleruby').first_or_initialize
icon_truffleruby_svg = File.read('./db/seeds/technology/svg/truffleruby.svg')
technology_truffleruby.assign_attributes(
emoji: '🔍💎🚀',
github_repo: 'oracle/truffleruby',
icon: icon_truffleruby_svg,
name: 'truffleruby',
Expand Down
Loading