commit
bc98a4a177
3 changed files with 43 additions and 37 deletions
|
@ -2,8 +2,8 @@ Lita::Adapters::Tox
|
|||
===================
|
||||
|
||||
[![Gem Version](https://badge.fury.io/rb/lita-tox.svg)](http://badge.fury.io/rb/lita-tox)
|
||||
[![Build Status](https://travis-ci.org/braiden-vasco/lita-tox.svg)](https://travis-ci.org/braiden-vasco/lita-tox)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/braiden-vasco/lita-tox/badge.svg)](https://coveralls.io/github/braiden-vasco/lita-tox)
|
||||
[![Build Status](https://travis-ci.org/toxon/lita-tox.svg)](https://travis-ci.org/toxon/lita-tox)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/toxon/lita-tox/badge.svg)](https://coveralls.io/github/toxon/lita-tox)
|
||||
|
||||
[Tox](https://tox.chat) adapter for the [Lita](http://lita.io) chat bot.
|
||||
|
||||
|
|
31
Rakefile
31
Rakefile
|
@ -1,28 +1,31 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
gemspec = Gem::Specification.load('lita-tox.gemspec')
|
||||
|
||||
github_user, github_project =
|
||||
gemspec.homepage.scan(%r{^https://github\.com/([^/]+)/([^/]+)/?$})[0]
|
||||
|
||||
require 'bundler/gem_tasks'
|
||||
|
||||
task default: %i[spec lint]
|
||||
GEMSPEC = Gem::Specification.load 'lita-tox.gemspec'
|
||||
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new
|
||||
github_user, github_project =
|
||||
GEMSPEC.homepage.scan(%r{^https://github\.com/([^/]+)/([^/]+)/?$})[0]
|
||||
|
||||
task default: %i[spec lint]
|
||||
|
||||
task lint: :rubocop
|
||||
|
||||
task fix: 'rubocop:auto_correct'
|
||||
|
||||
require 'rubocop/rake_task'
|
||||
RuboCop::RakeTask.new
|
||||
begin
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new
|
||||
rescue LoadError
|
||||
nil
|
||||
end
|
||||
|
||||
require 'yard'
|
||||
YARD::Rake::YardocTask.new
|
||||
begin
|
||||
require 'rubocop/rake_task'
|
||||
RuboCop::RakeTask.new
|
||||
rescue LoadError
|
||||
nil
|
||||
end
|
||||
|
||||
desc 'Generate changelog'
|
||||
task :changelog, [:token] do |_t, args|
|
||||
|
|
|
@ -1,38 +1,41 @@
|
|||
# coding: utf-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'lita-tox'
|
||||
spec.version = '0.3.0'
|
||||
spec.authors = ['Braiden Vasco']
|
||||
spec.email = ['braiden-vasco@mailtor.net']
|
||||
lib = File.expand_path('lib', __dir__).freeze
|
||||
$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
|
||||
|
||||
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 = 'GPL-3.0'
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'lita-tox'
|
||||
spec.version = '0.3.0'
|
||||
spec.license = 'GPL-3.0'
|
||||
spec.homepage = 'https://github.com/toxon/lita-tox'
|
||||
spec.summary = 'Tox adapter for the Lita chat bot'
|
||||
spec.platform = Gem::Platform::RUBY
|
||||
|
||||
spec.authors = ['Braiden Vasco']
|
||||
spec.email = %w[braiden-vasco@users.noreply.github.com]
|
||||
|
||||
spec.required_ruby_version = '~> 2.3'
|
||||
|
||||
spec.description = 'Tox adapter for the Lita chat bot.'
|
||||
|
||||
spec.metadata['lita_plugin_type'] = 'adapter'
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
||||
f.match(%r{^(test|spec|features)/})
|
||||
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.bindir = 'exe'
|
||||
spec.executables = spec.files.grep %r{^exe/}, &File.method(:basename)
|
||||
|
||||
spec.add_development_dependency 'bundler', '~> 1.7'
|
||||
spec.add_development_dependency 'rake', '~> 10.0'
|
||||
spec.add_development_dependency 'rubocop', '~> 0.31'
|
||||
spec.add_development_dependency 'rspec', '~> 3.3'
|
||||
spec.add_development_dependency 'simplecov', '~> 0.10'
|
||||
spec.add_development_dependency 'yard', '~> 0.8'
|
||||
spec.add_development_dependency 'redcarpet', '~> 3.3'
|
||||
spec.add_development_dependency 'bundler', '~> 1.7'
|
||||
spec.add_development_dependency 'rake', '~> 10.0'
|
||||
spec.add_development_dependency 'rubocop', '~> 0.49.1'
|
||||
spec.add_development_dependency 'rspec', '~> 3.3'
|
||||
spec.add_development_dependency 'simplecov', '~> 0.10'
|
||||
spec.add_development_dependency 'redcarpet', '~> 3.3'
|
||||
spec.add_development_dependency 'github_changelog_generator', '~> 1.6'
|
||||
spec.add_development_dependency 'pry', '~> 0.10'
|
||||
spec.add_development_dependency 'pry', '~> 0.10'
|
||||
|
||||
spec.add_runtime_dependency 'lita', '~> 4.7'
|
||||
spec.add_runtime_dependency 'tox', '~> 0.0.1'
|
||||
|
|
Reference in a new issue