Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use Bundler gem conventions.

  • Loading branch information...
commit 63187dd85c97881805bdce62c82e26814e666752 1 parent 505f98a
@gabebw gabebw authored
View
6 Gemfile
@@ -1,7 +1,3 @@
source "http://rubygems.org"
-gemspec
-gem "appraisal"
-gem "rspec-rails"
-gem "capybara", ">= 0.4.0"
-gem "sqlite3"
+gemspec
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 = 'HighVoltage'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
View
4 gemfiles/rails-3.0.10.gemfile
@@ -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=>"../"
View
2  gemfiles/rails-3.0.10.gemfile.lock
@@ -1,5 +1,5 @@
PATH
- remote: /home/mike/lib/high_voltage
+ remote: /Users/gabe/thoughtbot/high_voltage
specs:
high_voltage (1.0.1)
View
4 gemfiles/rails-3.1.0.gemfile
@@ -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=>"../"
View
2  gemfiles/rails-3.1.0.gemfile.lock
@@ -1,5 +1,5 @@
PATH
- remote: /home/mike/lib/high_voltage
+ remote: /Users/gabe/thoughtbot/high_voltage
specs:
high_voltage (1.0.1)
View
27 high_voltage.gemspec
@@ -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
View
2  lib/high_voltage.rb
@@ -1,3 +1,5 @@
+require 'high_voltage/version'
+
module HighVoltage
mattr_accessor :layout
@@layout = "application"
View
3  lib/high_voltage/version.rb
@@ -0,0 +1,3 @@
+module HighVoltage
+ VERSION = '1.0.1'.freeze
+end
Please sign in to comment.
Something went wrong with that request. Please try again.