switched to using bundle's own gemspec format

instead of jeweler
This commit is contained in:
2010-11-24 13:46:03 +00:00
parent bf29696c46
commit 20280f2c5d
6 changed files with 62 additions and 49 deletions

8
.gitignore vendored
View File

@@ -16,11 +16,11 @@ tmtags
## PROJECT::GENERAL
coverage
rdoc
pkg
pkg/*
*.gem
.bundle
## PROJECT::SPECIFIC
.bundle/*
.yardoc/*
spec/db/*
doc
redistat.gemspec
doc/*

View File

@@ -1,14 +1,9 @@
source 'http://rubygems.org/'
gem 'activesupport', '>= 2.3.0'
gem 'json', '>= 1.4.6'
gem 'redis', '>= 2.1.1'
gem 'system_timer', '>= 1.0.0'
gem 'time_ext', '>= 0.2.6'
# Specify your gem's dependencies in redistat.gemspec
gemspec
group :development do
gem 'jeweler', '>= 1.5.1'
gem 'rspec', '>= 2.1.0'
gem 'yard', '>= 0.6.3'
gem 'i18n'
end

View File

@@ -1,16 +1,20 @@
PATH
remote: .
specs:
redistat (0.0.3)
activesupport (>= 2.3.0)
json (>= 1.4.6)
redis (>= 2.1.1)
system_timer (>= 1.0.0)
time_ext (>= 0.2.8)
GEM
remote: http://rubygems.org/
specs:
activesupport (3.0.3)
diff-lcs (1.1.2)
git (1.2.5)
i18n (0.4.2)
jeweler (1.5.1)
bundler (~> 1.0.0)
git (>= 1.2.5)
rake
json (1.4.6)
rake (0.8.7)
redis (2.1.1)
rspec (2.1.0)
rspec-core (~> 2.1.0)
@@ -21,8 +25,9 @@ GEM
diff-lcs (~> 1.1.2)
rspec-mocks (2.1.0)
system_timer (1.0)
time_ext (0.2.6)
time_ext (0.2.8)
activesupport (>= 2.3.0)
i18n (>= 0.4.2)
yard (0.6.3)
PLATFORMS
@@ -30,11 +35,10 @@ PLATFORMS
DEPENDENCIES
activesupport (>= 2.3.0)
i18n
jeweler (>= 1.5.1)
json (>= 1.4.6)
redis (>= 2.1.1)
redistat!
rspec (>= 2.1.0)
system_timer (>= 1.0.0)
time_ext (>= 0.2.6)
time_ext (>= 0.2.8)
yard (>= 0.6.3)

View File

@@ -1,31 +1,11 @@
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'redistat'
gem.summary = 'A Redis-backed statistics storage and querying library written in Ruby.'
gem.description = 'A Redis-backed statistics storage and querying library written in Ruby.'
gem.email = 'contact@jimeh.me'
gem.homepage = 'http://github.com/jimeh/redistat'
gem.authors = ['Jim Myhrberg']
gem.add_dependency 'activesupport', '>= 2.3.0'
gem.add_dependency 'json', '>= 1.4.6'
gem.add_dependency 'redis', '>= 2.1.1'
gem.add_dependency 'system_timer', '>= 1.0.0'
gem.add_dependency 'time_ext', '>= 0.2.6'
gem.add_development_dependency 'jeweler', '>= 1.5.1'
gem.add_development_dependency 'rspec', '>= 2.1.0'
gem.add_development_dependency 'yard', '>= 0.6.1'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'bundler'
Bundler::GemHelper.install_tasks
#
# Rspec
#
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
@@ -36,12 +16,13 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
end
task :spec => :check_dependencies
task :default => [:start, :spec, :stop]
#
# Start/stop Redis test server
#
REDIS_DIR = File.expand_path(File.join("..", "spec"), __FILE__)
REDIS_CNF = File.join(REDIS_DIR, "redis-test.conf")
REDIS_PID = File.join(REDIS_DIR, "db", "redis.pid")
@@ -62,7 +43,10 @@ task :stop do
end
# YARD Documentation
#
# Yard
#
begin
require 'yard'
YARD::Rake::YardocTask.new

3
lib/redistat/version.rb Normal file
View File

@@ -0,0 +1,3 @@
module Redistat
VERSION = "0.0.3"
end

27
redistat.gemspec Normal file
View File

@@ -0,0 +1,27 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "redistat/version"
Gem::Specification.new do |s|
s.name = "redistat"
s.version = Redistat::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Jim Myhrberg"]
s.email = ["contact@jimeh.me"]
s.homepage = "http://github.com/jimeh/redistat"
s.summary = %q{A Redis-backed statistics storage and querying library written in Ruby.}
s.description = %q{A Redis-backed statistics storage and querying library written in Ruby.}
s.rubyforge_project = "redistat"
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"]
s.add_runtime_dependency 'activesupport', '>= 2.3.0'
s.add_runtime_dependency 'json', '>= 1.4.6'
s.add_runtime_dependency 'redis', '>= 2.1.1'
s.add_runtime_dependency 'system_timer', '>= 1.0.0'
s.add_runtime_dependency 'time_ext', '>= 0.2.8'
end