Permalink
Browse files

Use Bundler gem conventions.

  • Loading branch information...
1 parent 26104b8 commit ffdc672bbe9687ba134560e379121efbbf992ba9 @gabebw gabebw committed Nov 12, 2011
Showing with 32 additions and 49 deletions.
  1. +1 −7 Gemfile
  2. +2 −2 Gemfile.lock
  3. +4 −20 Rakefile
  4. +22 −8 flutie.gemspec
  5. +0 −6 gemfiles/rails-3.0.10.gemfile
  6. +0 −6 gemfiles/rails-3.1.0.gemfile
  7. +3 −0 lib/flutie/version.rb
View
@@ -1,9 +1,3 @@
source "http://rubygems.org"
-gemspec
-gem "appraisal"
-gem "rspec-rails"
-gem "capybara", ">= 0.4.0"
-gem "sqlite3"
-gem "sass"
-gem "mocha"
+gemspec
View
@@ -22,7 +22,7 @@ GEM
builder (~> 2.1.2)
i18n (~> 0.5.0)
activesupport (3.0.10)
- appraisal (0.3.8)
+ appraisal (0.4.0)
bundler
rake
builder (2.1.2)
@@ -89,7 +89,7 @@ PLATFORMS
ruby
DEPENDENCIES
- appraisal
+ appraisal (~> 0.4)
capybara (>= 0.4.0)
flutie!
mocha
View
@@ -1,17 +1,9 @@
-# encoding: UTF-8
-require 'rubygems'
-begin
- require 'bundler/setup'
-rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
-end
-
-require 'rake'
-require 'rdoc/task'
+require 'bundler'
require 'appraisal'
-
-require 'rspec/core'
require 'rspec/core/rake_task'
+
+Bundler::GemHelper.install_tasks
+
RSpec::Core::RakeTask.new(:spec)
desc "Default: run the unit tests."
@@ -21,11 +13,3 @@ desc 'Test the plugin under all supported Rails versions.'
task :all => ["appraisal:install"] do |t|
exec('rake appraisal spec')
end
-
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Flutie'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
View
@@ -1,11 +1,25 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "flutie/version"
+
Gem::Specification.new do |s|
- s.name = 'flutie'
- s.version = '1.3.3'
- s.date = %q{2011-10-01}
- s.email = 'support@thoughtbot.com'
- s.homepage = 'http://github.com/thoughtbot/flutie'
- s.summary = 'Flutie adds default stylesheets to web apps'
+ s.name = 'flutie'
+ s.version = Flutie::VERSION.dup
+ s.authors = ['Matt Jankowski', 'Chad Pytel', 'Kevin Burg', 'Chad Mazzola', 'Phil LaPier', 'Dan Croak', 'Fred Yates', 'OZAWA Sakuro', 'Mike Burns', 'Greg Sterndale', 'Joe Ferris', 'J. Edward Dewyea', 'Emilien Taque', 'Aaron Suggs', 'Nick Quaranto']
+ s.email = ['support@thoughtbot.com']
+ s.homepage = 'http://github.com/thoughtbot/flutie'
+ s.summary = 'Flutie adds default stylesheets to web apps'
s.description = 'Flutie is a starting point for personal discovery'
- s.files = Dir["{app,config,lib,public}/**/*"] + ["LICENSE", "Rakefile", "Gemfile", "README.md"]
- s.authors = ['Matt Jankowski', 'Chad Pytel', 'Kevin Burg', 'Chad Mazzola', 'Phil LaPier', 'Dan Croak', 'Fred Yates', 'OZAWA Sakuro', 'Mike Burns', 'Greg Sterndale', 'Joe Ferris', 'J. Edward Dewyea', 'Emilien Taque', 'Aaron Suggs', 'Nick Quaranto']
+
+ 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_development_dependency('appraisal', '~> 0.4')
+ s.add_development_dependency('rspec-rails')
+ s.add_development_dependency('capybara', '>= 0.4.0')
+ s.add_development_dependency('sqlite3')
+ s.add_development_dependency('sass')
+ s.add_development_dependency('mocha')
end
@@ -2,12 +2,6 @@
source "http://rubygems.org"
-gem "appraisal"
-gem "rspec-rails"
-gem "capybara", ">= 0.4.0"
-gem "sqlite3"
-gem "sass"
-gem "mocha"
gem "rails", "3.0.10"
gemspec :path=>"../"
@@ -2,12 +2,6 @@
source "http://rubygems.org"
-gem "appraisal"
-gem "rspec-rails"
-gem "capybara", ">= 0.4.0"
-gem "sqlite3"
-gem "sass"
-gem "mocha"
gem "rails", "3.1.0"
gemspec :path=>"../"
View
@@ -0,0 +1,3 @@
+module Flutie
+ VERSION = '1.3.3'.freeze
+end

0 comments on commit ffdc672

Please sign in to comment.