sm 1.0.0 → 2.0.0
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 +3 -3
- data/exe/{post-slack-msg → slack-msg} +0 -0
- data/lib/sm/version.rb +1 -1
- data/sm.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7108bf3cdedbd11843c59c53cf01ccf66c6dfe87
|
|
4
|
+
data.tar.gz: 1b185a48877af594bc951b2069de81079a89f82b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51afcd8a2a1d3329edf92df2c0835611fc841a3d6a616a27bdc5d7cb255b9c4b9ec889a69303cb2c6aa16decb89b9fc7c6f9730bf86bb0e5d916bf4acd698bdf
|
|
7
|
+
data.tar.gz: c060799c750434d161bdea2dd3f5f7260be1f52a52c5b0689031738dc902b1e56c8cfece28973aea58fca06e820b4168ca9ef49bcafa13765d58bb247952cd92
|
data/README.md
CHANGED
|
@@ -27,16 +27,16 @@ Set the following environment variables:
|
|
|
27
27
|
`SLACK_MSG_ICON_EMOJI'` (optional) - The avatar emoji to use for the message. Defaults to ':ghost:'
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
|
|
30
|
+
slack-msg 'CHANNEL' 'YOUR MESSAGE'
|
|
31
31
|
|
|
32
32
|
Example:
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
slack-msg '#doughnuts' "I've got a dozen!"
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
Piping output from other programs as the slack message text:
|
|
38
38
|
|
|
39
|
-
{ echo My current processes:; ps; } |
|
|
39
|
+
{ echo My current processes:; ps; } | slack-msg '#system-msgs'
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Development
|
|
File without changes
|
data/lib/sm/version.rb
CHANGED
data/sm.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["sufyanadam@gmail.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Post slack messages from the comfort of you command line.}
|
|
13
|
-
spec.description = %q{A command line utility to post a message to any channel/user in slack. Provide a message as an argument or pipe input to the
|
|
13
|
+
spec.description = %q{A command line utility to post a message to any channel/user in slack. Provide a message as an argument or pipe input to the slack-msg command.}
|
|
14
14
|
spec.homepage = "https://github.com/sufyanadam/sm"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sufyan Adam
|
|
@@ -81,11 +81,11 @@ dependencies:
|
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '2.0'
|
|
83
83
|
description: A command line utility to post a message to any channel/user in slack.
|
|
84
|
-
Provide a message as an argument or pipe input to the
|
|
84
|
+
Provide a message as an argument or pipe input to the slack-msg command.
|
|
85
85
|
email:
|
|
86
86
|
- sufyanadam@gmail.com
|
|
87
87
|
executables:
|
|
88
|
-
-
|
|
88
|
+
- slack-msg
|
|
89
89
|
extensions: []
|
|
90
90
|
extra_rdoc_files: []
|
|
91
91
|
files:
|
|
@@ -100,7 +100,7 @@ files:
|
|
|
100
100
|
- Rakefile
|
|
101
101
|
- bin/console
|
|
102
102
|
- bin/setup
|
|
103
|
-
- exe/
|
|
103
|
+
- exe/slack-msg
|
|
104
104
|
- lib/sm.rb
|
|
105
105
|
- lib/sm/exceptions.rb
|
|
106
106
|
- lib/sm/post_slack_message.rb
|