start making bundler support work more properly

This commit is contained in:
John Bintz 2010-11-24 13:05:20 -05:00
parent 61610b8922
commit c81cec2833
7 changed files with 26 additions and 52 deletions

1
.gitignore vendored
View File

@ -7,5 +7,6 @@ Manifest
*.gemspec *.gemspec
tmp/* tmp/*
.bundle/* .bundle/*
.DS_Store

13
Gemfile
View File

@ -1,9 +1,4 @@
gem 'rainbow' source :rubygems
gem 'echoe'
gem 'rspec' gemspec
gem 'autotest'
gem 'mocha'
gem 'reek'
gem 'sdoc'
gem 'sdoc-helpers', :require => 'sdoc_helpers'
gem 'rdiscount'

View File

@ -1,19 +1,19 @@
GEM PATH
remote: .
specs: specs:
autotest (4.4.1) apache-config-generator (0.2.5.2)
rainbow
GEM
remote: http://rubygems.org/
specs:
autotest (4.4.2)
diff-lcs (1.1.2) diff-lcs (1.1.2)
echoe (4.3.1) mocha (0.9.9)
gemcutter
rubyforge
gemcutter (0.6.1)
json (1.4.6)
json_pure (1.4.3)
mocha (0.9.8)
rake rake
nokogiri (1.4.3.1)
rainbow (1.1) rainbow (1.1)
rake (0.8.7) rake (0.8.7)
rdiscount (1.6.5)
rdoc (2.4.3)
reek (1.2.8) reek (1.2.8)
ruby2ruby (~> 1.2) ruby2ruby (~> 1.2)
ruby_parser (~> 2.0) ruby_parser (~> 2.0)
@ -33,25 +33,17 @@ GEM
sexp_processor (~> 3.0) sexp_processor (~> 3.0)
ruby_parser (2.0.4) ruby_parser (2.0.4)
sexp_processor (~> 3.0) sexp_processor (~> 3.0)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
sdoc (0.2.20)
json (>= 1.1.3)
rdoc (= 2.4.3)
sdoc-helpers (0.1.4)
sdoc (~> 0.2)
sexp_processor (3.0.4) sexp_processor (3.0.4)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
apache-config-generator!
autotest autotest
echoe bundler (>= 1.0.0)
mocha mocha
nokogiri
rainbow rainbow
rdiscount
reek reek
rspec rspec (~> 2.0.0)
sdoc
sdoc-helpers

View File

@ -9,7 +9,6 @@ require 'yaml'
require 'apache' require 'apache'
require 'rspec/core/rake_task' require 'rspec/core/rake_task'
require 'sdoc_helpers/markdown'
namespace :apache do namespace :apache do
desc "Generate the configs" desc "Generate the configs"
@ -20,14 +19,6 @@ namespace :apache do
end end
end end
Echoe.new('apache-config-generator') do |p|
p.author = "John Bintz"
p.summary = "A Ruby DSL for programmatically generating Apache configs"
p.ignore_pattern = [ 'spec/**/*', 'test/**/*', 'docs/**/*' ]
p.executable_pattern = [ 'bin/**/*' ]
p.runtime_dependencies = [ 'rainbow' ]
end
namespace :spec do namespace :spec do
desc "Run RCov tests" desc "Run RCov tests"
RSpec::Core::RakeTask.new(:rcov) do |t| RSpec::Core::RakeTask.new(:rcov) do |t|
@ -38,13 +29,6 @@ namespace :spec do
end end
end end
Rake::RDocTask.new do |rdoc|
rdoc.template = 'direct'
rdoc.rdoc_files.add('lib', 'README.rdoc')
rdoc.main = 'README.rdoc'
rdoc.rdoc_dir = 'docs'
end
task :reek do task :reek do
system('reek -c config/config.reek lib/*') system('reek -c config/config.reek lib/*')
end end

View File

@ -1,8 +1,4 @@
require 'rubygems' require 'rubygems'
require 'bundler'
Bundler.require(:default)
require 'fileutils' require 'fileutils'
require 'rainbow' require 'rainbow'

View File

@ -1,3 +1,6 @@
require 'rubygems'
require 'bundler/setup'
Bundler.require(:default) Bundler.require(:default)
require 'fileutils' require 'fileutils'

3
lib/apache/version.rb Normal file
View File

@ -0,0 +1,3 @@
module Apache
VERSION = '0.2.5.2'
end