Skip to content
Browse files

Updated readme

  • Loading branch information...
1 parent be586d8 commit ae52e691af2ab453af36c3123eb7db4ed57718d8 Davide D'Agostino committed Dec 15, 2009
Showing with 69 additions and 104 deletions.
  1. +68 −0 README.rdoc
  2. +0 −69 README.txt
  3. +1 −1 Rakefile
  4. +0 −34 purple_ruby.gemspec
View
68 README.rdoc
@@ -0,0 +1,68 @@
+== OVERVIEW
+
+purple_ruby is a ruby gem to write servers that send and recive IM messages. It uses libpurple ( http://developer.pidgin.im/wiki/WhatIsLibpurple ) and therforce supports all protocols that Pidgin/Adium supports (MSN/Gtalk/Yahoo/AIM/ICQ etc).
+
+Please check examples/purplegw_example.rb for details. Bascially you just tell it what to do when an IM was received, and there is an embedded tcp 'proxy' which allows you send IM messages.
+
+Why not "ruburple"? I have used ruburple ( http://rubyforge.org/projects/ruburple ), but found it blocks a lot. libpurple needs to run its own event loop which interferes with ruby's green thread model. Ruburple's author has done lots of hard work to workaround the problem ( http://rubyforge.org/pipermail/ruburple-development/2007-June/000005.html ), but it does not work well.
+
+== INSTALLATION
+
+Ubuntu:
+---------------
+ $ sudo apt-get install libpurple0 libpurple-dev
+ $ gem sources -a http://gems.github.com (you only have to do this once)
+ $ sudo gem install Lipsiasoft-purple_ruby
+
+Redhat/Centos
+---------------
+ $ wget -O /etc/yum.repos.d/pidgin.repo http://rpm.pidgin.im/centos/pidgin.repo
+ $ yum -y install glib2-devel libpurple-devel
+ $ gem sources -a http://gems.github.com (you only have to do this once)
+ $ sudo gem install Lipsiasoft-purple_ruby
+
+OSX:
+----
+ $ sudo port -d selfupdate
+ $ sudo port sync
+ $ sudo port upgrade --force installed
+ $ sudo port install gnutls
+ $ sudo port install nss
+ $ sudo port install intltool
+ $ sudo port install glib2
+ $ wget http://downloads.sourceforge.net/pidgin/pidgin-2.6.1.tar.bz2
+ $ tar xvjf pidgin-2.6.1.tar.bz2
+ $ cd pidgin-2.6.1
+ $ ./configure --disable-gtkui --disable-screensaver --disable-consoleui --disable-sm --disable-perl --disable-tk --disable-tcl --disable-gstreamer --disable-schemas-install --disable-gestures --disable-cap --disable-gevolution --disable-gtkspell --disable-startup-notification --disable-avahi --disable-nm --disable-dbus --disable-meanwhile --disable-idn
+ $ cd libpurple
+ $ make
+ $ sudo make install
+
+edit your ~/.bash_profile and add this line
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
+
+ $ gem sources -a http://gems.github.com (you only have to do this once)
+ $ sudo gem install Lipsiasoft-purple_ruby
+
+OSX SnowLeopard (Additional Steps):
+----
+You need to install macports for snow leopad
+
+ $ git clone git://github.com/Lipsiasoft/purple_ruby.git
+ $ cd purple_ruby
+ $ cd ext
+ $ export ARCHFLAGS="-arch x86_64"
+ $ ruby extconf.rb
+ $ sudo cp -R purple_ruby.bundle /Library/Ruby/Gems/1.8/gems/Lipsiasoft-purple_ruby-0.6.0/ext/
+
+didn't work!
+
+== Team
+ Yong
+ Valodzka
+ Ghazel
+ DAddYE (LipsiaSoft)
+
+== Copyright
+
+purple_ruby is Copyright (c) 2009 Xue Yong Zhi and Intridea, Inc. ( http://intridea.com ), released under the GPL License.
View
69 README.txt
@@ -1,69 +0,0 @@
-== OVERVIEW
-
-purple_ruby is a ruby gem to write servers that send and recive IM messages. It uses libpurple ( http://developer.pidgin.im/wiki/WhatIsLibpurple ) and therforce supports all protocols that Pidgin/Adium supports (MSN/Gtalk/Yahoo/AIM/ICQ etc).
-
-Please check examples/purplegw_example.rb for details. Bascially you just tell it what to do when an IM was received, and there is an embedded tcp 'proxy' which allows you send IM messages.
-
-Why not "ruburple"? I have used ruburple ( http://rubyforge.org/projects/ruburple ), but found it blocks a lot. libpurple needs to run its own event loop which interferes with ruby's green thread model. Ruburple's author has done lots of hard work to workaround the problem ( http://rubyforge.org/pipermail/ruburple-development/2007-June/000005.html ), but it does not work well.
-
-== INSTALLATION
-
-Ubuntu:
----------------
-$ sudo apt-get install libpurple0 libpurple-dev
-$ gem sources -a http://gems.github.com (you only have to do this once)
-$ sudo gem install Lipsiasoft-purple_ruby
-
-Redhat/Centos
----------------
-$ wget -O /etc/yum.repos.d/pidgin.repo http://rpm.pidgin.im/centos/pidgin.repo
-$ yum -y install glib2-devel libpurple-devel
-$ gem sources -a http://gems.github.com (you only have to do this once)
-$ sudo gem install Lipsiasoft-purple_ruby
-
-OSX:
-----
-$ sudo port -d selfupdate
-$ sudo port sync
-$ sudo port upgrade --force installed
-$ sudo port install gnutls
-$ sudo port install nss
-$ sudo port install intltool
-$ sudo port install glib2
-$ wget http://downloads.sourceforge.net/pidgin/pidgin-2.6.1.tar.bz2
-$ tar xvjf pidgin-2.6.1.tar.bz2
-$ cd pidgin-2.6.1
-$ ./configure --disable-gtkui --disable-screensaver --disable-consoleui --disable-sm --disable-perl --disable-tk --disable-tcl --disable-gstreamer --disable-schemas-install --disable-gestures --disable-cap --disable-gevolution --disable-gtkspell --disable-startup-notification --disable-avahi --disable-nm --disable-dbus --disable-meanwhile --disable-idn
-$ cd libpurple
-$ make
-$ sudo make install
-
-edit your ~/.bash_profile and add this line
-export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
-
-$ gem sources -a http://gems.github.com (you only have to do this once)
-$ sudo gem install Lipsiasoft-purple_ruby
-
-OSX SnowLeopard (Additional Steps):
-----
-You need to install macports for snow leopad
-
-$ git clone git://github.com/Lipsiasoft/purple_ruby.git
-$ cd purple_ruby
-$ cd ext
-$ export ARCHFLAGS="-arch x86_64"
-$ ruby extconf.rb
-$ sudo cp -R purple_ruby.bundle /Library/Ruby/Gems/1.8/gems/Lipsiasoft-purple_ruby-0.6.0/ext/
-
-For some reason that I don't know at the moment
-$ sudo env ARCHFLAGS="-arch x86_64" gem install Lipsiasoft-purple_ruby
-
-dont' work!
-
-== Copyright
-
-purple_ruby is Copyright (c) 2009 Xue Yong Zhi and Intridea, Inc. ( http://intridea.com ), released under the GPL License.
-
-
-
-
View
2 Rakefile
@@ -8,4 +8,4 @@ file EXT => ["ext/extconf.rb", "ext/purple_ruby.c"] do
ruby "extconf.rb"
sh "make"
end
-end
+end
View
34 purple_ruby.gemspec
@@ -1,34 +0,0 @@
-
-Gem::Specification.new do |s|
- s.name = %q{purple_ruby}
- s.version = "0.6.2"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["yong"]
- s.date = %q{2009-04-01}
- s.description = %q{A ruby gem to write server that sends and recives IM messages}
- s.email = %q{yong@intridea.com}
- s.extensions = ["ext/extconf.rb"]
- s.extra_rdoc_files = ["Manifest.txt", "History.txt", "README.txt"]
- s.files = ["ext/extconf.rb", "ext/purple_ruby.c", "ext/reconnect.c", "ext/account.c", "examples/purplegw_example.rb", "Manifest.txt", "History.txt", "README.txt", "Rakefile"]
- #s.has_rdoc = true
- s.homepage = %q{http://www.intridea.com}
- s.rdoc_options = ["--main", "README.txt"]
- s.require_paths = ["ext"]
- s.rubyforge_project = %q{purplegw_ruby}
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{A ruby gem to write server that sends and recives IM messages}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<hoe>, [">= 1.8.3"])
- else
- s.add_dependency(%q<hoe>, [">= 1.8.3"])
- end
- else
- s.add_dependency(%q<hoe>, [">= 1.8.3"])
- end
-end

0 comments on commit ae52e69

Please sign in to comment.
Something went wrong with that request. Please try again.