Skip to content

Commit

Permalink
Use Bundler gem conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 12, 2011
1 parent 26104b8 commit ffdc672
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 49 deletions.
8 changes: 1 addition & 7 deletions Gemfile
@@ -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
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -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)
Expand Down Expand Up @@ -89,7 +89,7 @@ PLATFORMS
ruby

DEPENDENCIES
appraisal
appraisal (~> 0.4)
capybara (>= 0.4.0)
flutie!
mocha
Expand Down
24 changes: 4 additions & 20 deletions Rakefile
@@ -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."
Expand All @@ -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
30 changes: 22 additions & 8 deletions flutie.gemspec
@@ -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
6 changes: 0 additions & 6 deletions gemfiles/rails-3.0.10.gemfile
Expand Up @@ -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=>"../"
6 changes: 0 additions & 6 deletions gemfiles/rails-3.1.0.gemfile
Expand Up @@ -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=>"../"
3 changes: 3 additions & 0 deletions lib/flutie/version.rb
@@ -0,0 +1,3 @@
module Flutie
VERSION = '1.3.3'.freeze
end

0 comments on commit ffdc672

Please sign in to comment.