Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Bundler gem conventions.

  • Loading branch information...
commit ffdc672bbe9687ba134560e379121efbbf992ba9 1 parent 26104b8
@gabebw gabebw authored
View
8 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
View
4 Gemfile.lock
@@ -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
24 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."
@@ -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
30 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
View
6 gemfiles/rails-3.0.10.gemfile
@@ -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=>"../"
View
6 gemfiles/rails-3.1.0.gemfile
@@ -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
3  lib/flutie/version.rb
@@ -0,0 +1,3 @@
+module Flutie
+ VERSION = '1.3.3'.freeze
+end
Please sign in to comment.
Something went wrong with that request. Please try again.