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 505f98a commit 63187dd
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 43 deletions.
6 changes: 1 addition & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
source "http://rubygems.org"
gemspec

gem "appraisal"
gem "rspec-rails"
gem "capybara", ">= 0.4.0"
gem "sqlite3"
gemspec
24 changes: 4 additions & 20 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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 = 'HighVoltage'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
4 changes: 0 additions & 4 deletions gemfiles/rails-3.0.10.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

source "http://rubygems.org"

gem "sqlite3"
gem "rails", "3.0.10"
gem "rspec-rails"
gem "appraisal"
gem "capybara", ">= 0.4.0"

gemspec :path=>"../"
2 changes: 1 addition & 1 deletion gemfiles/rails-3.0.10.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: /home/mike/lib/high_voltage
remote: /Users/gabe/thoughtbot/high_voltage
specs:
high_voltage (1.0.1)

Expand Down
4 changes: 0 additions & 4 deletions gemfiles/rails-3.1.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

source "http://rubygems.org"

gem "sqlite3"
gem "rails", "3.1.0"
gem "rspec-rails"
gem "appraisal"
gem "capybara", ">= 0.4.0"

gemspec :path=>"../"
2 changes: 1 addition & 1 deletion gemfiles/rails-3.1.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: /home/mike/lib/high_voltage
remote: /Users/gabe/thoughtbot/high_voltage
specs:
high_voltage (1.0.1)

Expand Down
27 changes: 19 additions & 8 deletions high_voltage.gemspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
$:.push File.expand_path("../lib", __FILE__)
require "high_voltage/version"

Gem::Specification.new do |s|
s.name = 'high_voltage'
s.version = '1.0.1'
s.date = %q{2011-09-04}
s.email = 'support@thoughtbot.com'
s.homepage = 'http://github.com/thoughtbot/high_voltage'
s.summary = 'Simple static page rendering controller'
s.name = 'high_voltage'
s.version = HighVoltage::VERSION.dup
s.authors = ['Matt Jankowski', 'Dan Croak', 'Nick Quaranto', 'Chad Pytel', 'Joe Ferris', 'J. Edward Dewyea', 'Tammer Saleh', 'Mike Burns', 'Tristan Dunn']
s.email = ['support@thoughtbot.com']
s.homepage = 'http://github.com/thoughtbot/high_voltage'
s.summary = 'Simple static page rendering controller'
s.description = 'Fire in the disco. Fire in the ... taco bell.'
s.files = ["MIT-LICENSE", "README.md", "{app,config,lib}/**/*"].map { |glob| Dir[glob] }.flatten
s.authors = ['Matt Jankowski', 'Dan Croak', 'Nick Quaranto', 'Chad Pytel', 'Joe Ferris', 'J. Edward Dewyea', 'Tammer Saleh', 'Mike Burns', 'Tristan Dunn']

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")
s.add_development_dependency("rspec-rails")
s.add_development_dependency("capybara", ">= 0.4.0")
s.add_development_dependency("sqlite3")
end
2 changes: 2 additions & 0 deletions lib/high_voltage.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'high_voltage/version'

module HighVoltage
mattr_accessor :layout
@@layout = "application"
Expand Down
3 changes: 3 additions & 0 deletions lib/high_voltage/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module HighVoltage
VERSION = '1.0.1'.freeze
end

0 comments on commit 63187dd

Please sign in to comment.