updated on Sun Jan 22 04:03:10 UTC 2012
[aur-mirror.git] / fantasdic / fantasdic-ruby9.patch
blobe325bf1a2562ca8ee1064368e9c306904b701f8a
1 diff -ur a/lib/fantasdic/net/dict.rb b/lib/fantasdic/net/dict.rb
2 --- a/lib/fantasdic/net/dict.rb 2009-03-24 17:14:57.000000000 +0100
3 +++ b/lib/fantasdic/net/dict.rb 2010-01-11 14:14:11.000000000 +0100
4 @@ -18,7 +18,7 @@
5 # Highly modified version of Ruby/DICT, by Ian Macdonald <ian@caliban.org>
7 require 'socket'
8 -require 'md5'
9 +require 'digest/md5'
11 class DICTClient
13 diff -ur a/lib/fantasdic/pre-setup.rb b/lib/fantasdic/pre-setup.rb
14 --- a/lib/fantasdic/pre-setup.rb 2009-03-24 17:14:57.000000000 +0100
15 +++ b/lib/fantasdic/pre-setup.rb 2010-01-11 14:15:37.000000000 +0100
16 @@ -58,6 +58,7 @@
17 begin
18 authors = IO.readlines('../../AUTHORS').join.chomp.split("\n")
19 file.print <<EOS
20 +# coding: utf-8
21 # This file is automatically generated by the installer.
22 # Do not edit by hands.
24 @@ -84,6 +85,7 @@
25 end
26 end
27 file.print <<EOS
28 +# coding: utf-8
29 # This file is automatically generated by the installer.
30 # Do not edit by hands.
32 @@ -100,6 +102,7 @@
33 documenters = IO.readlines('../../data/gnome/help/fantasdic/AUTHORS').
34 join.chomp.split("\n")
35 file.print <<EOS
36 +# coding: utf-8
37 # This file is automatically generated by the installer.
38 # Do not edit by hands.
40 diff -ur a/lib/fantasdic/source_base.rb b/lib/fantasdic/source_base.rb
41 --- a/lib/fantasdic/source_base.rb 2009-03-24 17:14:57.000000000 +0100
42 +++ b/lib/fantasdic/source_base.rb 2010-01-11 14:14:11.000000000 +0100
43 @@ -34,8 +34,8 @@
44 names.each do |name|
45 define_method(name) do |*args|
46 case args.size
47 - when 0: instance_variable_get("@#{name}")
48 - else instance_variable_set("@#{name}", *args)
49 + when 0 then instance_variable_get("@#{name}")
50 + else instance_variable_set("@#{name}", *args)
51 end
52 end
53 end
54 diff -ur a/lib/fantasdic/text/double_metaphone.rb b/lib/fantasdic/text/double_metaphone.rb
55 --- a/lib/fantasdic/text/double_metaphone.rb 2009-03-24 17:14:57.000000000 +0100
56 +++ b/lib/fantasdic/text/double_metaphone.rb 2010-01-11 14:14:46.000000000 +0100
57 @@ -1,3 +1,4 @@
58 +# coding:utf-8
60 # Ruby implementation of the Double Metaphone algorithm by Lawrence Philips,
61 # originally published in the June 2000 issue of C/C++ Users Journal.