Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
tadf a90469602c * complex.c, rational.c, lib/cmath.rb, lib/date.rb lib/date/delta*:
reverted r27484-27486.  now official spec.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-26 11:14:40 +00:00
tadf 21b716f9a5 * lib/date.rb, lib/date/delta*: reverted experimental r24567 and
r25393.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-25 06:37:18 +00:00
tadf a542b9248e * lib/date.rb: do not require lib/delta.rb.
* lib/date/delta.rb: follows the above change.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 13:38:55 +00:00
tadf a5aefa661e * lib/date/delta.rb: removed require 'date'. added to_c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-17 14:46:55 +00:00
tadf ae3a58e8c5 * lib/date/delta.rb: merged from date4. [experimental]
* lib/date/delta/parser.*: ditto.

	* lib/date.rb: followed the above changes.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:35:28 +00:00
tadf cfed2cefb2 * lib/date/format.rb (strptime): removed \v; since \s includes \v.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:22:13 +00:00
tadf aa3c6d4dd2 * lib/date/format.rb: reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 13:20:50 +00:00
naruse 5e4f23d600 * lib/date/format.rb: suppressed a warning.
* lib/irb/ruby-lex.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 12:32:35 +00:00
tadf 3ea21e47c1 * lib/date/format.rb (_parse): m17n compliant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 11:25:13 +00:00
tadf 4671724697 * lib/date/format.rb (strftime): ignores '_' flag for %[LN].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-24 16:26:00 +00:00
tadf 0c0e636b19 * lib/date/format.rb: no need to require the "lib/rational.rb".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-04 10:22:15 +00:00
tadf 3e75a0a763 * lib/date/format.rb(strftime): can print with given arbitrary
precision.

	* lib/date/format.rb(strftime): optional flags and filed width
	  should also affect %[nt].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-25 14:47:33 +00:00
tadf 1acc8f9483 revert
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 10:55:48 +00:00
nobu ce2b7d3a58 * strftime.c (rb_strftime): supported flags and precision for most
conversions.  [ruby-dev:35906]

* lib/date/format.rb (Date#strftime): left-justifies %L and %N.
  [ruby-dev:35909]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 05:28:08 +00:00
naruse 40d8d38909 * ext/json/lib/json/pure/generator.rb,
ext/json/lib/json/pure/parser.rb, ext/openssl/lib/openssl/x509.rb,
ext/win32ole/sample/olegen.rb, lib/date/format.rb, lib/irb/context.rb,
lib/irb/workspace.rb, lib/net/http.rb, lib/net/imap.rb,
lib/rdoc/generator.rb, lib/rdoc/markup/to_html.rb,
lib/rdoc/markup/to_latex.rb, lib/rdoc/parsers/parse_c.rb,
lib/rdoc/ri/formatter.rb, lib/rexml/parsers/baseparser.rb,
lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rss/parser.rb,
lib/uri/common.rb, lib/uri/generic.rb, lib/webrick/httpresponse.rb,
lib/webrick/httpservlet/filehandler.rb, lib/yaml/baseemitter.rb,
lib/yaml/encoding.rb: performance tuning arround String#gsub.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-12 06:18:06 +00:00
tadf bf031c9699 * lib/date.rb, lib/date/format.rb: parse's hints as an
experimental function has been removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19 08:23:33 +00:00
tadf 49622de368 * lib/date.rb (Date::Infinity#<=>): didn't work. A patch from
Dirkjan Bussink <d.bussink AT gmail.com> [ruby-core:15098].
	  This is a bug obviously.  However it didn't affect the library's
	  functions.

	* lib/date.rb, lib/date/format.rb: some trivial changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17 12:05:43 +00:00
tadf ea78055b08 * lib/date.rb, lib/date/format.rb: tuning for performance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-12 03:03:31 +00:00
tadf 352d72719b * lib/date.rb, lib/date/format.rb: introduced some constants
(for internal use) and aliases (minute and second).

	* sample/cal.rb: trivial adjustments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 00:38:22 +00:00
tadf 343a414ab0 * lib/date/format.rb (_xmlschema): some improvements.
* lib/date/format.rb (_parse): a new hint compfunc. [experimental]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-26 12:29:20 +00:00
tadf 8dc6147e3e * lib/date/format.rb (_strptime): now also attaches an element
which denotes leftover substring if exists.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-09 00:14:22 +00:00
tadf 86ca9a6930 * lib/date/format.rb (str[fp]time): now check specifications more
strictly.

	* and some trivial changes.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-08 00:38:03 +00:00
tadf ec6cf1f454 * lib/date/format.rb (_parse): improved parsing of ordinal dates.
* lib/date/format.rb (_parse): use named character classes in some
	  regular expressions.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-01 15:47:52 +00:00
tadf 6a7dc26985 * lib/date/format.rb: reverted some wrongly erased "o" options
(pointed out by nobu).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-10 22:33:48 +00:00
tadf a16bdfdfba * lib/date/format.rb (_parse): now interprets slashed numerical
dates as a big endian (except dd/mm/yyyy). [experimental]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-31 14:46:58 +00:00
tadf 3c5510565b * lib/date/format.rb (Date._parse): now accepts some new
hints. [experimental]

	* lib/parsedate.rb: followed the changes on
	  lib/date/format.rb. [experimental]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-22 11:22:03 +00:00
tadf 54057bbe33 * lib/date.rb, lib/date/format.rb (Date._parse): now can take some
hints (its aim must be mainly determination of endianness of
	  date). [experimental]

	* lib/date.rb, lib/date/format.rb (Date._parse): now completes
	  truncated year as default action. [experimental]

	* lib/date.rb, lib/date/format.rb: added ::iso8601, ::rfc3339,
	  ::xmlschema, ::rfc2822, ::httpdate, ::jisx0301, #xmlschema,
	  #httpdate. [experimental]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 13:02:29 +00:00
tadf 6683940715 * lib/date/format.rb (Date._parse): completes calendar week based year.
* lib/date/format.rb (Date._parse): detects year of ordinal date in
	  extended format.

	* and some trivial adjustments.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-20 16:52:59 +00:00
tadf 8bf9e0829f * lib/date/format.rb (Date._parse): detects some OFX dates
(Of course not fully).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-19 01:27:53 +00:00
tadf 147f75c3ab * lib/date/format.rb (Date._parse): revised treatment of
hyphend/separatorless dates.

	* lib/date/format.rb: some trivial adjustments.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 14:41:28 +00:00
tadf 6bc8bcbc7f * lib/date/format.rb: reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 11:23:38 +00:00
nobu 84daaed844 * lib/date/format.rb (Format::Bag#method_missing): get rid of
modifying orginal argument.  [ruby-core:11090]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-05 07:25:35 +00:00
tadf a68a11dd31 * lib/date/format.rb: added some zone names.
* lib/date/format.rb (_parse): now interprets doted numerical
	  dates as a big endian (except dd.mm.yyyy).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-15 00:17:02 +00:00
tadf c04f4aa0ee updated based on date2 4.0.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-18 10:34:58 +00:00
matz 3044252beb * lib/date/format.rb (Date::Format::Bag::method_missing): need not
to use instance variables corresponding each method; use Hash
  instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 08:10:10 +00:00
matz 3098d80818 * re.c (reg_operand): allow symbols to be operands for regular
expression matches.

* string.c (Init_String): allow Symbol#===.

* lib/date/format.rb (Date::Format::Bag::to_hash): string
  added prefixes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 04:57:25 +00:00
matz 1e41cf4885 * lib/date/format.rb (Date::Format::Bag::method_missing): add
prefix to avoid making t class-local instance variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-13 16:15:02 +00:00
tadf d7dbd877ff updated based on date2 4.0.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-07 00:32:57 +00:00
tadf 7290b6925c updated based on date2 4.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30 15:27:01 +00:00
tadf a95d67ebf7 updated based on date2 3.9.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-24 23:04:52 +00:00
tadf 41b80c47d0 updated based on date2 3.9.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-30 06:13:17 +00:00
tadf ffc6df2b67 updated based on date2 3.9.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 03:11:56 +00:00
tadf 55eab2a011 updated based on date2 3.9.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-22 16:05:19 +00:00
nobu a388c7dd9e * object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,
Kernel#instance_variable_defined? and Module#class_variable_defined?.
  [ruby-dev:29587]

* lib/date/format.rb (Date::Bag#method_missing): use new method,
  instance_variable_defined? to check if an instance variable is
  defined.  fixed: [ruby-dev:29554]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 15:43:06 +00:00
tadf d78b265839 updated based on date2 3.9.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-10 11:27:56 +00:00
tadf 7f0f585f32 updated based on date2 3.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04 12:43:20 +00:00
tadf 0384b2330c updated based on date2 3.8.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-25 23:09:30 +00:00
tadf 0c724c2734 revert
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07 13:19:14 +00:00
matz e382f7f00e * lib/date/format.rb: specify maximum number of digits to parse
"200608007".  %Y(4), %y(2), %m(2), %d(2).  [ruby-core:8484]
  [experimental]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07 06:17:38 +00:00
tadf 50ef71fa1e %[EO]U didn't denote %U.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-06 11:41:12 +00:00