Merge pull request #74 from DAddYE/master

Remove railties dependency
This commit is contained in:
Sam Lown 2011-05-16 02:00:58 -07:00
commit c5ae042c76
2 changed files with 11 additions and 15 deletions

View file

@ -1,23 +1,20 @@
require 'rubygems' require 'rubygems'
require 'bundler' require 'bundler'
Bundler::GemHelper.install_tasks require 'rspec/core/rake_task'
require 'rake'
require "rake/rdoctask" require "rake/rdoctask"
require 'rspec' Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
desc "Run all specs" desc "Run all specs"
Rspec::Core::RakeTask.new(:spec) do |spec| RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ["--color"] spec.rspec_opts = ["--color"]
spec.pattern = 'spec/**/*_spec.rb' spec.pattern = 'spec/**/*_spec.rb'
end end
desc "Print specdocs" desc "Print specdocs"
Rspec::Core::RakeTask.new(:doc) do |spec| RSpec::Core::RakeTask.new(:doc) do |spec|
spec.rspec_opts = ["--format", "specdoc"] spec.rspec_opts = ["--format", "specdoc"]
spec.pattern = 'spec/*_spec.rb' spec.pattern = 'spec/*_spec.rb'
end end
desc "Generate the rdoc" desc "Generate the rdoc"
@ -38,4 +35,4 @@ module Rake
end end
Rake.remove_task("github:release") Rake.remove_task("github:release")
Rake.remove_task("release") Rake.remove_task("release")

View file

@ -17,17 +17,16 @@ Gem::Specification.new do |s|
s.homepage = %q{http://github.com/couchrest/couchrest_model} s.homepage = %q{http://github.com/couchrest/couchrest_model}
s.rubygems_version = %q{1.3.7} s.rubygems_version = %q{1.3.7}
s.summary = %q{Extends the CouchRest Document for advanced modelling.} s.summary = %q{Extends the CouchRest Document for advanced modelling.}
s.files = `git ls-files`.split("\n") s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.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.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"] s.require_paths = ["lib"]
s.add_dependency(%q<couchrest>, "1.1.0.pre2") s.add_dependency(%q<couchrest>, "1.1.0.pre2")
s.add_dependency(%q<mime-types>, "~> 1.15") s.add_dependency(%q<mime-types>, "~> 1.15")
s.add_dependency(%q<activemodel>, "~> 3.0") s.add_dependency(%q<activemodel>, "~> 3.0")
s.add_dependency(%q<tzinfo>, "~> 0.3.22") s.add_dependency(%q<tzinfo>, "~> 0.3.22")
s.add_dependency(%q<railties>, "~> 3.0")
s.add_development_dependency(%q<rspec>, ">= 2.0.0") s.add_development_dependency(%q<rspec>, ">= 2.0.0")
s.add_development_dependency(%q<rack-test>, ">= 0.5.7") s.add_development_dependency(%q<rack-test>, ">= 0.5.7")
# s.add_development_dependency("jruby-openssl", ">= 0.7.3") # s.add_development_dependency("jruby-openssl", ">= 0.7.3")