Skip to content

Commit

Permalink
use Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
yannlugrin committed Oct 18, 2010
1 parent 48d531d commit ccf5763
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -17,6 +17,8 @@ tmtags
coverage
rdoc
pkg
.bundle
.rvmrc

## PROJECT::SPECIFIC
.yardoc
Expand Down
10 changes: 10 additions & 0 deletions Gemfile
@@ -0,0 +1,10 @@
# A sample Gemfile
source "http://rubygems.org"

gem 'nanoc', '>= 3.1.2'
gem 'i18n', '>= 0'

gem 'yard', '>= 0'

gem 'minitest'
gem 'mocha'
24 changes: 24 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,24 @@
GEM
remote: http://rubygems.org/
specs:
cri (1.0.1)
i18n (0.4.1)
minitest (1.7.2)
mocha (0.9.8)
rake
nanoc (3.1.5)
nanoc3 (>= 3.1.5)
nanoc3 (3.1.5)
cri (>= 1.0.0)
rake (0.8.7)
yard (0.6.1)

PLATFORMS
ruby

DEPENDENCIES
i18n
minitest
mocha
nanoc (>= 3.1.2)
yard
57 changes: 14 additions & 43 deletions Rakefile
@@ -1,50 +1,21 @@
require 'rubygems'
require 'rake'
require File.dirname(__FILE__) + '/lib/nanoc3/data_sources/filesystem_i18n/version'
require 'bundler'
Bundler::GemHelper.install_tasks

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'nanoc-filesystem-i18n'
gem.version = Nanoc3::DataSources::FilesystemI18n::Version
gem.summary = %Q{I18n filesystem based data source for nanoc}
gem.description = %Q{I18n filesystem based data source for nanoc. Compatible with nanoc 3 and default filesystem based data source.}
gem.email = 'yann.lugrin@sans-savoir.net'
gem.homepage = 'http://github.com/yannlugrin/nanoc-filesystem-i18n'
gem.authors = ['Yann Lugrin']
gem.add_dependency 'nanoc', '>= 3.1.2'
gem.add_dependency 'i18n', '>= 0'
gem.add_development_dependency 'minitest', '>= 0'
gem.add_development_dependency 'yard', '>= 0'
gem.files.exclude '.gitignore', '.document', 'nanoc-filesystem-i18n.gemspec'
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'nanoc3'

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
require 'minitest/unit'

begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
desc 'Run all tests'
task :test do
ENV['QUIET'] ||= 'true'

task :test => :check_dependencies
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/test'))

MiniTest::Unit.autorun

test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb']
test_files.each { |f| require f }
end

task :default => :test

Expand Down

0 comments on commit ccf5763

Please sign in to comment.