From 934e72b00fe4d78ee844ed1267814f222d49c73e Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 27 Feb 2017 22:14:49 +0100 Subject: [PATCH] Rakefile w/ test+gem tasks --- .gitignore | 1 + Gemfile | 3 ++- Gemfile.lock | 2 ++ Rakefile | 10 ++++++++++ rebel.gemspec | 8 ++++---- 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 Rakefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cace5e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pkg/ diff --git a/Gemfile b/Gemfile index 4c64125..8ecc621 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source 'https://rubygems.org' gemspec -gem 'rubocop' gem 'minitest' gem 'pry' +gem 'rake' +gem 'rubocop' diff --git a/Gemfile.lock b/Gemfile.lock index 4a23efa..3b3452f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,6 +18,7 @@ GEM method_source (~> 0.8.1) slop (~> 3.4) rainbow (2.2.1) + rake (12.0.0) rubocop (0.47.1) parser (>= 2.3.3.1, < 3.0) powerpack (~> 0.1) @@ -34,6 +35,7 @@ PLATFORMS DEPENDENCIES minitest pry + rake rebel! rubocop diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..06329ca --- /dev/null +++ b/Rakefile @@ -0,0 +1,10 @@ +require 'rake/testtask' +require 'bundler' + +Bundler::GemHelper.install_tasks + +Rake::TestTask.new do |t| + t.libs << 'test' + t.test_files = FileList['test/test_*.rb'] + t.verbose = true +end diff --git a/rebel.gemspec b/rebel.gemspec index 61fa0e2..2bd28e0 100644 --- a/rebel.gemspec +++ b/rebel.gemspec @@ -2,10 +2,10 @@ Gem::Specification.new do |s| s.name = 'rebel' s.version = '0.1.0' s.licenses = ['MIT'] - s.summary = "Fight against the Object tyranny" - s.description = "Write SQL queries in Ruby, or is it the other way around?" - s.authors = ["Loic Nageleisen"] + s.summary = 'Fight against the Object tyranny' + s.description = 'Write SQL queries in Ruby, or is it the other way around?' + s.authors = ['Loic Nageleisen'] s.email = 'loic.nageleisen@gmail.com' - s.files = ["lib/**/*.rb"] + s.files = Dir['lib/**/*.rb'] s.homepage = 'https://github.com/lloeki/rebel.git' end