Merge branch 'initialize_lita_adapter'
This commit is contained in:
commit
f6ef29ae3d
10 changed files with 45 additions and 17 deletions
|
@ -5,4 +5,4 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
|||
Coveralls::SimpleCov::Formatter,
|
||||
]
|
||||
|
||||
SimpleCov.start
|
||||
SimpleCov.start { add_filter '/spec/' }
|
||||
|
|
|
@ -4,3 +4,11 @@ rvm:
|
|||
- 2.0
|
||||
- 2.1
|
||||
- 2.2
|
||||
|
||||
script: bundle exec rake
|
||||
|
||||
before_install:
|
||||
- gem update --system
|
||||
|
||||
services:
|
||||
- redis-server
|
||||
|
|
9
lib/lita-tox.rb
Normal file
9
lib/lita-tox.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# rubocop:disable Style/FileName
|
||||
|
||||
require 'lita'
|
||||
|
||||
Lita.load_locales Dir[File.expand_path(
|
||||
File.join('..', '..', 'locales', '*.yml'), __FILE__
|
||||
)]
|
||||
|
||||
require 'lita/adapters/tox'
|
8
lib/lita/adapters/tox.rb
Normal file
8
lib/lita/adapters/tox.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
module Lita
|
||||
module Adapters
|
||||
class Tox < Adapter
|
||||
end
|
||||
|
||||
Lita.register_adapter(:tox, Tox)
|
||||
end
|
||||
end
|
|
@ -1,7 +0,0 @@
|
|||
require 'lita/tox/version'
|
||||
|
||||
module Lita
|
||||
module Tox
|
||||
# Your code goes here...
|
||||
end
|
||||
end
|
|
@ -1,5 +0,0 @@
|
|||
module Lita
|
||||
module Tox # rubocop:disable Style/Documentation
|
||||
VERSION = '0.0.0'
|
||||
end
|
||||
end
|
|
@ -1,11 +1,8 @@
|
|||
# coding: utf-8
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'lita/tox/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'lita-tox'
|
||||
spec.version = Lita::Tox::VERSION
|
||||
spec.version = '0.0.0'
|
||||
spec.authors = ['Braiden Vasco']
|
||||
spec.email = ['braiden-vasco@mailtor.net']
|
||||
|
||||
|
@ -14,6 +11,8 @@ Gem::Specification.new do |spec|
|
|||
spec.homepage = 'https://github.com/braiden-vasco/lita-tox'
|
||||
spec.license = 'MIT'
|
||||
|
||||
spec.metadata['lita_plugin_type'] = 'adapter'
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
||||
f.match(%r{^(test|spec|features)/})
|
||||
end
|
||||
|
@ -30,4 +29,6 @@ Gem::Specification.new do |spec|
|
|||
spec.add_development_dependency 'yard', '~> 0.8'
|
||||
spec.add_development_dependency 'redcarpet', '~> 3.3'
|
||||
spec.add_development_dependency 'github_changelog_generator', '~> 1.6'
|
||||
|
||||
spec.add_runtime_dependency 'lita', '~> 4.4'
|
||||
end
|
||||
|
|
4
locales/en.yml
Normal file
4
locales/en.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
lita:
|
||||
adapters:
|
||||
tox:
|
2
spec/lita/adapters/tox_spec.rb
Normal file
2
spec/lita/adapters/tox_spec.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
describe Lita::Adapters::Tox, lita: true do
|
||||
end
|
|
@ -3,6 +3,14 @@ require 'simplecov'
|
|||
|
||||
# rubocop:disable Style/BlockComments
|
||||
|
||||
require 'lita-tox'
|
||||
require 'lita/rspec'
|
||||
|
||||
# A compatibility mode is provided for older plugins upgrading from Lita 3.
|
||||
# Since this plugin was generated with Lita 4, the compatibility mode
|
||||
# should be left disabled.
|
||||
Lita.version_3_compatibility_mode = false
|
||||
|
||||
# This file was generated by the `rspec --init` command. Conventionally, all
|
||||
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
||||
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
||||
|
|
Reference in a new issue