* [ruby-core:121101] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1
@ 2025-02-18 14:40 jamesst20 (James St-Pierre) via ruby-core
2025-02-18 14:55 ` [ruby-core:121102] " jamesst20 (James St-Pierre) via ruby-core
2025-03-11 7:51 ` [ruby-core:121287] " mame (Yusuke Endoh) via ruby-core
0 siblings, 2 replies; 3+ messages in thread
From: jamesst20 (James St-Pierre) via ruby-core @ 2025-02-18 14:40 UTC (permalink / raw)
To: ruby-core; +Cc: jamesst20 (James St-Pierre)
Issue #21147 has been reported by jamesst20 (James St-Pierre).
----------------------------------------
Bug #21147: [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1
https://bugs.ruby-lang.org/issues/21147
* Author: jamesst20 (James St-Pierre)
* Status: Open
* ruby -v: ruby 3.3.7 (2025-01-15 revision be31f993d7) [arm64-darwin24], ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
``` ruby
a = Time.zone.now.to_date
b = Time.zone.now.to_date
# Ruby 3.3.7
(a..b).to_a
=> [Tue, 18 Feb 2025]
# Ruby 3.4.1
(a..b).to_a
=> []
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:121102] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1
2025-02-18 14:40 [ruby-core:121101] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1 jamesst20 (James St-Pierre) via ruby-core
@ 2025-02-18 14:55 ` jamesst20 (James St-Pierre) via ruby-core
2025-03-11 7:51 ` [ruby-core:121287] " mame (Yusuke Endoh) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: jamesst20 (James St-Pierre) via ruby-core @ 2025-02-18 14:55 UTC (permalink / raw)
To: ruby-core; +Cc: jamesst20 (James St-Pierre)
Issue #21147 has been updated by jamesst20 (James St-Pierre).
Sorry, the exemple above is incorrect.
Pure Ruby reproductible
```ruby
require 'date'
require 'json'
a = Time.now.to_date
# Ruby 3.3.7
(a..a).step(7).to_a
# => [Tue, 18 Feb 2025]
# Ruby 3.4.1
(a..a).step(7).to_a
# => []
```
----------------------------------------
Bug #21147: [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1
https://bugs.ruby-lang.org/issues/21147#change-112022
* Author: jamesst20 (James St-Pierre)
* Status: Open
* ruby -v: ruby 3.3.7 (2025-01-15 revision be31f993d7) [arm64-darwin24], ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
``` ruby
a = Time.zone.now.to_date
b = Time.zone.now.to_date
# Ruby 3.3.7
(a..b).to_a
=> [Tue, 18 Feb 2025]
# Ruby 3.4.1
(a..b).to_a
=> []
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:121287] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1
2025-02-18 14:40 [ruby-core:121101] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1 jamesst20 (James St-Pierre) via ruby-core
2025-02-18 14:55 ` [ruby-core:121102] " jamesst20 (James St-Pierre) via ruby-core
@ 2025-03-11 7:51 ` mame (Yusuke Endoh) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2025-03-11 7:51 UTC (permalink / raw)
To: ruby-core; +Cc: mame (Yusuke Endoh)
Issue #21147 has been updated by mame (Yusuke Endoh).
Status changed from Open to Closed
I think it is already fixed by #21030 and backported to ruby_3_4 branch. Please wait for the next release of 3.4 series
----------------------------------------
Bug #21147: [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1
https://bugs.ruby-lang.org/issues/21147#change-112251
* Author: jamesst20 (James St-Pierre)
* Status: Closed
* ruby -v: ruby 3.3.7 (2025-01-15 revision be31f993d7) [arm64-darwin24], ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
``` ruby
a = Time.zone.now.to_date
b = Time.zone.now.to_date
# Ruby 3.3.7
(a..b).to_a
=> [Tue, 18 Feb 2025]
# Ruby 3.4.1
(a..b).to_a
=> []
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-11 7:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-18 14:40 [ruby-core:121101] [Ruby master Bug#21147] [Breaking changes or Bug] DateTime Range#to_a behaves different between 3.3.7 and 3.4.1 jamesst20 (James St-Pierre) via ruby-core
2025-02-18 14:55 ` [ruby-core:121102] " jamesst20 (James St-Pierre) via ruby-core
2025-03-11 7:51 ` [ruby-core:121287] " mame (Yusuke Endoh) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).