summaryrefslogtreecommitdiff
path: root/ext/date/date_core.c
AgeCommit message (Collapse)Author
2024-02-21[ruby/date] Remove the unintentional ability to parse `Symbol`Nobuyoshi Nakada
It's been 2 years since ruby/date#49, so it's okay. https://github.com/ruby/date/commit/435dfec6c8
2023-09-20[ruby/date] [DOC] Fix linkBurdetteLamar
https://github.com/ruby/date/commit/2adb917487
2023-02-19[ruby/date] Removed (newly unneeded) alias remarksBurdette Lamar
(https://github.com/ruby/date/pull/88) https://github.com/ruby/date/commit/cfa7e9868b
2022-12-18[ruby/date] Adjust format [ci skip]Nobuyoshi Nakada
https://github.com/ruby/date/commit/71c35b4054
2022-12-13[ruby/date] Implement Date#deconstruct_keys and DateTime#deconstruct_keyszverok
https://github.com/ruby/date/commit/6bb6d3a810
2022-10-27[ruby/date] Check month range as civilNobuyoshi Nakada
2022-10-12[DOC] Replace the external URIs to docs with rdoc-refNobuyoshi Nakada
2022-08-15[ruby/date] [DOC] Enhanced intro for Date (https://github.com/ruby/date/pull/72)Burdette Lamar
https://github.com/ruby/date/commit/59a6673221
2022-08-08[ruby/date] Fix Time#to_datetime before calendar reformNobuyoshi Nakada
Time is always in the proleptic Gregorian calendar. Also DateTime#to_time should convert to the Gregorian calendar first, before extracting its components. https://bugs.ruby-lang.org/issues/18946#change-98527 https://github.com/ruby/date/commit/b2aee75248
2022-08-07[DOC] New doc about Julian/Gregorian (#70)Burdette Lamar
2022-08-03[ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/69)Burdette Lamar
Treats: ::_strptime ::strptime Adds 'Related' entry to some methods' doc. https://github.com/ruby/date/commit/a6c2129273
2022-08-03[ruby/date] [DOC] Enhanced RDoc for parser methods ↵Burdette Lamar
(https://github.com/ruby/date/pull/68) Treats: ::_httpdate ::_iso8601 ::_jisx0301 ::_parse ::_rfc2822 ::_rfc3339 ::_xmlschema ::httpdate ::iso8601 ::jisx0301 ::parse ::rfc2822 ::rfc3339 ::xmlschema https://github.com/ruby/date/commit/24bdab600a
2022-07-31[ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/67)Burdette Lamar
Treats: ::httpdate #to_date #to_time #to_datetime In behalf of ::httpdate, I've introduced section "Argument limit" that can be pointed to by various Date methods (similar to existing section "Argument start"). This will involve 8 already-enhanced methods plus 8 more not yet done. https://github.com/ruby/date/commit/00326ff99c
2022-07-30[ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/66)Burdette Lamar
Treats: #=== #to_s #inspect #strftme #asctime #iso3601 #rfc3339 #rfc2822 #httpdate #jisx0301 https://github.com/ruby/date/commit/aed66fedf6
2022-07-29[ruby/date] [DOC] Enhanced RDoc for <=> (https://github.com/ruby/date/pull/65)Burdette Lamar
https://github.com/ruby/date/commit/0cdbaa92e9
2022-07-27Manually sync with https://github.com/ruby/date/pull/64Hiroshi SHIBATA
2022-07-12[ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/63)Burdette Lamar
Treats: #next #<< #>> #next_month #prev_month #next_year #prev_year #step #upto #downto https://github.com/ruby/date/commit/4246441a35
2022-07-12[ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/62)Burdette Lamar
Minor edits to 11 methods' documentation. https://github.com/ruby/date/commit/00bb7f6648
2022-07-10[ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/61)Burdette Lamar
Omit private aliases from Rdoc. https://github.com/ruby/date/commit/48f9180663
2022-07-09[ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/59)Burdette Lamar
Minor changes (mostly doc-guide compliance) to 18 or so of simpler methods (getters). https://github.com/ruby/date/commit/00e37ba2b4
2022-07-08[ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/58)Burdette Lamar
Brings a dozen call-seq schemas into compliance with the doc guide. Adds links to section "Argument start" where needed. Revises (minorly) ::today. Otherwise, does not disturb existing text. https://github.com/ruby/date/commit/9aec11df50
2022-07-07[ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/57)Burdette Lamar
All things commercial. https://github.com/ruby/date/commit/9d3bc61728
2022-07-05[ruby/date] Update ext/date/date_core.cBurdette Lamar
https://github.com/ruby/date/commit/8eb1c780fb Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/e36690f70e
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/dcc0742623
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/91c632f156
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/5c18ec031e
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/fd3ae275c3
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/ac25182c66
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/f9ecaad2ee
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/e80fee4f30
2022-02-25[ruby/date] Suppress declaration-after-statement warningsNobuyoshi Nakada
https://github.com/ruby/date/commit/60bd16009d
2022-02-25[ruby/date] Deprecate the unintentional ability to parse `Symbol`Nobuyoshi Nakada
https://github.com/ruby/date/commit/d57818f3b3
2021-11-16[ruby/date] check_limit: also handle symbolsJean Boussier
https://github.com/ruby/date/commit/376c65942b
2021-11-16[ruby/date] `Date._<format>(nil)` should return an empty HashJean Boussier
Fix: https://github.com/ruby/date/issues/39 This is how versions previous to 3.2.1 behaved and Active Support currently rely on this behavior. https://github.com/rails/rails/blob/90357af08048ef5076730505f6e7b14a81f33d0c/activesupport/lib/active_support/values/time_zone.rb#L383-L384 Any Rails application upgrading to date `3.2.1` might run into unexpected errors. https://github.com/ruby/date/commit/8f2d7a0c7e
2021-11-16[ruby/date] Add length limit option for methods that parses date stringsYusuke Endoh
`Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse` but also the following methods are changed. * Date._parse * Date.parse * DateTime.parse * Date._iso8601 * Date.iso8601 * DateTime.iso8601 * Date._rfc3339 * Date.rfc3339 * DateTime.rfc3339 * Date._xmlschema * Date.xmlschema * DateTime.xmlschema * Date._rfc2822 * Date.rfc2822 * DateTime.rfc2822 * Date._rfc822 * Date.rfc822 * DateTime.rfc822 * Date._jisx0301 * Date.jisx0301 * DateTime.jisx0301 https://github.com/ruby/date/commit/3959accef8
2021-10-02Avoid using the altzone variable in AIXRei Odaira
In AIX, altzone exists in the standard library but is not declared in time.h. By 524513be399e81bb170ec88aa0d501f33cbde8c3, have_var and try_var in mkmf recognizes a variable that exists in a library even when it is not declared. As a result, in AIX, HAVE_ALTZONE is defined, but compile fails due to the lack of the declaration.
2021-09-28[ruby/date] Make %v strftime flag use uppercase monthJeremy Evans
%v is supposed to be the VMS date, and VMS date format uses an uppercase month. Ruby 1.8 used an uppercase month for %v, but the behavior was changed without explanation in r31672. Time#strftime still uses an uppercase month for %v, so this change makes Date#strftime consistent with Time#strftime. Fixes [Bug #13810] https://github.com/ruby/date/commit/56c489fd7e
2021-07-11[ruby/date] Fixed markups for bold [ci skip]Nobuyoshi Nakada
https://github.com/ruby/date/commit/404f9d2096
2020-12-23[ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old RubyKenta Murata
https://github.com/ruby/date/commit/9f3e90ad10
2020-12-22[ruby/date] Make Ractor-compatibleMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3946
2020-12-22[ruby/date] Deep-freeze internal constants.Marc-Andre Lafortune
Probably not strictly necessary, but good principle anyways. Notes: Merged: https://github.com/ruby/ruby/pull/3946
2020-11-12[ruby/date] [DOC] declate DateTime class is deprecatedNARUSE, Yui
https://github.com/ruby/date/commit/58ca6e6a3e
2020-10-21Don't redefine #rb_intern over and over againStefan Stüben
Notes: Merged: https://github.com/ruby/ruby/pull/3589
2020-07-28Use https instead of httpKazuhiro NISHIYAMA
2020-06-21[ruby/date] [DOC] Mentioned alternative `strptime` methodsNobuyoshi Nakada
https://github.com/ruby/date/commit/5f4ac92947
2020-06-21[ruby/date] [DOC] Emphasized that `parse` methods are not validatorsNobuyoshi Nakada
https://github.com/ruby/date/commit/81a057db11
2020-06-20[ruby/date] Promote simple date to complex date to load fractional date ↵Nobuyoshi Nakada
(Fixes #20) https://github.com/ruby/date/commit/e022e8b3ce
2020-06-20[ruby/date] Fix cannot load complex into simple error when loading marshal ↵Jeremy Evans
dump (Fixes #20) This problem exists because Marshal.load calls Date.allocate, which uses a SimpleDateData. There doesn't seem to be any support for taking an existing Date instance and converting it from SimpleDateData to ComplexDateData. Work around this issue by making Date.allocate use a ComplexDateData. This causes problems in Date#initialize, so remove the Date#initialize method (keeping the date_initialize function, used internally for Date.civil). Alias Date.new to Date.civil, since they do the same thing. https://github.com/ruby/date/commit/6bb8d8fa0f
2020-05-13ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUGYusuke Endoh
`#define NDEBUG` produces "macro redefined" warnings when it is already defined via cppflags