Merge pull request #2 from braiden-vasco/configure_linting
Configure linting
This commit is contained in:
commit
a6bbcc251d
5 changed files with 30 additions and 19 deletions
9
Rakefile
9
Rakefile
|
@ -1 +1,8 @@
|
|||
require "bundler/gem_tasks"
|
||||
require 'bundler/gem_tasks'
|
||||
|
||||
task default: [:lint]
|
||||
|
||||
task lint: [:rubocop]
|
||||
|
||||
require 'rubocop/rake_task'
|
||||
RuboCop::RakeTask.new
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require "bundler/setup"
|
||||
require "lita/tox"
|
||||
require 'bundler/setup'
|
||||
require 'lita/tox'
|
||||
|
||||
# You can add fixtures and/or initialization code here to make experimenting
|
||||
# with your gem easier. You can also use a different console, if you like.
|
||||
|
@ -10,5 +10,5 @@ require "lita/tox"
|
|||
# require "pry"
|
||||
# Pry.start
|
||||
|
||||
require "irb"
|
||||
require 'irb'
|
||||
IRB.start
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require "lita/tox/version"
|
||||
require 'lita/tox/version'
|
||||
|
||||
module Lita
|
||||
module Tox
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Lita
|
||||
module Tox
|
||||
VERSION = "0.0.0"
|
||||
module Tox # rubocop:disable Style/Documentation
|
||||
VERSION = '0.0.0'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,21 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|||
require 'lita/tox/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "lita-tox"
|
||||
spec.name = 'lita-tox'
|
||||
spec.version = Lita::Tox::VERSION
|
||||
spec.authors = ["Braiden Vasco"]
|
||||
spec.email = ["braiden-vasco@mailtor.net"]
|
||||
spec.authors = ['Braiden Vasco']
|
||||
spec.email = ['braiden-vasco@mailtor.net']
|
||||
|
||||
spec.summary = %q{Tox adapter for the Lita chat bot}
|
||||
spec.description = %q{Tox adapter for the Lita chat bot.}
|
||||
spec.homepage = "https://github.com/braiden-vasco/lita-tox"
|
||||
spec.license = "MIT"
|
||||
spec.summary = 'Tox adapter for the Lita chat bot'
|
||||
spec.description = 'Tox adapter for the Lita chat bot.'
|
||||
spec.homepage = 'https://github.com/braiden-vasco/lita-tox'
|
||||
spec.license = 'MIT'
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
||||
spec.bindir = "exe"
|
||||
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
||||
f.match(%r{^(test|spec|features)/})
|
||||
end
|
||||
|
||||
spec.bindir = 'exe'
|
||||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
||||
spec.require_paths = ["lib"]
|
||||
spec.require_paths = ['lib']
|
||||
|
||||
spec.add_development_dependency "bundler", "~> 1.10"
|
||||
spec.add_development_dependency "rake", "~> 10.0"
|
||||
spec.add_development_dependency 'bundler', '~> 1.10'
|
||||
spec.add_development_dependency 'rake', '~> 10.0'
|
||||
spec.add_development_dependency 'rubocop', '~> 0.31'
|
||||
end
|
||||
|
|
Reference in a new issue