Skip to content
This repository was archived by the owner on Jan 30, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ First, install the teambox-client gem:
Now, run "irb -rubygems" and this snippet to get the list of activities:

require 'teambox-client'
client = Teambox::Client.new(:auth => {:username => 'frank', :password => 'papapa'})
client = Teambox::Client.new(:auth => {:user => 'frank', :password => 'papapa'})
puts client.activities

By default, teambox-client will connect to the hosted service at https://teambox.com/api/1; optionally you can:

client = Teambox::Client.new(:base_uri => 'http://teambox.mysite.com/api/1', :auth => {:username => 'frank', :password => 'papapa'})
client = Teambox::Client.new(:base_uri => 'http://teambox.mysite.com/api/1', :auth => {:user => 'frank', :password => 'papapa'})

== Examples

See the examples directory.

== Important Notes

No support for Ruby 1.9.3 yet.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ begin
gem.homepage = "http://github.com/teambox/teambox-ruby-client"
gem.authors = ["Pablo Villalba", "James Urquhart"]

gem.add_dependency("httparty", "~> 0.7.4")
gem.add_dependency("oauth2", "~> 0.1.1")
gem.add_dependency("json", "~> 1.5.1")
gem.add_dependency("httparty", "~> 0.9.0")
gem.add_dependency("oauth2", "~> 0.8.0")
gem.add_dependency("json", "~> 1.7.5")
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
Expand Down
23 changes: 12 additions & 11 deletions teambox-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{teambox-client}
s.version = "0.4.0"
s.version = "0.4.2"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Pablo Villalba", "James Urquhart"]
Expand Down Expand Up @@ -45,6 +45,7 @@ Gem::Specification.new do |s|
"lib/teambox-client/result_set.rb",
"lib/teambox-client/teambox.rb",
"lib/teambox-client/teambox_oauth.rb",
"lib/teambox-client/reference_list.rb",
"spec/client_spec.rb",
"spec/conversation_spec.rb",
"spec/project_spec.rb",
Expand All @@ -56,25 +57,25 @@ Gem::Specification.new do |s|
]
s.homepage = %q{http://github.com/teambox/teambox-ruby-client}
s.require_paths = ["lib"]
s.rubygems_version = %q{1.6.2}
s.rubygems_version = %q{1.8.6}
s.summary = %q{A ruby gem wrapper for Teambox API}

if s.respond_to? :specification_version then
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<httparty>, ["~> 0.7.4"])
s.add_runtime_dependency(%q<oauth2>, ["~> 0.1.1"])
s.add_runtime_dependency(%q<json>, ["~> 1.5.1"])
s.add_runtime_dependency(%q<httparty>, ["~> 0.9.0"])
s.add_runtime_dependency(%q<oauth2>, ["~> 0.8.0"])
s.add_runtime_dependency(%q<json>, ["~> 1.7.5"])
else
s.add_dependency(%q<httparty>, ["~> 0.7.4"])
s.add_dependency(%q<oauth2>, ["~> 0.1.1"])
s.add_dependency(%q<json>, ["~> 1.5.1"])
s.add_dependency(%q<httparty>, ["~> 0.9.0"])
s.add_dependency(%q<oauth2>, ["~> 0.8.0"])
s.add_dependency(%q<json>, ["~> 1.7.5"])
end
else
s.add_dependency(%q<httparty>, ["~> 0.7.4"])
s.add_dependency(%q<oauth2>, ["~> 0.1.1"])
s.add_dependency(%q<json>, ["~> 1.5.1"])
s.add_dependency(%q<httparty>, ["~> 0.9.0"])
s.add_dependency(%q<oauth2>, ["~> 0.8.0"])
s.add_dependency(%q<json>, ["~> 1.7.5"])
end
end