2024-02-16
- vipulnsward
(from Ruby on Rails)
Hi! Vipul here with the latest updates for This Week in Rails!
Hi! Vipul here with the latest updates for This Week in Rails!
Rails World CFP
Call for Papers is now open for The Rails World 2024 conference that will be held in Toronto, Canada this year.
The CFP will remain open until 21st March.
Head over here to submit your proposal!
Generate devcontainer files by default
This change generates a .devcontainer folder and its contents when creating a new app.
The .devcontainer folder includes everything needed to boot the app and do development in a remote container.
These files can be skipped using the --skip-devcontainer option.
Add ActiveRecord::Base.with_connection as a shortcut for leasing a connection for a short duration
This change adds ActiveRecord::Base.with_connection as a shortcut for leasing a connection for a short duration.
The leased connection is yielded, and for the duration of the block, any call to ActiveRecord::Base.connection will yield that same connection.
This is useful to perform a few database operations without causing a connection to be leased for the entire duration of the request or job.
Support encrypting binary columns
Previously encrypting binary columns with the ActiveRecord::Encryption::MessageSerializer incidentally worked for MySQL and SQLite, but not PostgreSQL.
This change adds proper support now for encrypting binary columns types.
Suggest puma-dev configuration in bin/setup
Rails now suggest puma-dev as the golden path for developing multiple Rails applications locally, if you’re not using Docker.
bin/setup has now been updated to suggest how to get that setup.
Add .test to default allowed host in development mode
Continuing on support for puma-dev this change adds “.test” as a default allowed host in development to ensure a smooth setup.
You can view the whole list of changes here.
We had 30 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.
[Technology]
🌎 https://rubyonrails.org/2024/2/16/this-week-in-rails
[🧠] [v2] article_embedding_description: {:llm_project_id=>"Unavailable", :llm_dimensions=>nil, :article_size=>3699, :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] [v1/3] title_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>3699, :poly_field=>"title", :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] [v1/3] summary_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>3699, :poly_field=>"summary", :llm_embeddings_model_name=>"textembedding-gecko"}
[🧠] As per bug https://github.com/palladius/gemini-news-crawler/issues/4 we can state this article belongs to titile/summary version: v3 (very few articles updated on 9oct24)
{"id"=>4262,
"title"=>"Rails World CFP, ActiveRecord::Base.with_connection, devcontainer and puma-dev support and more!",
"summary"=>"Hi! Vipul here with the latest updates for This Week in Rails!",
"content"=>"Hi! Vipul here with the latest updates for This Week in Rails!
\n\nRails World CFP
\nCall for Papers is now open for The Rails World 2024 conference that will be held in Toronto, Canada this year.\nThe CFP will remain open until 21st March.\nHead over here to submit your proposal!
\n\nGenerate devcontainer files by default
\nThis change generates a .devcontainer
folder and its contents when creating a new app.\nThe .devcontainer
folder includes everything needed to boot the app and do development in a remote container.\nThese files can be skipped using the --skip-devcontainer
option.
\n\nAdd ActiveRecord::Base.with_connection
as a shortcut for leasing a connection for a short duration
\nThis change adds ActiveRecord::Base.with_connection
as a shortcut for leasing a connection for a short duration.\nThe leased connection is yielded, and for the duration of the block, any call to ActiveRecord::Base.connection
will yield that same connection.\nThis is useful to perform a few database operations without causing a connection to be leased for the entire duration of the request or job.
\n\nSupport encrypting binary columns
\nPreviously encrypting binary columns with the ActiveRecord::Encryption::MessageSerializer
incidentally worked for MySQL and SQLite, but not PostgreSQL.\nThis change adds proper support now for encrypting binary columns types.
\n\nSuggest puma-dev configuration in bin/setup
\nRails now suggest puma-dev as the golden path for developing multiple Rails applications locally, if you’re not using Docker.\nbin/setup
has now been updated to suggest how to get that setup.
\n\nAdd .test to default allowed host in development mode
\nContinuing on support for puma-dev this change adds “.test” as a default allowed host in development to ensure a smooth setup.
\n\nYou can view the whole list of changes here.
\nWe had 30 contributors to the Rails codebase this past week!
\n\nUntil next time!
\n\nSubscribe to get these updates mailed to you.
",
"author"=>"vipulnsward",
"link"=>"https://rubyonrails.org/2024/2/16/this-week-in-rails",
"published_date"=>Fri, 16 Feb 2024 00:00:00.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://rubyonrails.org/2024/2/16/this-week-in-rails",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Mon, 01 Apr 2024 20:13:45.930251000 UTC +00:00,
"updated_at"=>Mon, 21 Oct 2024 18:03:54.549765000 UTC +00:00,
"newspaper"=>"Ruby on Rails",
"macro_region"=>"Technology"}