Archived
1
0
Fork 0

Initialize Lita adapter

$ lita adapter tox
from parent directory
This commit is contained in:
Braiden Vasco 2015-07-25 12:09:57 +05:00
parent dd5a7648d1
commit 921c7dc3d0
10 changed files with 102 additions and 0 deletions

8
.travis.yml Normal file
View file

@ -0,0 +1,8 @@
language: ruby
rvm:
- 2.0.0
script: bundle exec rake
before_install:
- gem update --system
services:
- redis-server

3
Gemfile Normal file
View file

@ -0,0 +1,3 @@
source "https://rubygems.org"
gemspec

22
README.md Normal file
View file

@ -0,0 +1,22 @@
# lita-tox
[![Build Status](https://travis-ci.org/braiden-vasco/lita-tox.png?branch=master)](https://travis-ci.org/braiden-vasco/lita-tox)
[![Coverage Status](https://coveralls.io/repos/braiden-vasco/lita-tox/badge.png)](https://coveralls.io/r/braiden-vasco/lita-tox)
TODO: Add a description of the plugin.
## Installation
Add lita-tox to your Lita instance's Gemfile:
``` ruby
gem "lita-tox"
```
## Configuration
TODO: Describe any configuration attributes the plugin exposes.
## Usage
TODO: Describe the plugin's features and how to use them.

6
Rakefile Normal file
View file

@ -0,0 +1,6 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task default: :spec

7
lib/lita-tox.rb Normal file
View file

@ -0,0 +1,7 @@
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
View file

@ -0,0 +1,8 @@
module Lita
module Adapters
class Tox < Adapter
end
Lita.register_adapter(:tox, Tox)
end
end

26
lita-tox.gemspec Normal file
View file

@ -0,0 +1,26 @@
Gem::Specification.new do |spec|
spec.name = "lita-tox"
spec.version = "0.1.0"
spec.authors = ["Braiden Vasco"]
spec.email = ["braiden-vasco@mailtor.net"]
spec.description = "TODO: Add a description"
spec.summary = "TODO: Add a summary"
spec.homepage = "TODO: Add a homepage"
spec.license = "TODO: Add a license"
spec.metadata = { "lita_plugin_type" => "adapter" }
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_runtime_dependency "lita", ">= 4.4"
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "pry-byebug"
spec.add_development_dependency "rake"
spec.add_development_dependency "rack-test"
spec.add_development_dependency "rspec", ">= 3.0.0"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "coveralls"
end

4
locales/en.yml Normal file
View file

@ -0,0 +1,4 @@
en:
lita:
adapters:
tox:

View file

@ -0,0 +1,4 @@
require "spec_helper"
describe Lita::Adapters::Tox, lita: true do
end

14
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,14 @@
require "simplecov"
require "coveralls"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start { add_filter "/spec/" }
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