Rakefile w/ test+gem tasks

This commit is contained in:
Loic Nageleisen 2017-02-27 22:14:49 +01:00
parent 8ae604557b
commit 8f93475914
5 changed files with 19 additions and 5 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/pkg/

View file

@ -2,6 +2,7 @@ source 'https://rubygems.org'
gemspec gemspec
gem 'rubocop'
gem 'minitest' gem 'minitest'
gem 'pry' gem 'pry'
gem 'rake'
gem 'rubocop'

View file

@ -18,6 +18,7 @@ GEM
method_source (~> 0.8.1) method_source (~> 0.8.1)
slop (~> 3.4) slop (~> 3.4)
rainbow (2.2.1) rainbow (2.2.1)
rake (12.0.0)
rubocop (0.47.1) rubocop (0.47.1)
parser (>= 2.3.3.1, < 3.0) parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1) powerpack (~> 0.1)
@ -34,6 +35,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
minitest minitest
pry pry
rake
rebel! rebel!
rubocop rubocop

10
Rakefile Normal file
View file

@ -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

View file

@ -2,10 +2,10 @@ Gem::Specification.new do |s|
s.name = 'rebel' s.name = 'rebel'
s.version = '0.1.0' s.version = '0.1.0'
s.licenses = ['MIT'] s.licenses = ['MIT']
s.summary = "Fight against the Object tyranny" s.summary = 'Fight against the Object tyranny'
s.description = "Write SQL queries in Ruby, or is it the other way around?" s.description = 'Write SQL queries in Ruby, or is it the other way around?'
s.authors = ["Loic Nageleisen"] s.authors = ['Loic Nageleisen']
s.email = 'loic.nageleisen@gmail.com' s.email = 'loic.nageleisen@gmail.com'
s.files = ["lib/**/*.rb"] s.files = Dir['lib/**/*.rb']
s.homepage = 'https://github.com/lloeki/rebel.git' s.homepage = 'https://github.com/lloeki/rebel.git'
end end