hato 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 51d1a23f2c7c13c67eb66e3de4f90028df29da6b
4
+ data.tar.gz: 3e98e5f54c6afb3d289efe803cf4fb368e81f818
5
+ SHA512:
6
+ metadata.gz: 53d3879360b6c5ed8be4105e678985612ee905bae151a2417a7ade8b5174c7ee2e82f519b90445edfab582bf6635f03a38bca87832273fc2208a41e44b0a07dd
7
+ data.tar.gz: b4d4793abd6db91892b1241d628968a1b95adc3433ed7d69a293b21161d4cbe3673d476bbebb4ba4e2375f2efa2ddbe777ffc648dc24d7def897b6a8a936d518
data/.gitignore ADDED
@@ -0,0 +1,18 @@
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
18
+ vendor/
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - ruby-head
7
+ - rbx-19mode
8
+ - jruby-19mode
9
+ - jruby-head
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Kentaro Kuribayashi
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # Hato [![BuildStatus](https://secure.travis-ci.org/kentaro/hato.png)](http://travis-ci.org/kentaro/hato)
2
+
3
+ Hato is a tool to manage notification methods. Once you configure notification methods, you can send notifications via the methods just by posting message to this tool.
4
+
5
+ ## Usage
6
+
7
+ Launch Hato with `hato` command:
8
+
9
+ ```
10
+ $ hato -c config.rb
11
+ ```
12
+
13
+ Then, post your notification message:
14
+
15
+ ```
16
+ $ curl -d 'message=test' -d 'tag=test' -d 'api_key=test' http://localhost:9699/notify
17
+ ```
18
+
19
+ ## Configuration
20
+
21
+ Hato provides DSLs for configuration.
22
+
23
+ e.g. config.rb:
24
+
25
+ ```
26
+ Hato::Config.define do
27
+ config.api_key = 'test'
28
+ config.host = '0.0.0.0'
29
+ config.port = 9699
30
+
31
+ tag 'test' do
32
+ plugin 'Ikachan' do
33
+ config.scheme = 'http'
34
+ config.host = 'irc.example.com'
35
+ config.port = 4979
36
+ config.channel = 'hato'
37
+ end
38
+
39
+ plugin 'Mail' do
40
+ config.smtp = {
41
+ address: 'smtp.example.com',
42
+ port: 587,
43
+ domain: 'example',
44
+ user_name: 'hato',
45
+ password: 'password',
46
+ enable_ssl: true,
47
+ }
48
+
49
+ subject_template = <<EOS
50
+ [<%= args[:tag] %>] Notification
51
+ EOS
52
+ body_template = <<EOS
53
+ You've got a message:
54
+
55
+ <%= args[:message] %>
56
+ EOS
57
+
58
+ config.message = {
59
+ from: 'hato@example.com',
60
+ to: [
61
+ 'foo@example.com',
62
+ 'bar@example.com',
63
+ ],
64
+ subject_template: subject_template,
65
+ body_template: body_template,
66
+ }
67
+ end
68
+ end
69
+ end
70
+ ```
71
+
72
+ ## Plugin Architecture
73
+
74
+ Hato bundles several plugins by default:
75
+
76
+ * [Hato::Plugin::Ikachan](lib/hato/plugin/ikachan.rb)
77
+ * [Hato::Plugin::Mail](lib/hato/plugin/mail.rb)
78
+
79
+ You can easily extend Hato by creating your own plugins. See the source for detail. It's really easy.
80
+
81
+ ## Using Hato with Thrid-party Plugins
82
+
83
+ At first, create a `Gemfile` to manage dependencies:
84
+
85
+ ```
86
+ source 'https://rubygems.org'
87
+
88
+ gem 'hato'
89
+ gem 'hato/plugin/awesome_plugin'
90
+ ```
91
+
92
+ Then, execute `bundle exec hato -c your_config_file`
93
+
94
+ ## Installation
95
+
96
+ Add this line to your application's Gemfile:
97
+
98
+ gem 'hato'
99
+
100
+ And then execute:
101
+
102
+ $ bundle
103
+
104
+ Or install it yourself as:
105
+
106
+ $ gem install hato
107
+
108
+ ## Contributing
109
+
110
+ 1. Fork it
111
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
112
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
113
+ 4. Push to the branch (`git push origin my-new-feature`)
114
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ require 'rspec/core'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ spec.pattern = FileList['spec/**/*_spec.rb']
8
+ spec.ruby_opts = %w[-w]
9
+ end
10
+
11
+ task :default => :spec
data/bin/hato ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'optparse'
4
+ require 'hato'
5
+
6
+ opts = {}
7
+
8
+ parser = OptionParser.new
9
+ parser.on('-c=VAL', '--config=VAL') { |v| opts[:config_file] = v }
10
+ parser.parse!(ARGV)
11
+
12
+ Hato.run(opts)
data/hato.gemspec ADDED
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'hato/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "hato"
8
+ spec.version = Hato::VERSION
9
+ spec.authors = ["Kentaro Kuribayashi"]
10
+ spec.email = ["kentarok@gmail.com"]
11
+ spec.description = %q{A Notification Management Tools}
12
+ spec.summary = %q{A Notification Management Tools}
13
+ spec.homepage = "https://github.com/kentaro/hato"
14
+ spec.license = "MIT"
15
+
16
+ spec.required_ruby_version = '>= 1.9.2'
17
+
18
+ spec.executables = ["hato"]
19
+ spec.files = `git ls-files`.split($/)
20
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency "sinatra"
25
+ spec.add_dependency "sinatra-logger"
26
+ spec.add_dependency "mail"
27
+ spec.add_dependency "hashie"
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.3"
30
+ spec.add_development_dependency "rake"
31
+ spec.add_development_dependency "rspec"
32
+ spec.add_development_dependency "pry"
33
+ end
@@ -0,0 +1,75 @@
1
+ require 'yaml'
2
+ require 'hashie'
3
+
4
+ module Hato
5
+ module Config
6
+ module DSL
7
+ attr_accessor :name
8
+
9
+ def initialize(name, &block)
10
+ @name = name
11
+ instance_eval(&block)
12
+ end
13
+
14
+ def method_missing(method, *args)
15
+ config.send(method)
16
+ end
17
+
18
+ private
19
+
20
+ def config
21
+ @config ||= Hashie::Mash.new
22
+ end
23
+ end
24
+
25
+ extend DSL
26
+
27
+ def self.load(config_file)
28
+ Kernel.load(config_file)
29
+ @loaded = true
30
+ self
31
+ end
32
+
33
+ def self.loaded?
34
+ @loaded
35
+ end
36
+
37
+ def self.define(&block)
38
+ instance_eval(&block)
39
+ end
40
+
41
+ def self.tags
42
+ @tags ||= []
43
+ end
44
+
45
+ def self.tag(name, &block)
46
+ self.tags << Tag.new(name, &block)
47
+ end
48
+
49
+ def self.match(tag)
50
+ tags.select { |t| t.name == tag }
51
+ end
52
+
53
+ def self.reset
54
+ @loaded = false
55
+ @config = nil
56
+ @tags = nil
57
+ end
58
+
59
+ class Tag
60
+ include DSL
61
+
62
+ def plugins
63
+ @plugins ||= []
64
+ end
65
+
66
+ def plugin(name, &block)
67
+ self.plugins << Plugin.new(name, &block)
68
+ end
69
+ end
70
+
71
+ class Plugin
72
+ include DSL
73
+ end
74
+ end
75
+ end
data/lib/hato/httpd.rb ADDED
@@ -0,0 +1,49 @@
1
+ require 'json'
2
+ require 'sinatra'
3
+ require 'sinatra/logger'
4
+
5
+ module Hato
6
+ class Httpd
7
+ def initialize(observer, config)
8
+ @observer = observer
9
+ @config = config
10
+ end
11
+
12
+ def run
13
+ App.set(:observer, @observer)
14
+ App.set(:api_key, @config.api_key)
15
+
16
+ Rack::Handler::WEBrick.run(
17
+ App.new,
18
+ Host: @config.host || '0.0.0.0',
19
+ Port: @config.port || 9699,
20
+ )
21
+ end
22
+
23
+ class App < Sinatra::Base
24
+ enable :logging
25
+
26
+ before do
27
+ if settings.api_key != params[:api_key]
28
+ halt 403, JSON.dump(
29
+ status: :error,
30
+ message: 'API key is wrong. Confirm your API key setting of server/client.',
31
+ )
32
+ end
33
+ end
34
+
35
+ post "/notify" do
36
+ settings.observer.update(
37
+ tag: params[:tag],
38
+ message: params[:message],
39
+ logger: logger,
40
+ )
41
+
42
+ JSON.dump(
43
+ status: :success,
44
+ message: 'Successfully sent the message you notified to me.',
45
+ )
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,51 @@
1
+ require 'hato/plugin'
2
+
3
+ module Hato
4
+ class Observer
5
+ def initialize(config)
6
+ @config = config
7
+ end
8
+
9
+ def update(args)
10
+ logger = args.delete(:logger)
11
+ plugins = load_plugins_for(args[:tag])
12
+
13
+ plugins.each do |plugin|
14
+ Thread.start(plugin) do |plugin|
15
+ begin
16
+ plugin.notify(args)
17
+ rescue => e
18
+ logger.error("#{e.message} from #{plugin.class}")
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ protected
25
+
26
+ def load_plugins_for(tag)
27
+ plugins = []
28
+
29
+ @config.match(tag).each do |matched|
30
+ matched.plugins.each do |plugin|
31
+ plugin_file_name = file_name_for(plugin.name)
32
+ require plugin_file_name
33
+
34
+ plugin_class = plugin_class_for(plugin.name)
35
+ plugins << plugin_class.new(plugin)
36
+ end
37
+ end
38
+
39
+ plugins
40
+ end
41
+
42
+ def plugin_class_for(name)
43
+ Hato::Plugin.const_get(name.to_s)
44
+ end
45
+
46
+ def file_name_for(name)
47
+ file_name = name.to_s.gsub(/[A-Z][a-z0-9_]+?/) { |s| "_#{s.downcase}" }
48
+ 'hato/plugin/' + file_name.sub(/^_/, '')
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,33 @@
1
+ require 'uri'
2
+ require 'net/http'
3
+
4
+ module Hato
5
+ module Plugin
6
+ class Ikachan < Base
7
+ def notify(args)
8
+ send_request(:join)
9
+ send_request(:notice, args[:message])
10
+ end
11
+
12
+ protected
13
+
14
+ def send_request(action, message='')
15
+ url = '%s://%s:%s/%s' % [
16
+ config.scheme || 'http',
17
+ config.host,
18
+ config.port || 4979,
19
+ action.to_s,
20
+ ]
21
+
22
+ http = Net::HTTP.new(URI(url).host, URI(url).port)
23
+ req = Net::HTTP::Post.new(URI(url).path)
24
+
25
+ req.form_data = {
26
+ 'channel' => "##{config.channel}",
27
+ 'message' => message,
28
+ }
29
+ http.request(req)
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,48 @@
1
+ require 'erb'
2
+ require 'mail'
3
+
4
+ module Hato
5
+ module Plugin
6
+ class Mail < Base
7
+ def notify(args)
8
+ if smtp_opts = config.smtp
9
+ ::Mail.defaults do
10
+ delivery_method :smtp, (
11
+ smtp_opts.to_hash.keys.inject({}) { |opts, key|
12
+ opts[key.to_sym] = smtp_opts.send(key.to_sym)
13
+ opts
14
+ }
15
+ )
16
+ end
17
+ end
18
+
19
+ to_addresses = config.message['to']
20
+ if to_addresses.is_a?(String)
21
+ to_addresses = [to_addresses]
22
+ end
23
+
24
+ mail = {
25
+ from: config.message['from'],
26
+ subject: render(config.message['subject_template'], args),
27
+ body: render(config.message['body_template'], args),
28
+ }
29
+
30
+ to_addresses.each do |to_address|
31
+ ::Mail.deliver do
32
+ from mail[:from]
33
+ to to_address
34
+ subject mail[:subject]
35
+ body mail[:body]
36
+ end
37
+ end
38
+ end
39
+
40
+ protected
41
+
42
+ def render(template, args)
43
+ erb = ERB.new(template)
44
+ erb.result(binding).chomp
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,11 @@
1
+ module Hato
2
+ module Plugin
3
+ class Base
4
+ attr_reader :config
5
+
6
+ def initialize(config)
7
+ @config = config
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module Hato
2
+ VERSION = "0.0.1"
3
+ end
data/lib/hato.rb ADDED
@@ -0,0 +1,14 @@
1
+ require 'hato/version'
2
+ require 'hato/config'
3
+ require 'hato/observer'
4
+ require 'hato/httpd'
5
+
6
+ module Hato
7
+ def self.run(opts = {})
8
+ config = Config.load(opts[:config_file])
9
+ observer = Observer.new(config)
10
+ server = Httpd.new(observer, config)
11
+
12
+ server.run
13
+ end
14
+ end
@@ -0,0 +1,44 @@
1
+ Hato::Config.define do
2
+ config.api_key = 'test'
3
+ config.host = '0.0.0.0'
4
+ config.port = 9699
5
+
6
+ tag 'test' do
7
+ plugin 'Ikachan' do
8
+ config.scheme = 'http'
9
+ config.host = 'irc.example.com'
10
+ config.port = 4979
11
+ config.channel = 'hato'
12
+ end
13
+
14
+ plugin 'Mail' do
15
+ config.smtp = {
16
+ address: 'smtp.example.com',
17
+ port: 587,
18
+ domain: 'example',
19
+ user_name: 'hato',
20
+ password: 'password',
21
+ enable_ssl: true,
22
+ }
23
+
24
+ subject_template = <<EOS
25
+ [<%= args[:tag] %>] Notification
26
+ EOS
27
+ body_template = <<EOS
28
+ You've got a message:
29
+
30
+ <%= args[:message] %>
31
+ EOS
32
+
33
+ config.message = {
34
+ from: 'hato@example.com',
35
+ to: [
36
+ 'foo@example.com',
37
+ 'bar@example.com',
38
+ ],
39
+ subject_template: subject_template,
40
+ body_template: body_template,
41
+ }
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,56 @@
1
+ require_relative '../../spec_helper'
2
+
3
+ describe Hato::Config do
4
+ before { described_class.reset }
5
+
6
+ describe '.load' do
7
+ context 'success' do
8
+ context 'when a config file is passed in' do
9
+ before {
10
+ described_class.load(
11
+ File.expand_path('../../../assets/config/test.rb', __FILE__)
12
+ )
13
+ }
14
+
15
+ it { expect(described_class.loaded?).to be_true }
16
+ end
17
+ end
18
+
19
+ context 'failure' do
20
+ context 'when a config file does not exist' do
21
+ it {
22
+ expect {
23
+ described_class.load('no such file')
24
+ }.to raise_error LoadError
25
+ }
26
+ end
27
+ end
28
+ end
29
+
30
+ describe '.define' do
31
+ context 'success' do
32
+ context 'when a config file is passed in' do
33
+ before {
34
+ described_class.load(
35
+ File.expand_path('../../../assets/config/test.rb', __FILE__)
36
+ )
37
+ }
38
+
39
+ it {
40
+ expect(described_class.api_key).to be == 'test'
41
+
42
+ expect(described_class.tags).to be_an_instance_of Array
43
+ expect(described_class.tags.size).to be == 1
44
+
45
+ tag = described_class.tags.first
46
+ expect(tag.plugins).to be_an_instance_of Array
47
+ expect(tag.plugins.size).to be == 2
48
+
49
+ plugin = tag.plugins.first
50
+ expect(plugin.name).to be == 'Ikachan'
51
+ expect(plugin.host).to be == 'irc.example.com'
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,4 @@
1
+ require_relative '../lib/hato'
2
+
3
+ RSpec.configure do |config|
4
+ end
metadata ADDED
@@ -0,0 +1,179 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hato
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kentaro Kuribayashi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sinatra
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sinatra-logger
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mail
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: hashie
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: A Notification Management Tools
126
+ email:
127
+ - kentarok@gmail.com
128
+ executables:
129
+ - hato
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - .gitignore
134
+ - .travis.yml
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - bin/hato
140
+ - hato.gemspec
141
+ - lib/hato.rb
142
+ - lib/hato/config.rb
143
+ - lib/hato/httpd.rb
144
+ - lib/hato/observer.rb
145
+ - lib/hato/plugin.rb
146
+ - lib/hato/plugin/ikachan.rb
147
+ - lib/hato/plugin/mail.rb
148
+ - lib/hato/version.rb
149
+ - spec/assets/config/test.rb
150
+ - spec/lib/pigeon/config_spec.rb
151
+ - spec/spec_helper.rb
152
+ homepage: https://github.com/kentaro/hato
153
+ licenses:
154
+ - MIT
155
+ metadata: {}
156
+ post_install_message:
157
+ rdoc_options: []
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - '>='
163
+ - !ruby/object:Gem::Version
164
+ version: 1.9.2
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - '>='
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ requirements: []
171
+ rubyforge_project:
172
+ rubygems_version: 2.0.2
173
+ signing_key:
174
+ specification_version: 4
175
+ summary: A Notification Management Tools
176
+ test_files:
177
+ - spec/assets/config/test.rb
178
+ - spec/lib/pigeon/config_spec.rb
179
+ - spec/spec_helper.rb