forked from mloughran/api_cache
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
23 additions
and
75 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pkg | ||
.DS_Store | ||
rdoc | ||
.bundle | ||
Gemfile.lock |
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,13 +1,4 @@ | ||
# This gemfile is designed to allow easily setting up testing dependencies, | ||
# not for runtime depenencies (which are handled by rubygems) | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "rake" | ||
gem "rspec" | ||
gem "jeweler" | ||
gem "fakeweb" | ||
|
||
gem 'dali' | ||
gem "moneta" | ||
gem "memcache-client" | ||
# Specify your gem's dependencies in api_cache.gemspec | ||
gemspec |
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,40 +1,10 @@ | ||
require 'rake' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |s| | ||
s.name = "api_cache" | ||
s.summary = %Q{API Cache allows advanced caching of APIs} | ||
s.email = "me@mloughran.com" | ||
s.homepage = "http://mloughran.github.com/api_cache/" | ||
s.description = "APICache allows any API client library to be easily wrapped with a robust caching layer. It supports caching (obviously), serving stale data and limits on the number of API calls. It's also got a handy syntax if all you want to do is cache a bothersome url." | ||
s.authors = ["Martyn Loughran"] | ||
s.add_development_dependency("rspec") | ||
s.add_development_dependency("fakeweb") | ||
end | ||
rescue LoadError | ||
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" | ||
end | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = 'api_cache' | ||
rdoc.options << '--line-numbers' << '--inline-source' | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks | ||
|
||
require 'spec/rake/spectask' | ||
Spec::Rake::SpecTask.new(:spec) do |t| | ||
t.libs << 'lib' << 'spec' | ||
t.spec_files = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
Spec::Rake::SpecTask.new(:rcov) do |t| | ||
t.libs << 'lib' << 'spec' | ||
t.spec_files = FileList['spec/**/*_spec.rb'] | ||
t.rcov = true | ||
end | ||
|
||
task :default => :spec |
This file was deleted.
Oops, something went wrong.
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,34 +1,25 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{api_cache} | ||
s.version = "0.2.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Martyn Loughran"] | ||
s.date = %q{2009-08-21} | ||
s.name = "api_cache" | ||
s.version = "0.2.0" | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Martyn Loughran"] | ||
s.email = ["me@mloughran.com"] | ||
s.homepage = "http://mloughran.github.com/api_cache/" | ||
s.summary = %q{API Cache allows advanced caching of APIs} | ||
s.description = %q{APICache allows any API client library to be easily wrapped with a robust caching layer. It supports caching (obviously), serving stale data and limits on the number of API calls. It's also got a handy syntax if all you want to do is cache a bothersome url.} | ||
s.email = %q{me@mloughran.com} | ||
s.files = ["README.rdoc", "VERSION.yml", "lib/api_cache", "lib/api_cache/abstract_store.rb", "lib/api_cache/api.rb", "lib/api_cache/cache.rb", "lib/api_cache/memory_store.rb", "lib/api_cache/moneta_store.rb", "lib/api_cache.rb", "spec/api_cache_spec.rb", "spec/api_spec.rb", "spec/cache_spec.rb", "spec/integration_spec.rb", "spec/monteta_store_spec.rb", "spec/spec_helper.rb"] | ||
s.homepage = %q{http://mloughran.github.com/api_cache/} | ||
s.rdoc_options = ["--inline-source", "--charset=UTF-8"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.5} | ||
s.summary = %q{API Cache allows advanced caching of APIs} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_development_dependency(%q<rspec>, [">= 0"]) | ||
s.add_development_dependency(%q<fakeweb>, [">= 0"]) | ||
else | ||
s.add_dependency(%q<rspec>, [">= 0"]) | ||
s.add_dependency(%q<fakeweb>, [">= 0"]) | ||
end | ||
else | ||
s.add_dependency(%q<rspec>, [">= 0"]) | ||
s.add_dependency(%q<fakeweb>, [">= 0"]) | ||
end | ||
s.add_development_dependency('rspec', "~> 1.0") | ||
s.add_development_dependency('fakeweb') | ||
s.add_development_dependency('rake') | ||
s.add_development_dependency('moneta', "~> 0.6.0") | ||
s.add_development_dependency('dalli') | ||
s.add_development_dependency('memcache-client') | ||
end |