Permalink
Browse files

Still getting things right with the gem release

  • Loading branch information...
1 parent 20a1214 commit cc0d8414467ff1f6fbfc6bfc888b0e8227bc9920 @hunterae committed May 3, 2011
Showing with 26 additions and 64 deletions.
  1. +1 −0 .gitignore
  2. +13 −8 Gemfile
  3. +5 −42 Rakefile
  4. +1 −1 VERSION
  5. +6 −13 table-for.gemspec
View
@@ -5,3 +5,4 @@
.rvmrc
Gemfile.lock
spec/database.yml
+Gemfile.lock
View
21 Gemfile
@@ -1,8 +1,13 @@
-source :rubygems
-
-# Rails 3.0
-gem 'rails'
-gem 'rspec'
-gem 'jeweler'
-gem 'rcov'
-gem 'building-blocks'
+source "http://rubygems.org"
+
+gemspec
+
+gem 'rails', "~> 3.0.0"
+gem 'building-blocks'
+
+group :test do
+ gem "rspec-rails", ">= 2.0.0.beta.20"
+ gem 'jeweler'
+ gem 'rcov'
+end
+
View
@@ -1,46 +1,9 @@
-begin
- # Rspec 1.3.0
- require 'spec/rake/spectask'
-
- desc 'Default: run specs'
- task :default => :spec
- Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- end
+require 'rspec/core/rake_task'
- Spec::Rake::SpecTask.new('rcov') do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- # Rspec 2.0
- require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new('spec')
- desc 'Default: run specs'
- task :default => :spec
- Rspec::Core::RakeTask.new do |t|
- t.pattern = "spec/**/*_spec.rb"
- end
-
- Rspec::Core::RakeTask.new('rcov') do |t|
- t.pattern = "spec/**/*_spec.rb"
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- puts "Rspec not available. Install it with: gem install rspec"
-end
-
-namespace 'rails2.3' do
- task :spec do
- gemfile = File.join(File.dirname(__FILE__), 'lib', 'has_relationship', 'compatibility', 'Gemfile')
- ENV['BUNDLE_GEMFILE'] = gemfile
- Rake::Task['spec'].invoke
- end
-end
+# If you want to make this the default task
+task :default => :spec
begin
require 'jeweler'
@@ -51,7 +14,7 @@ begin
gemspec.email = "hunterae@gmail.com"
gemspec.homepage = "http://github.com/hunterae/table-for"
gemspec.authors = ["Andrew Hunter"]
- gemspec.files = FileList["[A-Z]*", "{lib,spec,app,rails}/**/*"] - FileList["**/*.log"]
+ gemspec.files = FileList["[A-Z]*", "{lib,spec,app,rails}/**/*"] - FileList["**/*.log", "Gemfile", "Gemfile.lock"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
@@ -1 +1 @@
-0.0.11
+0.0.12
View
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
"README.rdoc"
]
s.files = [
- "Gemfile",
"README.rdoc",
"Rakefile",
"VERSION",
@@ -37,23 +36,17 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rails>, [">= 0"])
- s.add_runtime_dependency(%q<rspec>, [">= 0"])
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
- s.add_runtime_dependency(%q<rcov>, [">= 0"])
+ s.add_runtime_dependency(%q<table-for>, [">= 0"])
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
s.add_runtime_dependency(%q<building-blocks>, [">= 0"])
else
- s.add_dependency(%q<rails>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<table-for>, [">= 0"])
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
s.add_dependency(%q<building-blocks>, [">= 0"])
end
else
- s.add_dependency(%q<rails>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<table-for>, [">= 0"])
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
s.add_dependency(%q<building-blocks>, [">= 0"])
end
end

0 comments on commit cc0d841

Please sign in to comment.