diff --git a/.gitignore b/.gitignore index 28f4849..469d01b 100644 --- a/.gitignore +++ b/.gitignore @@ -27,9 +27,9 @@ build/ # for a library or gem, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset +/Gemfile.lock +/.ruby-version +/.ruby-gemset # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..82c9b37 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in lita-gitter.gemspec +gemspec diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..2995527 --- /dev/null +++ b/Rakefile @@ -0,0 +1 @@ +require "bundler/gem_tasks" diff --git a/bin/console b/bin/console new file mode 100755 index 0000000..cf14194 --- /dev/null +++ b/bin/console @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby + +require "bundler/setup" +require "lita/gitter" + +# 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. + +# (If you use this, don't forget to add pry to your Gemfile!) +# require "pry" +# Pry.start + +require "irb" +IRB.start diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..b65ed50 --- /dev/null +++ b/bin/setup @@ -0,0 +1,7 @@ +#!/bin/bash +set -euo pipefail +IFS=$'\n\t' + +bundle install + +# Do any other automated setup that you need to do here diff --git a/lib/lita/gitter.rb b/lib/lita/gitter.rb new file mode 100644 index 0000000..1948e88 --- /dev/null +++ b/lib/lita/gitter.rb @@ -0,0 +1,7 @@ +require "lita/gitter/version" + +module Lita + module Gitter + # Your code goes here... + end +end diff --git a/lib/lita/gitter/version.rb b/lib/lita/gitter/version.rb new file mode 100644 index 0000000..a768a86 --- /dev/null +++ b/lib/lita/gitter/version.rb @@ -0,0 +1,5 @@ +module Lita + module Gitter + VERSION = "0.0.0" + end +end diff --git a/lita-gitter.gemspec b/lita-gitter.gemspec new file mode 100644 index 0000000..b1db332 --- /dev/null +++ b/lita-gitter.gemspec @@ -0,0 +1,24 @@ +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'lita/gitter/version' + +Gem::Specification.new do |spec| + spec.name = "lita-gitter" + spec.version = Lita::Gitter::VERSION + spec.authors = ["Braiden Vasco"] + spec.email = ["braiden-vasco@mailtor.net"] + + spec.summary = %q{Gitter adapter for the Lita chat bot} + spec.description = %q{Gitter adapter for the Lita chat bot.} + spec.homepage = "https://github.com/braiden-vasco/lita-gitter" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler", "~> 1.9" + spec.add_development_dependency "rake", "~> 10.0" +end