PicoPhone is a Ruby gem that wraps Google's libphonenumber C++ library using Rice, providing phone number parsing, validation, and formatting for any country. Pre-compiled native gems are available for Apple Silicon, x86_64 Linux, and aarch64 Linux. The API covers validity checks, possible number checks with reasons, multiple formatting styles (national, international, E.164), country/area code extraction, vanity number conversion, short number and emergency service lookups, supported region enumeration, and extension handling.
Nguồn: https://github.com/gjack/pico_phone. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
RubyGems 4.0.16 và Bundler 4.0.16 đã được phát hành, trong đó RubyGems tích hợp sẵn Bundler 4.0.16 và sửa lỗi tương thích với BSD make, còn Bundler cải tiến hỗ trợ mật mã hậu lượng tử (PQC) và khắc phục nhiều lỗi trên Windows.
Lập trình viên cần đọc để cập nhật kiến thức về các cải tiến mới trong RubyGems và Bundler, đặc biệt là PQC (tương lai bảo mật chống máy tính lượng tử) và cách tối ưu hóa việc quản lý dự án, tránh lỗi phổ biến như lỗi đường dẫn Windows hoặc file lockfile không tương thích.
Hanami 3.0, phiên bản lớn mới của framework web Ruby, vừa được phát hành với nhiều cải tiến quan trọng như mailers, hỗ trợ i18n, tích hợp Minitest, và tối ưu hiệu suất đáng kể. Bản phát hành này là kết quả của 8 tháng làm việc liên tục, hơn 150 pull request, cùng hai gem mới và tài liệu hướng dẫn mở rộng, kèm theo bản vá 3.0.1 và bộ benchmark công khai.
Lập trình viên Ruby nên đọc bài này vì Hanami 3.0 mang đến những cải tiến mạnh mẽ về hiệu suất và tính đa quốc gia, giúp tối ưu hóa ứng dụng web cho các dự án hiện đại và mở rộng khả năng phát triển với các tính năng mới như tích hợp Minitest và công cụ logging chuyên dụng.
Bài viết hướng dẫn triển khai sáu mẫu thiết kế cổ điển (Factory, Builder, Adapter, Decorator, Proxy, Facade) theo phong cách Ruby, sử dụng các tính năng ngôn ngữ như duck typing, modules, tap và SimpleDelegator để giảm boilerplate. Ruby ưu tiên composition hơn inheritance, điều này thể hiện xuyên suốt các mẫu thiết kế được trình bày.
Lập trình viên Ruby nên đọc bài này để hiểu cách áp dụng các mẫu thiết kế classic theo phong cách Ruby hiện đại, tiết kiệm thời gian và tránh sự phức tạp của các ngôn ngữ khác nhờ sự linh hoạt của duck typing và prefer composition over inheritance.

Thay vì tạo lớp ActiveJob mỏng để gọi phương thức đơn lẻ trong file recurring.yml, lập trình viên Ruby on Rails có thể sử dụng khóa command: để gọi trực tiếp phương thức lớp Ruby thuần. Cách này giảm boilerplate, giữ logic trong đối tượng Ruby thuần, và chỉ cần worker cấu hình cho queue solid_queue_recurring. Có thể ghi đè queue cho mỗi tác vụ.
Lập trình viên Ruby on Rails nên đọc bài này để tiết kiệm thời gian và tránh việc tạo lớp ActiveJob thừa khi chỉ cần xử lý nhiệm vụ định kỳ đơn giản, đồng thời tối ưu hóa cấu trúc mã bằng cách sử dụng Solid Queue một cách hiệu quả.
Bảng tham chiếu tương thích này liệt kê phiên bản JRuby từ 9.2 đến 10.1, bao gồm mức ngôn ngữ Ruby, phiên bản Java tối thiểu và phiên bản Rails hỗ trợ. JRuby 10 cải thiện thời gian khởi động nhờ AppCDS và Project CRaC, trong khi lợi thế của JRuby so với CRuby MRI bao gồm đa luồng thực sự (không có GVL), truy cập hệ sinh thái JVM và triển khai dưới dạng một artifact duy nhất.
Lập trình viên phát triển ứng dụng Rails cần tham khảo bảng so sánh này để chọn phiên bản JRuby phù hợp với yêu cầu Ruby version, Java cốt lõi và Rails version, giúp tối ưu hiệu năng, tương thích và triển khai nhanh chóng.
This week's Rails changelog covers several additions and fixes: a new this_quarter? method on Date/Time objects, a new ActiveJob::DeserializationError::RecordNotFound exception for clearer deserialization failures, a Rails::Application#ractorize! method for Ractor support, a fix for ActionController::Live streams hanging on client disconnect, support for endless/beginless ranges in form tag helpers, a fix for color_field ignoring explicit value: nil, and deprecation of the ActionController::Renderers::RENDERERS constant in favor of the public API.

This week's Rails codebase changes include: a new this_quarter? method on Date/Time that returns true if the date falls within the current quarter; a new ActiveJob::DeserializationError::RecordNotFound exception for missing records during argument deserialization; introduction of Rails::Application#ractorize! to prepare apps for Ractor sharing; a fix for ActionController::Live streams hanging on client disconnect due to a missing terminator in the buffer abort path; support for endless and beginless ranges in number_field_tag and range_field_tag; a fix for color_field ignoring explicit value: nil; and deprecation of the ActionController::Renderers::RENDERERS constant in favor of the public API. 26 contributors participated this week.
RubyEvents Guides is a living resource for people who want to start or run Ruby community events. Built from interviews with organizers of conferences like Rails World, Brighton Ruby, and Rocky Mountain Ruby, it offers practical advice on booking venues, finding speakers, and sustaining communities — no big budget or prior experience required.