Skip to content

Commit

Permalink
Readying for release to rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
rymohr committed Apr 6, 2012
1 parent 0b42a9e commit fc6abc4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 50 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,9 @@
.bundle/ *.gem
.bundle
Gemfile.lock
log/*.log log/*.log
pkg/ pkg/*
spec/tmp/*
spec/dummy/db/*.sqlite3 spec/dummy/db/*.sqlite3
spec/dummy/log/*.log spec/dummy/log/*.log
spec/dummy/tmp/ spec/dummy/tmp/
Expand Down
14 changes: 0 additions & 14 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -1,17 +1,3 @@
source "http://rubygems.org" 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 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'
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ GEM
hike (1.2.1) hike (1.2.1)
i18n (0.6.0) i18n (0.6.0)
journey (1.0.3) journey (1.0.3)
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.6) json (1.6.6)
mail (2.4.4) mail (2.4.4)
i18n (>= 0.4.0) i18n (>= 0.4.0)
Expand Down Expand Up @@ -138,7 +135,6 @@ DEPENDENCIES
guard-rspec guard-rspec
guard-spork guard-spork
headcount! headcount!
jquery-rails
rspec-rails rspec-rails
spork spork
sqlite3 sqlite3
28 changes: 1 addition & 27 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,27 +1 @@
#!/usr/bin/env rake require 'bundler/gem_tasks'
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

10 changes: 7 additions & 3 deletions headcount.gemspec
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ Gem::Specification.new do |s|
s.summary = "A simple stat collector for rails apps" s.summary = "A simple stat collector for rails apps"
s.description = "" 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_dependency "rails", "~> 3.2.2"


s.add_development_dependency "sqlite3" s.add_development_dependency "sqlite3"
Expand All @@ -23,4 +27,4 @@ Gem::Specification.new do |s|
s.add_development_dependency "spork" s.add_development_dependency "spork"
s.add_development_dependency "guard-rspec" s.add_development_dependency "guard-rspec"
s.add_development_dependency "guard-spork" s.add_development_dependency "guard-spork"
end end

0 comments on commit fc6abc4

Please sign in to comment.