Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Verison 2.01

  • Loading branch information...
commit 78e99913d7b01db08738507706ef20d9fb23bc8d 1 parent 5e5a300
@PrasannaVenkadesh authored
Showing with 3 additions and 36 deletions.
  1. +1 −5 README.txt
  2. +1 −22 chat.rb
  3. +1 −9 features.rdoc
View
6 README.txt
@@ -4,11 +4,7 @@ This is a team work of
S. Sathianarayanan(sathia2704@gmail.com) &
S. Prasanna Venkadesh (prasmailme@gmail.com)
-<<<<<<< HEAD
-md5Checksum - 8dfd16649bb0f5918f80b8ee87bac8c0 chat.rb
-=======
-md5Checksum - f6e1547a8dae8fdb644b2ed818e09c51 chat.rb
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
+md5Checksum - fc3f95f8dbb6ec09b2ec13930d405505 chat.rb
Step 1: Download the file 'chat.rb' from the repository
View
23 chat.rb
@@ -1,39 +1,28 @@
-<<<<<<< HEAD
+
=begin
Application Name: Whiz-Chat
Version: 2.01
License: GPL V2.0
=end
-=======
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
begin
require 'rubygems' #Rubygems gem
require 'colorize' #gem used to set colors to text and backgrounds
require 'xmpp4r-simple' #Simple XML Protocol for Jabber API
require "highline/import" #for password protection
-<<<<<<< HEAD
system('clear')
system('espeak "Welcome. Dude" >/dev/null 2>&1')
puts "Whiz Chat Version - 2.01\nDeveloped by- S. Sathianarayanan (sathia2704@gmail.com)\nImproved by- S. Prasanna Venkadesh (prasmailme@gmail.com)\nGithub Repository: https://github.com/PrasannaVenkadesh/Whiz-Chat\n".colorize( :blue ).underline
-=======
- puts "Whiz Chat\nVersion - 2.0\t Developed by - S. Sathianarayanan(sathia2704@gmail.com)\nImproved by - S. Prasanna Venkadesh(prasmailme@gmail.com)\n".colorize( :grey ).on_blue.underline
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
print 'Enter the username :'
username = gets.chomp #Get input from username for user-id
#gets password for mail account, ask from higline gem
password = ask("Enter the password :" ) { |p| p.echo = "*" }
-<<<<<<< HEAD
print 'To username: '
-=======
- print 'to address: '
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
@to_username = gets.chomp #prompt for userid to whom you want to chat with
puts "Connecting to jabber server.."
@jabber = Jabber::Simple.new(username+'@gmail.com',password) #using jabber api to connect with gmail account.
system('clear') #to clear the console screen to keep the screen clean.
-<<<<<<< HEAD
system('espeak "Connected.." >/dev/null 2>&1')
puts " Do you want to set Status Message (y) or (n)"
@@ -46,9 +35,6 @@
system('clear')
puts "You can now start chatting\nType bye to quit" #note you need to type 'bye' at terminal to quit the app.
-=======
- puts "Connected.\nType bye to quit" #note you need to type 'bye' at terminal to quit the app.
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
@mess #a variable to get input message from you and also to quit from this chat.
#method to exit
@@ -91,11 +77,7 @@ def receive
end #end of receive method
t1=Thread.new { send() } #instance for sending thread
-<<<<<<< HEAD
t2=Thread.new { receive() } #instance for receiving thread
-=======
- t2=Thread.new { receive() } #instance for receiving thread
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
t1.join #when encounters sleep, jumps to thread t2
t2.join #when encounters sleep, jumps to thread t1
@@ -105,10 +87,7 @@ def receive
print 'Dependencies was not installed. Do you want to install (y) or not (n)'
a = gets.chomp
if( a == 'y')
-<<<<<<< HEAD
system('sudo apt-get install rubygems1.8')
-=======
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
system('sudo gem install xmpp4r-simple')
system('sudo gem install highline')
system('sudo gem install colorize')
View
10 features.rdoc
@@ -5,17 +5,14 @@ Known Bugs:
1. If more than one user chats, then all the chats will be displayed messing up (Debugged in version 2.0)
2. Do not Works, if you are using proxy for your internet.
3. Throws some Interrupt exceptions.
-<<<<<<< HEAD
-------------------------------------------------------------------------------------------------------------------
Features of Whiz-chat - 2.0:
1. Basic sending and receiving messages between users by gmail account.
2. Color differentiation between sender and reciever chat.
-=======
Features of Whiz-chat - 2.0 (Current):
1. Basic sending and receiving messages between users by gmail account.
2. Added colors to display, differentiating messages between users.
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
3. Sound Alert on each received chat.
Bugs Fixed:
@@ -25,7 +22,6 @@ Bugs Fixed:
Known Bugs:
1. Do not works, if you are using proxy for your internet.
-<<<<<<< HEAD
-------------------------------------------------------------------------------------------------------------------
Features of Whiz-chat - 2.01 (Current):
1. Basic sending and receiving messages between users by gmail account.
@@ -34,8 +30,4 @@ Features of Whiz-chat - 2.01 (Current):
** 4. Setting the status message for your account.
No Bugs were fixed since version 2.0
--------------------------------------------------------------------------------------------------------------------
-=======
->>>>>>> cd28d606912fd77c4d73da172a9cd703fc40932a
-
-
+------------------------------------------------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.