slack-reporter 0.1.0 → 0.1.2
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 +4 -4
- data/README.md +5 -6
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a07a6f85f00e750f916bd6a2636be62a8370089f
|
4
|
+
data.tar.gz: c8b04a3177d1c9bae497b8216b4812d9413036d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf05eec40b423824043c2b145749bf00a3d66a3e0f89e17ba617c5c3710933e091a3d038051d78d735fa8fbb58daa6a75c4059655a9c8e05a391fadae3ef5416
|
7
|
+
data.tar.gz: 11b21a7e6e4b249b18168e18bf4859279e9ad9ee62cb519a9d9a8eb73078b2beb6c928c531df5caa0bb3c849af3d72f23ff2c4cb58b30a3877b0d4e94cc26c05
|
data/README.md
CHANGED
@@ -4,10 +4,8 @@ A very simple wrapper for a a simple wrapper for posting to slack channels.
|
|
4
4
|
requires [slack-notifier](https://github.com/stevenosloan/slack-notifier)
|
5
5
|
|
6
6
|
### Requirements
|
7
|
-
A slack channel with webhooks intergration and your api key in the `SLACK_WEBHOOK_URI` environmental variable
|
8
|
-
|
9
|
-
Finnally this is your gemfile.
|
10
|
-
`gem 'slack_reporter'`
|
7
|
+
A slack channel with webhooks intergration and your api key in the `SLACK_WEBHOOK_URI` environmental variable and this
|
8
|
+
`gem 'slack-reporter'` in your gemfile.
|
11
9
|
|
12
10
|
### Usage
|
13
11
|
|
@@ -52,6 +50,7 @@ To report regardless of environment call `#call` with `true` in arguments e.g.
|
|
52
50
|
|
53
51
|
|
54
52
|
You can create as many custom reporters as you want and the use them by calling `#call` and giving them a block of text. e.g.
|
53
|
+
|
55
54
|
```
|
56
55
|
@reporter1 = SlackReporter.new("Nelson said")
|
57
56
|
@reporter1.call { 'Hahaa' }
|
@@ -59,8 +58,8 @@ You can create as many custom reporters as you want and the use them by calling
|
|
59
58
|
|
60
59
|
|
61
60
|
The naming of a reporter matches the name if its 2 words or more, else its the `name` + `followup`
|
62
|
-
Also you can put
|
61
|
+
Also you can put an object or class instead of a name and slack-reporter will combine the object class, or class with the followup to create the name.
|
63
62
|
|
64
63
|
There is an `attr_accessor` for name and channel in case you want to change them for an existing reporter.
|
65
64
|
|
66
|
-
The code is
|
65
|
+
The code is just 50 lines long so for any questions you might want to check it out!
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasilis Spilka
|
@@ -34,7 +34,7 @@ files:
|
|
34
34
|
- README.md
|
35
35
|
- lib/slack-reporter.rb
|
36
36
|
- lib/version.rb
|
37
|
-
homepage:
|
37
|
+
homepage: https://github.com/vasspilka/slack-reporter
|
38
38
|
licenses:
|
39
39
|
- MIT
|
40
40
|
metadata: {}
|