Permalink
Browse files

Gemified the whole thing with Jeweler. First attempt, so hopefully th…

…ings are working up on GitHub.
  • Loading branch information...
1 parent 378a989 commit 4689c4f7aa13ad5f5194f53835ab2f793b43adbd @kematzy kematzy committed Feb 24, 2009
Showing with 78 additions and 0 deletions.
  1. +45 −0 Rakefile
  2. +4 −0 VERSION.yml
  3. +29 −0 sinatra-cache.gemspec
View
45 Rakefile
@@ -0,0 +1,45 @@
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = "sinatra-cache"
+ s.summary = %Q{Simple Page Caching for Sinatra [www.sinatrarb.com]}
+ s.email = "kematzy@gmail.com"
+ s.homepage = "http://github.com/kematzy/sinatra-cache"
+ s.description = "Simple Page Caching for Sinatra [www.sinatrarb.com]"
+ s.authors = ["kematzy"]
+ 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 = 'sinatra-cache'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib' << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = false
+end
+
+# begin
+# require 'rcov/rcovtask'
+# Rcov::RcovTask.new do |t|
+# t.libs << 'test'
+# t.test_files = FileList['test/**/*_test.rb']
+# t.verbose = true
+# end
+# rescue LoadError
+# puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+# end
+#
+
+task :default => :test
View
4 VERSION.yml
@@ -0,0 +1,4 @@
+---
+:major: 0
+:minor: 2
+:patch: 0
View
29 sinatra-cache.gemspec
@@ -0,0 +1,29 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{sinatra-cache}
+ s.version = "0.2.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["kematzy"]
+ s.date = %q{2009-02-25}
+ s.description = %q{Simple Page Caching for Sinatra [www.sinatrarb.com]}
+ s.email = %q{kematzy@gmail.com}
+ s.files = ["README.textile", "VERSION.yml", "lib/sinatra", "lib/sinatra/cache.rb", "test/cache_test.rb", "test/fixtures", "test/fixtures/classic.rb", "test/fixtures/myapp.rb", "test/fixtures/myapp_default.rb", "test/fixtures/public", "test/fixtures/views", "test/fixtures/views/index.erb", "test/helper.rb", "test/SPECS.rdoc"]
+ s.has_rdoc = true
+ s.homepage = %q{http://github.com/kematzy/sinatra-cache}
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{Simple Page Caching for Sinatra [www.sinatrarb.com]}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end

0 comments on commit 4689c4f

Please sign in to comment.