/[gentoo-x86]/app-i18n/prime/files/prime-0.7.a.1.diff
Gentoo

Contents of /app-i18n/prime/files/prime-0.7.a.1.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Apr 11 16:38:03 2004 UTC (11 years, 3 months ago) by usata
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
FILE REMOVED
virtual/ruby fix. Marked 0.8.0 stable on x86 and removed old development versions

1 diff -urN taiyaki.rb.orig taiyaki.rb
2 --- taiyaki.rb.org 2004-02-05 20:39:32.000000000 +0900
3 +++ taiyaki.rb 2004-03-03 03:21:51.000000000 +0900
4 @@ -20,6 +20,26 @@
5 end
6 end
7
8 +### Considering under compatibility with Ruby1.6
9 +begin
10 + Array.new([])
11 +rescue TypeError
12 + class Array
13 + alias original_initialize initialize
14 +
15 + def initialize(value = 0)
16 + if value.kind_of?(Array) then
17 + original_initialize(value.length)
18 + self.length.times {|i|
19 + self[i] = value[i]
20 + }
21 + else
22 + original_initialize(value)
23 + end
24 + end
25 + end
26 +end
27 +
28 def require (name, package = nil, url = nil)
29 package_name =
30 {'progressbar' => 'progressbar',

  ViewVC Help
Powered by ViewVC 1.1.20