forked from pengwynn/gowalla
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extending API with first revision of Smashie
- Loading branch information
RichardSchneeman
committed
Jul 7, 2010
1 parent
d5568f5
commit fdce43e
Showing
19 changed files
with
4,153 additions
and
4,499 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
source :rubygems | ||
|
||
gem 'oauth2' | ||
gem 'faraday', '~> 0.4.5' | ||
gem 'hashie', '~> 0.2.0' | ||
gem 'multi_json', '~> 0.0.4' | ||
gem 'faraday-middleware' | ||
|
||
group :development do | ||
gem 'shoulda', '~> 2.10.0' | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,23 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) | ||
require "bundler/version" | ||
require "shoulda/tasks" | ||
require 'lib/gowalla' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "gowalla" | ||
gem.summary = %Q{Ruby wrapper for the Gowalla API} | ||
gem.description = %Q{Ruby wrapper for the Gowalla API} | ||
gem.email = "wynn.netherland@gmail.com" | ||
gem.homepage = "http://github.com/pengwynn/gowalla" | ||
gem.authors = ["Wynn Netherland"] | ||
|
||
gem.add_dependency('hashie', '>= 0.1.3') | ||
gem.add_dependency('httparty', '>= 0.5.0') | ||
|
||
gem.add_development_dependency('shoulda', '>= 2.10.1') | ||
gem.add_development_dependency('jnunemaker-matchy', '0.4.0') | ||
gem.add_development_dependency('fakeweb', '>= 1.2.5') | ||
gem.add_development_dependency "yard", ">= 0" | ||
end | ||
Jeweler::GemcutterTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" | ||
end | ||
|
||
require 'rake/testtask' | ||
require "rake/testtask" | ||
Rake::TestTask.new(:test) do |test| | ||
test.libs << 'lib' << 'test' | ||
test.pattern = 'test/**/test_*.rb' | ||
test.verbose = true | ||
test.ruby_opts = ["-rubygems"] if defined? Gem | ||
test.libs << "lib" << "test" | ||
test.pattern = "test/**/*_test.rb" | ||
end | ||
|
||
begin | ||
require 'rcov/rcovtask' | ||
Rcov::RcovTask.new do |test| | ||
test.libs << 'test' | ||
test.pattern = 'test/**/test_*.rb' | ||
test.verbose = true | ||
end | ||
rescue LoadError | ||
task :rcov do | ||
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" | ||
end | ||
|
||
desc "Build the gem" | ||
task :build do | ||
system "gem build gowalla.gemspec" | ||
end | ||
|
||
task :test => :check_dependencies | ||
|
||
task :default => :test | ||
|
||
begin | ||
require 'yard' | ||
YARD::Rake::YardocTask.new | ||
rescue LoadError | ||
task :yardoc do | ||
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard" | ||
end | ||
|
||
desc "Build and release the gem" | ||
task :release => :build do | ||
system "gem push gowalla-#{Gowalla::VERSION}.gem" | ||
end | ||
|
||
task :default => :test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,25 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | ||
# -*- encoding: utf-8 -*- | ||
require 'bundler' | ||
require 'bundler/version' | ||
require 'lib/gowalla' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{gowalla} | ||
s.version = "0.1.4" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.version = Gowalla::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.required_rubygems_version = ">= 1.3.6" | ||
s.authors = ["Wynn Netherland"] | ||
s.date = %q{2010-05-06} | ||
s.date = %q{2010-06-26} | ||
s.description = %q{Ruby wrapper for the Gowalla API} | ||
s.email = %q{wynn.netherland@gmail.com} | ||
s.extra_rdoc_files = [ | ||
"LICENSE", | ||
"README.md" | ||
] | ||
s.files = [ | ||
".document", | ||
".gitignore", | ||
"LICENSE", | ||
"README.md", | ||
"Rakefile", | ||
"VERSION", | ||
"changelog.md", | ||
"gowalla.gemspec", | ||
"lib/gowalla.rb", | ||
"lib/gowalla/client.rb", | ||
"test/fixtures/categories.json", | ||
"test/fixtures/category.json", | ||
"test/fixtures/challenges.json", | ||
"test/fixtures/checkin.json", | ||
"test/fixtures/events.json", | ||
"test/fixtures/find_spots.json", | ||
"test/fixtures/find_trips.json", | ||
"test/fixtures/friend_requests.json", | ||
"test/fixtures/friends.json", | ||
"test/fixtures/friends_recent.json", | ||
"test/fixtures/item.json", | ||
"test/fixtures/items.json", | ||
"test/fixtures/me.json", | ||
"test/fixtures/missing_items.json", | ||
"test/fixtures/new_spot.json", | ||
"test/fixtures/pins.json", | ||
"test/fixtures/potential_twitter_friends.json", | ||
"test/fixtures/spot.json", | ||
"test/fixtures/spots.json", | ||
"test/fixtures/spots_by_category.json", | ||
"test/fixtures/stamps.json", | ||
"test/fixtures/top_spots.json", | ||
"test/fixtures/trip.json", | ||
"test/fixtures/trips.json", | ||
"test/fixtures/user.json", | ||
"test/fixtures/vaulted_items.json", | ||
"test/fixtures/visited_spots.json", | ||
"test/helper.rb", | ||
"test/test_gowalla.rb" | ||
] | ||
s.homepage = %q{http://github.com/pengwynn/gowalla} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.files = Dir.glob("{lib}/**/*") | ||
s.homepage = %q{http://wynnnetherland.com/projects/gowalla/} | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.6} | ||
s.summary = %q{Ruby wrapper for the Gowalla API} | ||
s.summary = %q{Wrapper for the Gowalla API} | ||
s.test_files = [ | ||
"test/helper.rb", | ||
"test/test_gowalla.rb" | ||
"test/gowalla_test.rb" | ||
] | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<hashie>, [">= 0.1.3"]) | ||
s.add_runtime_dependency(%q<httparty>, [">= 0.5.0"]) | ||
s.add_development_dependency(%q<shoulda>, [">= 2.10.1"]) | ||
s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"]) | ||
s.add_development_dependency(%q<fakeweb>, [">= 1.2.5"]) | ||
s.add_development_dependency(%q<yard>, [">= 0"]) | ||
else | ||
s.add_dependency(%q<hashie>, [">= 0.1.3"]) | ||
s.add_dependency(%q<httparty>, [">= 0.5.0"]) | ||
s.add_dependency(%q<shoulda>, [">= 2.10.1"]) | ||
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"]) | ||
s.add_dependency(%q<fakeweb>, [">= 1.2.5"]) | ||
s.add_dependency(%q<yard>, [">= 0"]) | ||
end | ||
else | ||
s.add_dependency(%q<hashie>, [">= 0.1.3"]) | ||
s.add_dependency(%q<httparty>, [">= 0.5.0"]) | ||
s.add_dependency(%q<shoulda>, [">= 2.10.1"]) | ||
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"]) | ||
s.add_dependency(%q<fakeweb>, [">= 1.2.5"]) | ||
s.add_dependency(%q<yard>, [">= 0"]) | ||
end | ||
s.add_bundler_dependencies | ||
end | ||
|
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
Oops, something went wrong.