Browse files

Use Bundler gem conventions.

This also introduces PaulRevere::VERSION.
  • Loading branch information...
1 parent 3574b40 commit 164349dbd0d084042e80d7e98a11ad1e8e0569e4 @gabebw gabebw committed Nov 12, 2011
Showing with 25 additions and 15 deletions.
  1. +1 −3 Gemfile
  2. +0 −2 gemfiles/3.0.10.gemfile
  3. +0 −2 gemfiles/3.1.0.gemfile
  4. +2 −0 lib/paul_revere.rb
  5. +3 −0 lib/paul_revere/version.rb
  6. +19 −8 paul_revere.gemspec
View
4 Gemfile
@@ -1,5 +1,3 @@
source "http://rubygems.org"
-gemspec
-gem "appraisal"
-gem "rspec-rails"
+gemspec
View
2 gemfiles/3.0.10.gemfile
@@ -2,8 +2,6 @@
source "http://rubygems.org"
-gem "appraisal"
-gem "rspec-rails"
gem "rails", "3.0.10"
gemspec :path=>"../"
View
2 gemfiles/3.1.0.gemfile
@@ -2,8 +2,6 @@
source "http://rubygems.org"
-gem "appraisal"
-gem "rspec-rails"
gem "rails", "3.1.0"
gem "sass-rails"
gem "coffee-script"
View
2 lib/paul_revere.rb
@@ -1,3 +1,5 @@
+require 'paul_revere/version'
+
module PaulRevere
class Engine < Rails::Engine
end
View
3 lib/paul_revere/version.rb
@@ -0,0 +1,3 @@
+module PaulRevere
+ VERSION = '0.2.1'.freeze
+end
View
27 paul_revere.gemspec
@@ -1,15 +1,26 @@
+$:.push File.expand_path("../lib", __FILE__)
+require "paul_revere/version"
+
Gem::Specification.new do |s|
- s.name = "paul_revere"
- s.version = "0.2.1"
- s.date = %q{2011-09-18}
- s.email = "support@thoughtbot.com"
- s.homepage = "https://github.com/thoughtbot/paul_revere"
- s.summary = "Simple announcement plugin to include 'one off' style announcements in Rails web apps."
+ s.name = "paul_revere"
+ s.version = PaulRevere::VERSION.dup
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Nick Quaranto', 'Matt Jankowski', 'Joe Ferris', 'Christopher Meiklejohn', 'Tammer Saleh', 'Jason Morrison', 'Gabe Berke-Williams']
+ s.email = "support@thoughtbot.com"
+ s.homepage = "https://github.com/thoughtbot/paul_revere"
+ s.summary = "Simple announcement plugin to include 'one off' style announcements in Rails web apps."
s.description = "Paul Revere provides a model and helper methods to do one-off style announcements."
- s.files = Dir["{app,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.md", "init.rb"]
- s.authors = ['Nick Quaranto', 'Matt Jankowski', 'Joe Ferris', 'Christopher Meiklejohn', 'Tammer Saleh', 'Jason Morrison', 'Gabe Berke-Williams']
+
+ 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_dependency("rails", "~> 3.0")
+
s.add_development_dependency("rspec")
+ s.add_development_dependency("rspec-rails")
s.add_development_dependency("sqlite3")
s.add_development_dependency("mocha")
+ s.add_development_dependency("appraisal")
end

0 comments on commit 164349d

Please sign in to comment.