SyntaxError fixes (maybe ruby 1.8 only)

With ruby 1.8 I have the following errors:
[-] WARNING! The following modules could not be loaded!
[-] 	/data/work/metasploit-framework/modules/exploits/linux/http/linksys_wrt54gl_apply_exec.rb: SyntaxError compile error
/data/work/metasploit-framework/modules/exploits/linux/http/linksys_wrt54gl_apply_exec.rb:66: syntax error, unexpected ')'
			))
			 ^
[-] 	/data/work/metasploit-framework/modules/exploits/linux/http/netgear_dgn2200b_pppoe_exec.rb: SyntaxError compile error
/data/work/metasploit-framework/modules/exploits/linux/http/netgear_dgn2200b_pppoe_exec.rb:66: syntax error, unexpected ')'
			))
			 ^
[-] 	/data/work/metasploit-framework/modules/auxiliary/admin/smb/psexec_ntdsgrab.rb: SyntaxError compile error
/data/work/metasploit-framework/modules/auxiliary/admin/smb/psexec_ntdsgrab.rb:44: syntax error, unexpected ')'
[-] 	/data/work/metasploit-framework/modules/exploits/linux/http/linksys_e1500_apply_exec.rb: SyntaxError compile error
/data/work/metasploit-framework/modules/exploits/linux/http/linksys_e1500_apply_exec.rb:64: syntax error, unexpected ')'
			))
			 ^
[-] 	/data/work/metasploit-framework/modules/post/windows/gather/word_unc_injector.rb: SyntaxError compile error
/data/work/metasploit-framework/modules/post/windows/gather/word_unc_injector.rb:185: syntax error, unexpected ')'
[-] 	/data/work/metasploit-framework/modules/exploits/linux/http/netgear_dgn1000b_setup_exec.rb: SyntaxError compile error
/data/work/metasploit-framework/modules/exploits/linux/http/netgear_dgn1000b_setup_exec.rb:66: syntax error, unexpected ')'
			))
			 ^