kou
eb8598146d
* lib/rss/rss.rb: RSS::Element#calc_indent became to be deprecated.
...
* lib/rss/0.9.rb: ditto.
* lib/rss/1.0.rb: ditto.
* lib/rss/image.rb: ditto.
* lib/rss/taxonomy.rb: ditto.
* lib/rss/trackback.rb: ditto.
* test/rss/test_1.0.rb: removed RSS::Element.indent_size tests.
* test/rss/test_2.0.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18 08:58:18 +00:00
akr
e997ab09ba
* ext/socket/socket.c (bsock_recv_nonblock): new method
...
BasicSocket#recv_nonblock.
(udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock.
IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock.
(unix_recvfrom_nonblock): removed. UNIXSocket#is removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 15:53:28 +00:00
akr
35c8ae84e5
* lib/pathname.rb: backport from 1.9.
...
(Kernel#Pathname): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 05:55:51 +00:00
kou
faeff623e0
* lib/rss/rss.rb (Hash#merge, Enumerable#sort_by): removed.
...
* lib/rss/rss.rb (RSS::RootElementMixin#to_xml): added.
[ruby-talk:197284]
We can convert RSS version easily like the following:
rss10 = RSS::Parser.parse(File.read("1.0.rdf"))
File.open("2.0.rss", "w") {|f| f.print(rss10.to_xml("2.0"))}
* test/rss/test_1.0.rb: added #to_xml test.
* test/rss/test_2.0.rb: ditto.
* test/rss/rss-testcase.rb: added some helper methods that
generates sample RSS 2.0.
* sample/rss/convert.rb: added a sample script to convert RSS format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 01:37:08 +00:00
kou
02cce7ed82
* lib/rss/rss.rb (Kernel#funcall): removed.
...
* lib/rss/parser.rb (Kernel.URI): removed.
* lib/rss/maker/: supported
xxx.new_yyy do |yyy|
yyy.zzz = zzz
...
end
style and this style became the style of the recommendation.
Old style
yyy = xxx.new_yyy
yyy.zzz = zzz
...
is supported too but this style isn't recommended.
[ruby-talk:197284]
* test/rss/test_*maker*.rb: used new recommended style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 01:28:46 +00:00
kou
463c6a218f
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/rss.rb: added backward compatibility codes.
* lib/rss/parser.rb: ditto.
* test/rss/test_parser.rb: ditto.
* test/rss/test_2.0.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 01:04:31 +00:00
kou
448dce34a6
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/rss.rb: improved type conversion.
* lib/rss/1.0.rb: ditto.
* lib/rss/0.9.rb: ditto.
* lib/rss/2.0.rb: ditto.
* lib/rss/image.rb: ditto.
* lib/rss/syndication.rb: ditto.
* test/rss/test_2.0.rb: added type conversion tests.
* test/rss/test_accessor.rb: ditto.
* test/rss/test_to_s.rb: ditto.
* test/rss/test_syndication.rb: ditto.
* test/rss/test_setup_maker_2.0.rb: ditto.
* test/rss/test_setup_maker_1.0.rb: ditto.
* test/rss/test_setup_maker_0.9.rb: ditto.
* test/rss/test_maker_sy.rb: ditto.
* test/rss/test_maker_image.rb: ditto.
* test/rss/test_maker_2.0.rb: ditto.
* test/rss/test_maker_0.9.rb: ditto.
* test/rss/test_image.rb: ditto.
* test/rss/test_maker_1.0.rb: use assert instead of assert_equal.
* test/rss/rss-assertions.rb: improved type conversion assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 01:02:08 +00:00
kou
7461f297e9
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* test/rss/test_2.0.rb: added RSS 2.0 tests.
* test/rss/rss-assertions.rb: extended XML stylesheet assertion.
* lib/rss/0.9.rb: added initialize method.
* test/rss/test_1.0.rb: cleanup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:53:21 +00:00
kou
88dd1e4c99
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/parser.rb: added entity handling type predicate.
* lib/rss/rexmlparser.rb: ditto.
* lib/rss/xmlparser.rb: ditto.
* lib/rss/xmlscanner.rb: ditto.
* lib/rss/xmlscanner.rb: more robust entity handling.
* test/rss/test_parser.rb: added an entity handling test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:51:31 +00:00
kou
e85f8c7829
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/: use #__send__ instead of #send.
* test/rss/: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:49:38 +00:00
kou
d41bea59c4
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* test/rss/test_taxonomy.rb: use #reject directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:30:00 +00:00
kou
4a396a8b7a
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS
Maker.
* lib/rss/taxonomy.rb: supported RSS Maker.
* lib/rss/maker.rb: added taxonomy module support.
* lib/rss/rss.rb: adjusted to other element API.
* lib/rss/1.0.rb: adjusted to other element API but backward
compatibility is reserved.
* lib/rss/0.9.rb: ditto.
* test/rss/test_maker_taxo.rb: added test case for taxonomy module
for RSS Maker.
* test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic.
* test/rss/test_setup_maker_1.0.rb: added backward compatibility
test.
* test/rss/test_setup_maker_0.9.rb: ditto.
* test/rss/test_setup_maker_2.0.rb: ditto.
* test/rss/rss-testcase.rb: added convenience method for setting
up taxo:topic.
* test/rss/rss-assertions.rb: added assertion for taxo:topic.
* sample/rss/blend.rb: followed new API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:26:41 +00:00
kou
f1c37d2bf9
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/rss.rb: fixed a indentation bug.
* lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug.
* test/rss/test_taxonomy.rb: added a #to_s test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:21:24 +00:00
kou
dcec1c3d49
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/1.0.rb: added convenience method 'resources'.
* lib/rss/taxonomy.rb: ditto.
* test/rss/rss-assertions.rb: added test for 'resources'.
* test/rss/test_taxonomy.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:17:32 +00:00
kou
201028438d
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/taxonomy.rb: implemented taxonomy module.
* test/rss/test_taxonomy.rb: added tests for taxonomy support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:15:36 +00:00
kou
dfa92aff70
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
...
* lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6.
* test/rss/test_version.rb (RSS::TestVersion#test_version): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 00:07:41 +00:00
akr
72e8f4fd3f
add RLIMIT_NOFILE test
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15 08:29:15 +00:00
akr
79d37eb940
give dummy argument for Process.getrlimit and rescue TypeError.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15 07:07:09 +00:00
(no author)
11e36bee8f
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15 03:39:43 +00:00
akr
75da7a9863
getsockname returns "" on MacOS X
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-07 10:57:26 +00:00
usa
69ef3de138
* test/socket/{test_nonblock.rb, test_socket.rb}: Windows support.CVS: ----------------------------------------------------------------------
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-07 07:27:39 +00:00
akr
9f54c8f8c7
* ext/socket/socket.c (sock_s_unpack_sockaddr_in): reject
...
non-AF_INET/AF_INET6 sockaddr.
(sock_s_unpack_sockaddr_un): reject non-AF_UNIX sockaddr.
[ruby-dev:28691]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-05 09:16:15 +00:00
(no author)
231282b90e
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-05 09:16:15 +00:00
akr
920f92de9f
fix tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-04 12:15:01 +00:00
(no author)
0eef378965
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-04 11:45:10 +00:00
(no author)
a7253cf695
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:33:10 +00:00
matz
9466848db3
* numeric.c (num_div): use floor rather than rb_Integer().
...
[ruby-dev:28589]
* numeric.c (flo_divmod): the first element of Float#divmod should
be an integer. [ruby-dev:28589]
* test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
* util.c (ruby_strtod): fixed wrong conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-01 03:46:47 +00:00
akr
f47eaab4f5
fix string interpolation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-04 06:39:25 +00:00
(no author)
29b2917e3b
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-04 06:28:55 +00:00
seki
bad3f1f3a0
quote pathnames in the server's command line for space contained
...
directory names. Thanks, arton. [ruby-dev:28386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-24 11:12:35 +00:00
ocean
386352b474
* util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]
...
* pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4.
[ruby-talk:180024]
* pack.c (pack_unpack): fixed integer overflow on template "w".
[ruby-talk:180126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-17 02:21:39 +00:00
matz
8a3d25a790
* eval.c (rb_call0): argument update propagation. [ruby-dev:28044]
...
* env.h: remove argc member from struct FRAME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-13 09:10:55 +00:00
matz
02de06ef1a
* eval.c (eval): no need to push ruby_class. [ruby-dev:28176]
...
* eval.c (rb_f_autoload): check if ruby_cbase is nil (during
instance_eval for objects cannot have singleton classes,
e.g. fixnums and symbols). [ruby-dev:28178]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-11 16:13:47 +00:00
matz
737ef3f4a3
* eval.c (eval): need not to protect $SAFE value.
...
[ruby-core:07177]
* struct.c (rb_struct_select): update RDoc description.
[ruby-core:7254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 07:18:12 +00:00
ocean
bfcae60260
* ext/syck/emitter.c (syck_emit_seq, syck_emit_map, syck_emit_item):
...
should output complex key mark even if map's key is empty seq/map.
[ruby-core:7129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-16 01:29:58 +00:00
ocean
7e0fd1ecca
* lib/yaml/rubytypes.rb (Fixnum): Bignum could not be loaded in
...
ruby 1.8.3/1.8.4. [ruby-core:6115]
* lib/yaml/rubytypes.rb (Numeric): Subclass of Numeric could not
be dumped properly. [ruby-core:7047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10 03:50:28 +00:00
ocean
9ee62cee66
* lib/yaml/rubytypes.rb (Symbol#yaml_new): YAML loading of quoted
...
Symbols broken. [ruby-Bugs:2535] (written by Aaron Schrab)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10 03:05:40 +00:00
(no author)
aa9b7a644a
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-01 08:12:39 +00:00
akr
48ad7164e7
* test/ruby/envutil.rb (EnvUtil.rubybin): search "ruby" instead of
...
"miniruby". [ruby-dev:28140]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-29 08:05:26 +00:00
matz
0594128b55
* stable version 1.8.4 released.
...
* ext/digest/sha2/sha2.c (ULL): support AIX C. a patch from
Kailden <kailden at gmail.com>. [ruby-core:06984]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-24 09:58:57 +00:00
nobu
29b836ff24
* parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 14:33:11 +00:00
eban
013f6fdfa4
* test/gdbm/test_gdbm.rb: specify pid for the argument of
...
Process.wait. workaround for Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-14 03:20:39 +00:00
gotoyuzo
f58c42d357
* test/openssl/test_ssl.rb (test_parallel): call GC.start to close
...
unused files. [ruby-dev:27981]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-12 06:56:08 +00:00
(no author)
0ce7e7a99a
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-11 14:59:50 +00:00
gotoyuzo
b54ab5610b
* ext/openssl/extconf.rb: check for X509V3_EXT_nconf_nid.
...
* ext/openssl/ossl_x509ext.c (MakeX509ExtFactory): should use
OPENSSL_malloc to allocate X509V3_CTX.
* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): use
X509V3_EXT_nconf_nid to avoid SEGV (and to build extensions which
values are placed in separate section).
* test/openssl/test_x509ext.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 22:29:13 +00:00
usa
a696d9ad0c
* file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
...
* test/ruby/test_path.rb (test_dirname, test_basename): follow new
spec. and add new tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 05:48:51 +00:00
ocean
1ec7274fd9
* test/ruby/test_array.rb (test_misc): added some tests
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 01:26:39 +00:00
usa
63fe6ca5a0
* file.c (rb_file_s_dirname): should use skipprefix for UNC path.
...
pointed out by nobu ([ruby-dev:27744]). fixed: [ruby-core:5076]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 09:09:25 +00:00
usa
147dcb2236
* file.c (file_s_dirname): added checks for some patterns with drive
...
letter. fixed: [ruby-dev:27738]
* test/ruby/test_path.rb (test_dirname): added tests for above
patterns.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 08:27:52 +00:00
ocean
518851f88d
* array.c (rb_ary_fill): tail elements were vanished when the middle
...
part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1])
* test/ruby/test_array.rb (test_fill): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:06:00 +00:00