Hiroshi SHIBATA
d1e3dd4db1
Merge date-3.1.3
2021-11-24 19:46:22 +09:00
Hiroshi SHIBATA
d9a1f14805
Bump date version to 3.1.1
2021-11-22 10:51:35 +09:00
Kenta Murata
aad88cc10b
[ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old Ruby
...
https://github.com/ruby/date/commit/9f3e90ad10
2020-12-23 18:32:24 +09:00
Hiroshi SHIBATA
5cf25c55a6
Update version for Ractor-safe extensions
2020-12-23 14:03:54 +09:00
Marc-Andre Lafortune
f2f00e24fa
[ruby/date] Make Ractor-compatible
2020-12-22 03:12:51 -05:00
Marc-Andre Lafortune
ee102de6d7
[ruby/date] Deep-freeze internal constants.
...
Probably not strictly necessary, but good principle anyways.
2020-12-22 03:12:51 -05:00
Akira Matsuda
028d52bb94
[ruby/date] Numeric already includes Comparable
...
https://github.com/ruby/date/commit/f6140df0ad
2020-11-12 21:35:17 +09:00
Nobuyoshi Nakada
33574d57f1
[ruby/date] Updated timezones from timeanddate.com
...
https://github.com/ruby/date/commit/f08175e34d
2020-11-12 21:35:06 +09:00
Nobuyoshi Nakada
81dece54d6
[ruby/date] Honor timezones from timeanddate.com
...
https://github.com/ruby/date/commit/d20380fc55
2020-11-12 21:34:54 +09:00
Nobuyoshi Nakada
d65f1140b9
[ruby/date] Fixed the script file name to update zonetab.list
...
https://github.com/ruby/date/commit/3c002b1daa
2020-11-12 21:34:43 +09:00
NARUSE, Yui
0fdcb947e8
[ruby/date] [DOC] declate DateTime class is deprecated
...
https://github.com/ruby/date/commit/58ca6e6a3e
2020-11-12 21:34:31 +09:00
Stefan Stüben
8c2e5bbf58
Don't redefine #rb_intern over and over again
2020-10-21 12:45:18 +09:00
卜部昌平
490010084e
sed -i '/rmodule.h/d'
2020-08-27 16:42:06 +09:00
卜部昌平
756403d775
sed -i '/r_cast.h/d'
2020-08-27 15:03:36 +09:00
卜部昌平
0da2a3f1fc
sed -i '\,2/extern.h,d'
2020-08-27 14:07:49 +09:00
Hiroshi SHIBATA
8fb02b7a97
Update the license for the default gems to dual licenses
2020-08-18 20:26:39 +09:00
Kazuhiro NISHIYAMA
946cd6c534
Use https instead of http
2020-07-28 19:51:54 +09:00
Nobuyoshi Nakada
956d187223
[ruby/date] [DOC] Mentioned alternative strptime methods
...
https://github.com/ruby/date/commit/5f4ac92947
2020-06-21 16:16:15 +09:00
Nobuyoshi Nakada
67e544cbe1
[ruby/date] [DOC] Emphasized that parse methods are not validators
...
https://github.com/ruby/date/commit/81a057db11
2020-06-21 16:16:15 +09:00
Hiroshi SHIBATA
b68ddcf30c
[ruby/date] Bump version to 3.0.1
...
https://github.com/ruby/date/commit/47cca1b76b
2020-06-20 18:35:03 +09:00
Nobuyoshi Nakada
97e8b7d098
[ruby/date] Promote simple date to complex date to load fractional date ( Fixes #20 )
...
https://github.com/ruby/date/commit/e022e8b3ce
2020-06-20 18:35:03 +09:00
Jeremy Evans
ad156f7e2c
[ruby/date] Fix cannot load complex into simple error when loading marshal 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-06-20 18:35:03 +09:00
Yusuke Endoh
61d451d6ce
ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG
...
`#define NDEBUG` produces "macro redefined" warnings when it is already
defined via cppflags
2020-05-13 13:49:21 +09:00
卜部昌平
9e41a75255
sed -i 's|ruby/impl|ruby/internal|'
...
To fix build failures.
2020-05-11 09:24:08 +09:00
卜部昌平
d7f4d732c1
sed -i s|ruby/3|ruby/impl|g
...
This shall fix compile errors.
2020-05-11 09:24:08 +09:00
Nobuyoshi Nakada
7a85d31c29
[ruby/date] Suppress -Wchar-subscripts warnings by Cygwin gcc 9.3.0
...
https://github.com/ruby/date/commit/9968eb69f0
2020-04-14 15:13:40 +09:00
卜部昌平
9e6e39c351
Merge pull request #2991 from shyouhei/ruby.h
...
Split ruby.h
2020-04-08 13:28:13 +09:00
Hiroshi SHIBATA
e764dff364
[ruby/date] Bump version to 3.0.0
...
https://github.com/ruby/date/commit/202b2dad93
2019-11-30 14:48:44 +09:00
Nobuyoshi Nakada
6abf4c4802
[ruby/date] Added update-zonetab target
...
https://github.com/ruby/date/commit/9bc6e30a82
2019-11-01 17:30:17 +09:00
Jeremy Evans
469545307f
[ruby/date] Add more timezone abbreviations
...
This gets the time zone abbreviations from
https://www.timeanddate.com/time/zones/ , and adds unambiguous time
zones not already present in zonetab.list. See bin/update-abbr
for the program used.
This regenerates zonetab.h using prereq.mk (requires gperf).
Only one test line is added, just to make sure a new time zone
abbreviation is picked up.
Fixes Ruby Bug 16286
https://github.com/ruby/date/commit/702e8b3033
2019-11-01 17:30:14 +09:00
Jeremy Evans
3895e548bd
[ruby/date] Revert "Simplify #inspect"
...
This reverts commit af01edd7d8575f544f647dbe8cde5b6ae535d459.
Revert requested by Yui Naruse.
https://github.com/ruby/date/commit/875d563557
2019-10-31 15:51:30 +09:00
glaszig
fce940aac7
[ruby/date] introduce Date::Error, raise Date::Error for every
...
"invalid <anything>" type of exception
https://github.com/ruby/date/commit/3e55c09ba4
2019-10-31 15:51:25 +09:00
Jeremy Evans
5fe8943fda
Fix typo causing Date.new(year, month) to fail
...
Add a test for this case.
2019-10-24 12:34:51 -07:00
Hiroshi SHIBATA
487d96c6b1
[ruby/date] Use Gemfile instead of Gem::Specification#add_development_dependency.
...
https://github.com/ruby/date/commit/13c94362c2
2019-10-24 18:39:04 +09:00
zverok
9d3a4ab05b
[ruby/date] Update docs
...
https://github.com/ruby/date/commit/8c02586a98
2019-10-24 18:39:04 +09:00
zverok
913807bd6c
[ruby/date] Simplify #inspect
...
https://github.com/ruby/date/commit/af01edd7d8
2019-10-24 18:39:04 +09:00
Jeremy Evans
2e37c1960a
[ruby/date] Remove taint support
...
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous versions.
https://github.com/ruby/date/commit/519470dc3b
2019-10-24 18:39:04 +09:00
Jeremy Evans
fc0e8d00bc
[ruby/date] Support -Float::INFINITY...date ranges
...
Fixes Ruby Bug 12961
https://github.com/ruby/date/commit/7f533c2552
2019-10-24 18:39:04 +09:00
Jeremy Evans
4e40ca301c
[ruby/date] Check for numeric arguments in constructors
...
Previously, the type of these arguments were not checked, leading to
NoMethodErrors in some cases, and TypeErrors in other cases, but not
showing what field was having the problems. This change makes it so
the field with the problem is included in the error message.
For the valid_*? methods, this changes them to return false if one
of the arguments that should be numeric is not.
Fixes Ruby Bug 11935
Fixes Ruby Misc 15298
https://github.com/ruby/date/commit/a2f4b665f8
2019-10-24 18:39:04 +09:00
Jeremy Evans
9eb798a3f1
[ruby/date] Make julian dates roundtrip through to_time.to_date
...
Previously, julian dates would not round trip through to_time.to_date,
because Time is always considered gregorian. This converts the Date
instance from julian to gregorian before converting to Time, ensuring
that an equal date object will be returned if converting that Time
back to Date.
This does result in julian Date objects showing different day values
if converting to Time.
Fixes Ruby Bug 8428.
https://github.com/ruby/date/commit/d8df64555e
2019-10-24 18:39:04 +09:00
Nobuyoshi Nakada
3fc10eff1e
date_parse.c: trim off
...
* ext/date/date_parse.c (date_zone_to_diff): trim off by zone name
length.
2019-08-12 20:41:11 +09:00
Nobuyoshi Nakada
d96feee37c
date_parse.c: avoid copying
...
* ext/date/date_parse.c (date_zone_to_diff): get rid of copying
the whole argument string.
2019-08-12 20:41:11 +09:00
Jeremy Evans
9095ff53cf
[ruby/date] Describe what is meant by valid in the Date.valid_date? rdoc
...
https://github.com/ruby/date/commit/8eca79d1f0
2019-07-22 17:36:20 +09:00
Nobuyoshi Nakada
75fb0a9afa
Allow mday in Date.iso8601 to be omitted
...
[Bug #12285 ]
2019-07-16 09:41:23 +09:00
Nobuyoshi Nakada
715955ff27
Include ruby/assert.h in ruby/ruby.h so that assertions can be there
2019-07-14 17:58:03 +09:00
nobu
320c98b436
date: support for Reiwa, new Japanese era
...
[Feature #15742 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-09 01:27:36 +00:00
nobu
63e66f08b6
date_core.c: [DOC] Heisei will be assumed if no-era [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-09 01:27:35 +00:00
svn
a6146af5bd
* expand tabs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03 10:56:37 +00:00
nobu
1329c7cdca
date: make zone a substring to copy encoding and taintedness
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-03 10:56:36 +00:00
nobu
7cd6706b9a
date_parse.c: name JISX0301_DEFAULT_ERA
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02 04:36:34 +00:00