eye-slack 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +10 -0
- data/README.md +5 -6
- data/eye-slack.gemspec +3 -3
- data/lib/eye/notify/{slack.rb → eye_slack.rb} +2 -2
- data/lib/eye/notify/{slack → eye_slack}/version.rb +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 293d32eb1c2311848dec71f16400016df1520b6c
|
4
|
+
data.tar.gz: 24a1cd6e88de6642be2c8d67cab0c4eea141cbe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1900da3c2cd38182087ffaa1a0e8b1c0d6a366abe1d4f1c6feeae6eac988cc8e0c702f8f66fc1f6bae0e351719f63f16dae461ed9d0323b88352117af373b04
|
7
|
+
data.tar.gz: da0364819933deb3961624f47c0968c28cef2977661256fcd529436c2b09bb28308cfbf4d8d5a7964c36c628997d2e8c0ecac2e723e4621925414f510db30f3a
|
data/Changelog.md
ADDED
data/README.md
CHANGED
@@ -2,14 +2,13 @@
|
|
2
2
|
|
3
3
|
Sends info about process crashes to Slack channel.
|
4
4
|
|
5
|
-
**NOTE
|
5
|
+
**NOTE** see Changelog.md for changes
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'eye'
|
13
12
|
gem 'eye-slack'
|
14
13
|
```
|
15
14
|
|
@@ -27,11 +26,11 @@ this is an example configuration file
|
|
27
26
|
|
28
27
|
````
|
29
28
|
# Notify example
|
30
|
-
require 'eye/notify/
|
29
|
+
require 'eye/notify/eye_slack'
|
31
30
|
|
32
31
|
Eye.config do
|
33
|
-
|
34
|
-
contact :dev, :
|
32
|
+
eye_slack webhook_url: 'url', username: 'eye', color: 'danger'
|
33
|
+
contact :dev, :eye_slack, '#test'
|
35
34
|
logger '/tmp/eye.log'
|
36
35
|
end
|
37
36
|
|
@@ -53,7 +52,7 @@ end
|
|
53
52
|
|
54
53
|
# Configuration
|
55
54
|
|
56
|
-
* add `
|
55
|
+
* add `eye_slack` line to `Eye.config` section and check following parameters
|
57
56
|
* `webhook_url` - *required* - webhook URL
|
58
57
|
* `username` - who is reporting to slack, *Eye Bot* as a default
|
59
58
|
* `color` - *#f0f0f0* is default. You can choose from RGB or `good`, `warning` and `danger`
|
data/eye-slack.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'eye/notify/
|
4
|
+
require 'eye/notify/eye_slack/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "eye-slack"
|
8
|
-
spec.version = Eye::Notify::
|
8
|
+
spec.version = Eye::Notify::EyeSlack::VERSION
|
9
9
|
spec.authors = ["Tom Meinlschmidt"]
|
10
10
|
spec.email = ["tomas@meinlschmidt.org"]
|
11
11
|
spec.summary = %q{Eye to Slack notification}
|
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
|
24
24
|
spec.add_runtime_dependency "slack-notifier", "~> 1.2.1"
|
25
|
-
spec.add_runtime_dependency "eye", "
|
25
|
+
spec.add_runtime_dependency "eye", ">= 0.6"
|
26
26
|
|
27
27
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'eye'
|
2
|
-
require 'eye/notify/
|
2
|
+
require 'eye/notify/eye_slack/version'
|
3
3
|
|
4
4
|
require 'slack-notifier'
|
5
5
|
|
6
6
|
module Eye
|
7
7
|
class Notify
|
8
8
|
|
9
|
-
class
|
9
|
+
class EyeSlack < Eye::Notify::Custom
|
10
10
|
|
11
11
|
# Eye.config do
|
12
12
|
# slack webhook_url: '1312312', icon: '', username: 'eye bot', color: '#f0f0f0', channel
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eye-slack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Meinlschmidt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: eye
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.6'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.6'
|
69
69
|
description: Eye to Slack notification
|
70
70
|
email:
|
71
71
|
- tomas@meinlschmidt.org
|
@@ -74,12 +74,13 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- Changelog.md
|
77
78
|
- Gemfile
|
78
79
|
- README.md
|
79
80
|
- Rakefile
|
80
81
|
- eye-slack.gemspec
|
81
|
-
- lib/eye/notify/
|
82
|
-
- lib/eye/notify/
|
82
|
+
- lib/eye/notify/eye_slack.rb
|
83
|
+
- lib/eye/notify/eye_slack/version.rb
|
83
84
|
homepage: https://github.com/tmeinlschmidt/eye-slack
|
84
85
|
licenses:
|
85
86
|
- MIT
|