Lansamentu 7.1.0 · rails/rails · GitHub

Photo of author

By naroman

Fixin AS:: MessagePack ho ENV[“RAILS_MAX_THREADS”]. Jonathan Hefner Aumenta API públiku foun ba transmita registro sira Ne’ebe durante ne’e hahu ba API privadu.Transmitasaun logu permite atu haruka mensajen logu ba sink seluk (STDOUT, fail …) no uza hanesan padraun iha ambiente dezenvolvimentu atu hakerek logus iha STDOUT no iha fail “development.log”. Uzus báziku: stdout_logger = Logger.new(STDOUT) file_logger = Logger.new(“development.log”) broadcast = ActiveSupport::BroadcastLogger.new(stdout_logger, file_logger) broadcast.info(“Ola!”) # Mensajen “Ola!” hakerek iha STDOUT no iha fail logu. Adisiona sink seluk ba transmitasaun: broadcast = ActiveSupport::BroadcastLogger.new broadcast.broadcast_to(Logger.new(STDERR)) Hasai sink husi transmitasaun: stdout_logger = Logger.new(STDOUT) broadcast = ActiveSupport::BroadcastLogger.new(stdout_logger) broadcast.stop_broadcasting_to(stdout_logger) Edouard Chin Halo Range#overlap? la inklui kalkula ho range ne’ebé laiha dadus iha Ruby < 3.3 Nobuyoshi Nakada, Shouichi Kamiya, Hartley McGuire Uza Ruby 3.3 Range#overlap? se karik maka iha Yasuo Honda Aumenta bigdecimal nudar dependénsia Active Support ne'ebé maka kandidatu ba gem Ruby 3.4. Versaun bigdecimal 3.1.4 ka kiik liu sei instaladu.Uzadór sira Ruby 2.7 no 3.0 ne'ebé hakarak bigdecimal versaun 2.0.0 ka 3.0.0 nudar gem padrãu, atu hatun bigdecimal iha aplikasaun Gemfile. Koichi ITO Aumenta drb, mutex_m no base64 ne'ebé maka kandidatu ba gem Ruby 3.4 Yasuo Honda Uza cache formatu version >=7.1 ka serializer personalizadu, cache ne’ebé halo expire no cache ne’ebé lói versaun bele deteta tanpa deserializar valór sira nian. Jonathan Hefner Halo loja cache sira hanesan loja boolean ba #delete Antes ne’e RedisCacheStore#delete sei hatudu 1 se entrada existi no 0 se laiha. Agora nia valor sai ho verdade se entrada existi no falsu se laiha, hanesan loja sira seluk. FileStore sei hatudu nil se entrada laiha no agora hatudu falsu mos. Petrik de Heus Cache stores Active Support agora suporta substitui compressor padrãun via opsaun :compressor. Kompressor ne’ebé deskreve tenki responde ba deflate no inflate. Karik: module MyCompressor def self.deflate(string) # lógika kompressaun… end def self.inflate(compressed) # lógika deskompressaun… end end config.cache_store = :redis_cache_store, { compressor: MyCompressor } Jonathan Hefner Cache stores Active Support agora suporta opsaun :serializer. Similar ho opsaun :coder, serializer tenki responde ba dump no load. Maibé serializer responsabiliza ba serializa valór cache, enkuantu kodér responsabiliza ba serializa instánsia inteira ActiveSupport::Cache::Entry. Tanba ne’e, output husi serializer bele komprimi automatikamente, enkuantu kodér responsabiliza ba kompressaun sira nia. Espefika serializer tanba kodér iha opsaun mutu ekskluzivu. Espefika sira hotu sei lansa ArgumentError. Jonathan Hefner Halo ActiveSupport::Inflector.humanize(nil) la halo NoMethodError: undefined method `end_with?\’ ba nil:NilClass. James Robinson La hatudu sekretu ba ActiveSupport::KeyGenerator#inspect. Antes: ActiveSupport::KeyGenerator.new(secret).inspect “#” Depois: ActiveSupport::KeyGenerator::Aes256Gcm(secret).inspect “#” Petrik de Heus Mihor mensajen error wainhira utiliza EventedFileUpdateChecker ho versãun Listen gem ne’ebé kompatível Hartley McGuire Aumenta komportamentu :report ba Deprecation Setar config.active_support.deprecation = :report uza errorreporter atu haruka deprecation warning ba ActiveSupport::ErrorReporter. Deprecation sira informa hanesan erros ne’ebé trata, ho severidade :warning. Uza hanesan deprecations ne’ebé akontese iha produção ba bug tracker. Étienne Barrié Muda Range#overlaps? ba #overlap? no adisiona alias ba kompatibilidade anterior Christian Schmidt Halo EncryptedConfiguration la hatudu valór erradu ba metodu Hash Hardey McGuire La hatudu sekretu ba MessageEncryptor#inspect. Antes: ActiveSupport::MessageEncryptor.new(secret, cipher: “aes-256-gcm”).inspect “#<

Tetun Translator

FREE
VIEW