Skip to content

Commit

Permalink
Use Rubocop in development
Browse files Browse the repository at this point in the history
  • Loading branch information
alsemyonov committed Jul 5, 2016
1 parent 7acb708 commit 2a1d9cf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Rakefile
@@ -1,9 +1,16 @@
# frozen_string_literal: true
require 'bundler/gem_tasks'

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec

require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-rspec'
end
task default: :rubocop

require 'yard'
YARD::Rake::YardocTask.new(:doc)
task default: :doc
17 changes: 17 additions & 0 deletions bin/rubocop
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rubocop' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rubocop", "rubocop")
4 changes: 3 additions & 1 deletion xommelier.gemspec
Expand Up @@ -26,10 +26,12 @@ Gem::Specification.new do |s|

s.add_development_dependency 'rspec', '~> 2.99.0'
s.add_development_dependency 'rspec-its', '~> 1.0.1'
s.add_development_dependency 'rake', '~> 10.4.2'
s.add_development_dependency 'rake', '~> 11.2.2'
s.add_development_dependency 'yard', '~> 0.8.7.6'
s.add_development_dependency 'simplecov', '~> 0.6.1'
s.add_development_dependency 'redcarpet', '>= 3.2.3'
s.add_development_dependency 'rubocop', '>= 0.41.1'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'pry'
s.add_development_dependency 'pry-byebug'
s.add_development_dependency 'byebug'
Expand Down

0 comments on commit 2a1d9cf

Please sign in to comment.