-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change to 0.0.3, integrating new methods, helped, search and tag search
- Loading branch information
Showing
23 changed files
with
771 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
== 0.0.3 2008-11-05 | ||
|
||
* 1 major enhancement: | ||
* new methods in base | ||
*new methods in base.rb, helped , tag(), and search() | ||
|
||
== 0.0.2 2008-07-05 | ||
|
||
* 1 major enhancement: | ||
* @@apikey desapears | ||
*The apikey passes to the method initialize, now is not a global variable, (security issues) | ||
|
||
== 0.0.1 2008-07-05 | ||
|
||
* 1 major enhancement: | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2008 Miguel Michelson Martinez | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
History.txt | ||
License.txt | ||
Manifest.txt | ||
PostInstall.txt | ||
README.txt | ||
Rakefile | ||
lib/needish.rb | ||
lib/needish/version.rb | ||
lib/needish/base.rb | ||
lib/needish/easy_class_maker.rb | ||
lib/needish/friend.rb | ||
lib/needish/help.rb | ||
lib/needish/need.rb | ||
lib/needish/user.rb | ||
test/test_helper.rb | ||
test/test_needish.rb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Instalation Success!! | ||
|
||
For more information on needish gem, see http://animalita.cl/needish-gem | ||
|
||
cheers! | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
= needish | ||
|
||
* FIX (url) | ||
|
||
== DESCRIPTION: | ||
|
||
This Gems provides basic methods to access the Nedish.com api | ||
|
||
== FEATURES/PROBLEMS: | ||
|
||
lists the user profile, user friends , needs and helps from a need | ||
sends needs, helps | ||
|
||
-problems. | ||
no detected yet! | ||
|
||
-todo | ||
search methods | ||
make friends etc.. | ||
|
||
== SYNOPSIS: | ||
|
||
*examples | ||
|
||
login to needish | ||
pass to login user and pass AND apikey!! (since 0.0.2) | ||
|
||
<pre>login = Needish::Base.new('miguelmichelson@gmail.com','********' ,'apikey2234455566')</pre> | ||
|
||
obtain the user logged data | ||
|
||
<pre>miguel = login.me</pre> | ||
|
||
obtain the user id | ||
|
||
<pre>miguel.id</pre> | ||
|
||
obtain the user friends | ||
|
||
<pre>login.user_friends(miguel.id)</pre> | ||
|
||
obtain the needs | ||
|
||
<pre>login.user_needs(me.id)</pre> | ||
|
||
obtain the needs helps | ||
|
||
<pre>login.helps(user_needs(me.id)[0].id)</pre> | ||
|
||
Other methods | ||
|
||
add need, pass subject and text | ||
|
||
<pre>login.add_need('subject','text')</pre> | ||
|
||
add help, pass need id and text | ||
|
||
<pre>login.add_help(need.id,'text')</pre> | ||
|
||
new methods | ||
|
||
helped needs | ||
<pre> login.helped </pre> | ||
|
||
search by tag | ||
<pre> login.tag("tag") </pre> | ||
|
||
simple search | ||
<pre> login.search("term") </pre> | ||
|
||
|
||
== REQUIREMENTS: | ||
|
||
this gem requires hricot, | ||
|
||
sudo gem install hpricot | ||
|
||
|
||
== INSTALL: | ||
|
||
to install this gem simply do : | ||
|
||
git clone git://github.com/michelson/needish-gem.git | ||
|
||
cd needish-gem | ||
|
||
sudo install gem pkg/needish-0.0.1.gem | ||
|
||
== LICENSE: | ||
|
||
(The MIT License) | ||
|
||
Copyright (c) 2008 FIXME full name | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'config/requirements' | ||
require 'config/hoe' # setup Hoe + all gem configuration | ||
|
||
Dir['tasks/**/*.rake'].each { |rake| load rake } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
%w(uri cgi net/http yaml rubygems hpricot active_support).each { |f| require f } | ||
|
||
$:.unshift(File.dirname(__FILE__)) unless | ||
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) | ||
|
||
|
||
|
||
require 'needish/version' | ||
require 'needish/easy_class_maker' | ||
require 'needish/base' | ||
require 'needish/user' | ||
require 'needish/friend' | ||
require 'needish/need' | ||
require 'needish/help' |
Oops, something went wrong.