Skip to content

Commit

Permalink
Added Gemfile support as requested by @grk
Browse files Browse the repository at this point in the history
  • Loading branch information
twoixter committed Sep 5, 2011
1 parent 98fcf4d commit ef5a6b7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ tmtags
coverage
rdoc
pkg
Gemfile.lock

## PROJECT::SPECIFIC
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
source 'http://rubygems.org'

gem 'mongoid', '>= 2.1.0'

group :development do
gem 'rake'
gem 'jeweler'
gem 'rspec', '>= 2.2.0'
gem 'mocha'
end
3 changes: 0 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ begin
gem.email = "josemiguel@perezruiz.com"
gem.homepage = "http://github.com/twoixter/trackoid"
gem.authors = ["Jose Miguel Perez"]
gem.add_development_dependency "rspec", ">= 2.2.0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
Expand All @@ -28,8 +27,6 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
end

task :spec => :check_dependencies

task :default => :spec

require 'rake/rdoctask'
Expand Down
24 changes: 13 additions & 11 deletions trackoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jose Miguel Perez"]
s.date = %q{2011-05-01}
s.date = %q{2011-09-05}
s.description = %q{Trackoid uses an embeddable approach to track analytics data using the poweful features of MongoDB for scalability}
s.email = %q{josemiguel@perezruiz.com}
s.extra_rdoc_files = [
Expand Down Expand Up @@ -49,28 +49,30 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Trackoid is an easy scalable analytics tracker using MongoDB and Mongoid}
s.test_files = [
"spec/aggregates_spec.rb",
"spec/ext/range_spec.rb",
"spec/ext/time_spec.rb",
"spec/reader_extender_spec.rb",
"spec/readers_spec.rb",
"spec/spec_helper.rb",
"spec/timezone_spec.rb",
"spec/trackoid_spec.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<mongoid>, [">= 2.1.0"])
s.add_development_dependency(%q<rake>, [">= 0"])
s.add_development_dependency(%q<jeweler>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 2.2.0"])
s.add_development_dependency(%q<mocha>, [">= 0"])
else
s.add_dependency(%q<mongoid>, [">= 2.1.0"])
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 2.2.0"])
s.add_dependency(%q<mocha>, [">= 0"])
end
else
s.add_dependency(%q<mongoid>, [">= 2.1.0"])
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 2.2.0"])
s.add_dependency(%q<mocha>, [">= 0"])
end
end

0 comments on commit ef5a6b7

Please sign in to comment.