Skip to content

Commit

Permalink
Add OAuth/BasicAuth support
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Dec 19, 2008
1 parent ae9dd20 commit 1e351ea
Show file tree
Hide file tree
Showing 83 changed files with 206 additions and 12,792 deletions.
27 changes: 4 additions & 23 deletions README
Expand Up @@ -6,6 +6,9 @@

This rubygem is a wrapper of iKnow! API.
You can get pure-ruby example at examples/pure_ruby.rb.
http://github.com/nov/iknow/tree/master/examples/pure_ruby.rb

It shows all API calls you can use with this gem.

== Installation

Expand All @@ -19,7 +22,7 @@

=== Gem Installation

gem install nov-iknow
gem install iknow

== Features/Problems

Expand All @@ -29,31 +32,9 @@
They will be implemented in a few weeks.

iKnow! OAuth is still pre-alpha.
Wait a few weeks to use it, please.

== Synopsis

% rails iknow_on_rails
% cd iknow_on_rails
% ./script/generate iknow_oauth
% rake db:create
% rake db:migrate

and edit environment.rb like examples/iknow_on_rails
and add some controllers and views like examples/iknow_on_rails
and go http://localhost:3000/

You can run examples/iknow_on_rails

1. DOWNLOAD THIS GEM

2. Run the example
% cd iknow/examples/iknow_on_rails (cd nov-iknow/examples/iknow_on_rails ??)
% rake db:create
% rake db:migrate
% ./script/server

About Another things
See examples and iKnow! Developers, please.
iKnow! Developers (http://developer.iknow.co.jp)

Expand Down
7 changes: 5 additions & 2 deletions Rakefile
Expand Up @@ -62,11 +62,12 @@ spec = Gem::Specification.new do |s|

s.add_dependency('rails', '>=2.1.0')
s.add_dependency('json')
s.add_dependency('oauth', '>=0.2.4')
s.add_dependency('mechanize')
s.add_dependency('oauth', '>=0.2.7')
s.required_ruby_version = '>= 1.8.6'

s.files = %w(README ChangeLog Rakefile) +
Dir.glob("{bin,doc,test,lib,templates,generators,extras,website,script}/**/*") +
Dir.glob("{bin,doc,test,lib,templates,extras,website,script}/**/*") +
Dir.glob("ext/**/*.{h,c,rb}") +
Dir.glob("examples/**/*.rb") +
Dir.glob("tools/*.rb") +
Expand All @@ -80,12 +81,14 @@ Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
end

desc "Install"
task :install do
name = "#{NAME}-#{VERS}.gem"
sh %{rake package}
sh %{sudo gem install pkg/#{name}}
end

desc "Uninstall"
task :uninstall => [:clean] do
sh %{sudo gem uninstall #{NAME}}
end
Expand Down
256 changes: 0 additions & 256 deletions examples/iknow_on_rails/README

This file was deleted.

10 changes: 0 additions & 10 deletions examples/iknow_on_rails/Rakefile

This file was deleted.

15 changes: 0 additions & 15 deletions examples/iknow_on_rails/app/controllers/application.rb

This file was deleted.

24 changes: 0 additions & 24 deletions examples/iknow_on_rails/app/controllers/iknow_oauth_controller.rb

This file was deleted.

0 comments on commit 1e351ea

Please sign in to comment.