diff --git a/README.md b/README.md index 23f0747..46b7020 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ gem 'burden' And then execute: ``` $ bundle +$ bundle exec rails generate burden:install ``` ## Configuration diff --git a/burden.gemspec b/burden.gemspec index 1c219ca..cc3d033 100644 --- a/burden.gemspec +++ b/burden.gemspec @@ -1,5 +1,4 @@ -lib = File.expand_path('../lib', __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +$:.push File.expand_path('../lib', __FILE__) require 'burden/version' Gem::Specification.new do |spec| @@ -7,20 +6,22 @@ Gem::Specification.new do |spec| spec.version = Burden::VERSION spec.authors = ['Gregory Eremin'] spec.email = ['magnolia_fan@me.com'] - spec.description = %q{} - spec.summary = %q{Rake tasks manager and statistics collector} + spec.summary = 'Rake tasks manager and statistics collector' + spec.description = 'Rake tasks manager and statistics collector' spec.homepage = 'https://github.com/magnolia-fan/burden' spec.license = 'MIT' spec.files = `git ls-files`.split($/) - spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.executables = spec.files.grep(/^bin\//){ |f| File.basename(f) } + spec.test_files = spec.files.grep(/^spec\//) spec.require_paths = ['lib'] spec.add_runtime_dependency 'rake' - spec.add_runtime_dependency 'activerecord' - spec.add_development_dependency 'bundler', '~> 1.3' + + spec.add_development_dependency 'activerecord' spec.add_development_dependency 'sqlite3' - spec.add_development_dependency 'rails' - spec.add_development_dependency 'rspec-rails' + + spec.add_development_dependency 'bundler', '~> 1.3' + spec.add_development_dependency 'rails', '>= 3.1' + spec.add_development_dependency 'rspec', '>= 2.0' end diff --git a/burden_web/burden_web.gemspec b/burden_web/burden_web.gemspec index d458cfb..80eeb9e 100644 --- a/burden_web/burden_web.gemspec +++ b/burden_web/burden_web.gemspec @@ -1,24 +1,23 @@ -$:.push File.expand_path("../lib", __FILE__) +$:.push File.expand_path('../lib', __FILE__) +require 'burden_web/version' -# Maintain your gem's version: -require "burden_web/version" +Gem::Specification.new do |spec| + spec.name = 'burden_web' + spec.version = BurdenWeb::VERSION + spec.authors = ['Gregory Eremin'] + spec.email = ['magnolia_fan@me.com'] + spec.summary = 'A web interface for Burden' + spec.description = 'Burden is a manager and statistics collector for Rake tasks. It comes with this web interface.' + spec.homepage = 'https://github.com/magnolia-fan/burden' + spec.license = 'MIT' -# Describe your gem and declare its dependencies: -Gem::Specification.new do |s| - s.name = "burden_web" - s.version = BurdenWeb::VERSION - s.authors = ["TODO: Your name"] - s.email = ["TODO: Your email"] - s.homepage = "TODO" - s.summary = "TODO: Summary of BurdenWeb." - s.description = "TODO: Description of BurdenWeb." - s.license = 'MIT' + spec.files = `git ls-files`.split($/) + spec.executables = spec.files.grep(/^bin\//){ |f| File.basename(f) } + spec.test_files = spec.files.grep(/^spec\//) - s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE", "Rakefile", "README.md"] + spec.add_dependency 'rails', '>= 3.2' + spec.add_development_dependency 'burden', "= #{BurdenWeb::VERSION}" - s.add_dependency 'rails', '>= 3.2' - s.add_development_dependency 'burden' - - s.add_development_dependency 'sqlite3' - s.add_development_dependency 'awesome_print' + spec.add_development_dependency 'sqlite3', '>= 0' + spec.add_development_dependency 'awesome_print', '>= 0' end