Skip to content

Commit

Permalink
updated gem dependencies; upgraded rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jlong committed Nov 3, 2010
1 parent d79053c commit cfa263e
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 32 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
--color
10 changes: 5 additions & 5 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ gem 'rack', '~> 1.2.1'
# activesupport 3.0.x # activesupport 3.0.x
gem 'activesupport', '~> 3.0.1' gem 'activesupport', '~> 3.0.1'
gem 'tzinfo', '~> 0.3.23' gem 'tzinfo', '~> 0.3.23'
gem 'i18n', '~> 0.4.1' gem 'i18n', '~> 0.4.2'


group :development do group :development do
gem 'jeweler', '~> 1.4.0' gem 'jeweler', '~> 1.4.0'
gem 'haml' gem 'haml', '~> 3.0.23'
gem 'rspec', '~> 1.3.1' gem 'rspec', '~> 2.0.1'
end end
18 changes: 14 additions & 4 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
activesupport (3.0.1) activesupport (3.0.1)
diff-lcs (1.1.2)
gemcutter (0.6.1) gemcutter (0.6.1)
git (1.2.5) git (1.2.5)
haml (3.0.23) haml (3.0.23)
Expand All @@ -13,7 +14,16 @@ GEM
json_pure (1.4.6) json_pure (1.4.6)
rack (1.2.1) rack (1.2.1)
rake (0.8.7) rake (0.8.7)
rspec (1.3.1) rspec (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
rspec-mocks (~> 2.0.1)
rspec-core (2.0.1)
rspec-expectations (2.0.1)
diff-lcs (>= 1.1.2)
rspec-mocks (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
rubyforge (2.0.4) rubyforge (2.0.4)
json_pure (>= 1.1.7) json_pure (>= 1.1.7)
tzinfo (0.3.23) tzinfo (0.3.23)
Expand All @@ -23,10 +33,10 @@ PLATFORMS


DEPENDENCIES DEPENDENCIES
activesupport (~> 3.0.1) activesupport (~> 3.0.1)
haml haml (~> 3.0.23)
i18n (~> 0.4.1) i18n (~> 0.4.2)
jeweler (~> 1.4.0) jeweler (~> 1.4.0)
rack (~> 1.2.1) rack (~> 1.2.1)
rake (~> 0.8.7) rake (~> 0.8.7)
rspec (~> 1.3.1) rspec (~> 2.0.1)
tzinfo (~> 0.3.23) tzinfo (~> 0.3.23)
4 changes: 1 addition & 3 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ load 'tasks/rdoc.rake'
load 'tasks/rspec.rake' load 'tasks/rspec.rake'
load 'tasks/undefine.rake' load 'tasks/undefine.rake'


#Dir['tasks/**/*.rake'].each { |rake| load rake } task :default => :spec

task :default => :spec
1 change: 0 additions & 1 deletion spec/spec.opts

This file was deleted.

7 changes: 1 addition & 6 deletions spec/spec_helper.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,9 +4,4 @@
gem 'activesupport' gem 'activesupport'


require 'serve' require 'serve'
require 'spec' require 'rspec'
require 'spec/autorun'

Spec::Runner.configure do |config|

end
7 changes: 2 additions & 5 deletions tasks/jeweler.rake
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ begin
gem.description = %Q{Serve is a small Rack-based web server that makes it easy to serve ERB or HAML from any directory. Serve is an ideal tool for building HTML prototypes of Rails applications. Serve can also handle SASS, Textile, and Markdown if the appropriate gems are installed.} gem.description = %Q{Serve is a small Rack-based web server that makes it easy to serve ERB or HAML from any directory. Serve is an ideal tool for building HTML prototypes of Rails applications. Serve can also handle SASS, Textile, and Markdown if the appropriate gems are installed.}
gem.email = "me@johnwlong.com" gem.email = "me@johnwlong.com"
gem.homepage = "http://github.com/jlong/serve" gem.homepage = "http://github.com/jlong/serve"
gem.authors = ["John W. Long", "Adam I. Williams"] gem.authors = ["John W. Long", "Adam I. Williams", "Robert Evans"]



gem.add_dependency 'rack', '~> 1.2.1' gem.add_dependency 'rack', '~> 1.2.1'
gem.add_dependency 'activesupport', '~> 3.0.1' gem.add_dependency 'activesupport', '~> 3.0.1'
gem.add_dependency 'tzinfo', '~> 0.3.23' gem.add_dependency 'tzinfo', '~> 0.3.23'
gem.add_dependency 'i18n', '~> 0.4.1' gem.add_dependency 'i18n', '~> 0.4.1'


gem.add_development_dependency "rspec", "~> 1.3.1" gem.add_development_dependency "rspec", "~> 2.0.1"




gem.files = FileList["[A-Z]*", "{bin,lib,rails,spec}/**/*"].exclude("tmp") gem.files = FileList["[A-Z]*", "{bin,lib,rails,spec}/**/*"].exclude("tmp")
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
Expand Down
13 changes: 5 additions & 8 deletions tasks/rspec.rake
Original file line number Original file line Diff line number Diff line change
@@ -1,16 +1,13 @@
require 'spec/rake/spectask' require 'rspec/core/rake_task'


Spec::Rake::SpecTask.new(:spec) do |spec| RSpec::Core::RakeTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb'
spec.spec_opts = ['--options', "spec/spec.opts"]
spec.spec_files = FileList['spec/**/*_spec.rb']
end end


Spec::Rake::SpecTask.new(:rcov) do |spec| RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb' spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true spec.rcov = true
end end


# Check dependencies before running specs # Check dependencies before running specs
task :spec => :check_dependencies task :spec => :check_dependencies

0 comments on commit cfa263e

Please sign in to comment.