Permalink
Browse files

Readying for release to rubygems

  • Loading branch information...
1 parent 0b42a9e commit fc6abc48b833aff0ac1090cc8598715e14177741 @rymohr rymohr committed Apr 6, 2012
Showing with 13 additions and 50 deletions.
  1. +5 −2 .gitignore
  2. +0 −14 Gemfile
  3. +0 −4 Gemfile.lock
  4. +1 −27 Rakefile
  5. +7 −3 headcount.gemspec
View
7 .gitignore
@@ -1,6 +1,9 @@
-.bundle/
+*.gem
+.bundle
+Gemfile.lock
log/*.log
-pkg/
+pkg/*
+spec/tmp/*
spec/dummy/db/*.sqlite3
spec/dummy/log/*.log
spec/dummy/tmp/
View
14 Gemfile
@@ -1,17 +1,3 @@
source "http://rubygems.org"
-# Declare your gem's dependencies in headcount.gemspec.
-# Bundler will treat runtime dependencies like base dependencies, and
-# development dependencies will be added by default to the :development group.
gemspec
-
-# jquery-rails is used by the dummy application
-gem "jquery-rails"
-
-# Declare any dependencies that are still in development here instead of in
-# your gemspec. These might include edge Rails or gems from your path or
-# Git. Remember to move these dependencies to your gemspec before releasing
-# your gem to rubygems.org.
-
-# To use debugger
-# gem 'ruby-debug19', :require => 'ruby-debug'
View
4 Gemfile.lock
@@ -59,9 +59,6 @@ GEM
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
- jquery-rails (2.0.2)
- railties (>= 3.2.0, < 5.0)
- thor (~> 0.14)
json (1.6.6)
mail (2.4.4)
i18n (>= 0.4.0)
@@ -138,7 +135,6 @@ DEPENDENCIES
guard-rspec
guard-spork
headcount!
- jquery-rails
rspec-rails
spork
sqlite3
View
28 Rakefile
@@ -1,27 +1 @@
-#!/usr/bin/env rake
-begin
- require 'bundler/setup'
-rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
-end
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rdoc/rdoc'
- require 'rake/rdoctask'
- RDoc::Task = Rake::RDocTask
-end
-
-RDoc::Task.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Headcount'
- rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-
-
-
-Bundler::GemHelper.install_tasks
-
+require 'bundler/gem_tasks'
View
10 headcount.gemspec
@@ -13,8 +13,12 @@ Gem::Specification.new do |s|
s.summary = "A simple stat collector for rails apps"
s.description = ""
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
-
+ s.rubyforge_project = "headcount"
+
+ s.files = Dir["{lib}/**/*"] + ["MIT-LICENSE", "Gemfile", "Gemfile.lock", "Rakefile", "README.rdoc"]
+ s.test_files = Dir["{spec}/**/*"]
+ s.require_paths = ["lib"]
+
s.add_dependency "rails", "~> 3.2.2"
s.add_development_dependency "sqlite3"
@@ -23,4 +27,4 @@ Gem::Specification.new do |s|
s.add_development_dependency "spork"
s.add_development_dependency "guard-rspec"
s.add_development_dependency "guard-spork"
-end
+end

0 comments on commit fc6abc4

Please sign in to comment.