Archived
1
0
Fork 0

Merge pull request #2 from braiden-vasco/configure_linting

Configure linting
This commit is contained in:
Braiden Vasco 2015-07-25 07:29:31 +00:00
commit a6bbcc251d
5 changed files with 30 additions and 19 deletions

View file

@ -1 +1,8 @@
require "bundler/gem_tasks" require 'bundler/gem_tasks'
task default: [:lint]
task lint: [:rubocop]
require 'rubocop/rake_task'
RuboCop::RakeTask.new

View file

@ -1,7 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require "bundler/setup" require 'bundler/setup'
require "lita/tox" require 'lita/tox'
# You can add fixtures and/or initialization code here to make experimenting # 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. # with your gem easier. You can also use a different console, if you like.
@ -10,5 +10,5 @@ require "lita/tox"
# require "pry" # require "pry"
# Pry.start # Pry.start
require "irb" require 'irb'
IRB.start IRB.start

View file

@ -1,4 +1,4 @@
require "lita/tox/version" require 'lita/tox/version'
module Lita module Lita
module Tox module Tox

View file

@ -1,5 +1,5 @@
module Lita module Lita
module Tox module Tox # rubocop:disable Style/Documentation
VERSION = "0.0.0" VERSION = '0.0.0'
end end
end end

View file

@ -4,21 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'lita/tox/version' require 'lita/tox/version'
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "lita-tox" spec.name = 'lita-tox'
spec.version = Lita::Tox::VERSION spec.version = Lita::Tox::VERSION
spec.authors = ["Braiden Vasco"] spec.authors = ['Braiden Vasco']
spec.email = ["braiden-vasco@mailtor.net"] spec.email = ['braiden-vasco@mailtor.net']
spec.summary = %q{Tox adapter for the Lita chat bot} spec.summary = 'Tox adapter for the Lita chat bot'
spec.description = %q{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.homepage = 'https://github.com/braiden-vasco/lita-tox'
spec.license = "MIT" spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.files = `git ls-files -z`.split("\x0").reject do |f|
spec.bindir = "exe" f.match(%r{^(test|spec|features)/})
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } 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 'bundler', '~> 1.10'
spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rubocop', '~> 0.31'
end end