Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 9d2727a

Browse files
committed
Initial commit
0 parents  commit 9d2727a

File tree

12 files changed

+124
-0
lines changed

12 files changed

+124
-0
lines changed

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: ruby
2+
rvm:
3+
- 2.0.0
4+
script: bundle exec rake
5+
before_install:
6+
- gem update --system
7+
services:
8+
- redis-server

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gemspec

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# lita-janky
2+
3+
[![Build Status](https://travis-ci.org/josacar/lita-janky.png?branch=master)](https://travis-ci.org/josacar/lita-janky)
4+
[![Coverage Status](https://coveralls.io/repos/josacar/lita-janky/badge.png)](https://coveralls.io/r/josacar/lita-janky)
5+
6+
TODO: Add a description of the plugin.
7+
8+
## Installation
9+
10+
Add lita-janky to your Lita instance's Gemfile:
11+
12+
``` ruby
13+
gem "lita-janky"
14+
```
15+
16+
## Configuration
17+
18+
TODO: Describe any configuration attributes the plugin exposes.
19+
20+
## Usage
21+
22+
TODO: Describe the plugin's features and how to use them.

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require "bundler/gem_tasks"
2+
require "rspec/core/rake_task"
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
6+
task default: :spec

lib/lita-janky.rb

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require "lita"
2+
3+
Lita.load_locales Dir[File.expand_path(
4+
File.join("..", "..", "locales", "*.yml"), __FILE__
5+
)]
6+
7+
require "lita/handlers/janky"
8+
9+
Lita::Handlers::Janky.template_root File.expand_path(
10+
File.join("..", "..", "templates"),
11+
__FILE__
12+
)

lib/lita/handlers/janky.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module Lita
2+
module Handlers
3+
class Janky < Handler
4+
end
5+
6+
Lita.register_handler(Janky)
7+
end
8+
end

lita-janky.gemspec

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Gem::Specification.new do |spec|
2+
spec.name = "lita-janky"
3+
spec.version = "0.0.1"
4+
spec.authors = ["Jose Luis Salas"]
5+
spec.email = ["[email protected]"]
6+
spec.description = "Lita handler for GitHub's Janky"
7+
spec.summary = "Lita handler for GitHub's Janky"
8+
spec.homepage = "https://github.com/josacar/lita-janky"
9+
spec.license = "MIT"
10+
spec.metadata = { "lita_plugin_type" => "handler" }
11+
12+
spec.files = `git ls-files`.split($/)
13+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
14+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15+
spec.require_paths = ["lib"]
16+
17+
spec.add_runtime_dependency "lita", ">= 4.3"
18+
19+
spec.add_development_dependency "bundler", "~> 1.3"
20+
spec.add_development_dependency "pry-byebug"
21+
spec.add_development_dependency "rake"
22+
spec.add_development_dependency "rack-test"
23+
spec.add_development_dependency "rspec", ">= 3.0.0"
24+
spec.add_development_dependency "simplecov"
25+
spec.add_development_dependency "coveralls"
26+
end

locales/en.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
en:
2+
lita:
3+
handlers:
4+
janky:

spec/lita/handlers/janky_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require "spec_helper"
2+
3+
describe Lita::Handlers::Janky, lita_handler: true do
4+
end

spec/spec_helper.rb

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require "simplecov"
2+
require "coveralls"
3+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
4+
SimpleCov::Formatter::HTMLFormatter,
5+
Coveralls::SimpleCov::Formatter
6+
]
7+
SimpleCov.start { add_filter "/spec/" }
8+
9+
require "lita-janky"
10+
require "lita/rspec"
11+
12+
# A compatibility mode is provided for older plugins upgrading from Lita 3. Since this plugin
13+
# was generated with Lita 4, the compatibility mode should be left disabled.
14+
Lita.version_3_compatibility_mode = false

templates/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)