slackit 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -0
- data/README.md +6 -0
- data/exe/slackit +1 -0
- data/lib/slackit/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f21bec2025a3d5498cf492e0aedcbbdbe275585d51b305322dd6be4bc9134def
|
4
|
+
data.tar.gz: aa8cb401eca59415f953af3aba0814ba515177f72a625b2b835391e163dba45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d05d5270616df81f8dbfeed4b5aab24efeff62659d12b5738dab57527ea1acf334c138b913c98ad67e6b9c1339d3507f048e57a8a5c541bd0759f174ef137c47
|
7
|
+
data.tar.gz: fc9f62cb5c83c82ed2545517d6d9f04c5b8feb07708633186e6871252d8aade0eba562376d765a0d3927167644611d7275e2996f385aa05826b7f9ec0cf709bc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 1.1.2 (January 31, 2019)
|
2
|
+
|
3
|
+
IMPROVEMENTS:
|
4
|
+
|
5
|
+
* Add the ability to pipe directly into the app instead of using -m. ([@eimlav][])
|
6
|
+
|
1
7
|
## 1.1.1 (January 22, 2019)
|
2
8
|
|
3
9
|
BUG FIX:
|
@@ -24,3 +30,4 @@ BUG FIX:
|
|
24
30
|
* Initial Release ([@TGWolf][])
|
25
31
|
|
26
32
|
[@TGWolf]: https://github.com/TGWolf
|
33
|
+
[@eimlav]: https://github.com/eimlav
|
data/README.md
CHANGED
@@ -67,6 +67,12 @@ Usage: slackit
|
|
67
67
|
-u, --username string The username to send as [default: slackit]
|
68
68
|
```
|
69
69
|
|
70
|
+
### Pipe message
|
71
|
+
|
72
|
+
Alternatively to using the `-m` parameter, you can pipe your message instead:
|
73
|
+
|
74
|
+
$ echo 'Hello world!' | slackit -w ...
|
75
|
+
|
70
76
|
## Development
|
71
77
|
|
72
78
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/exe/slackit
CHANGED
@@ -63,6 +63,7 @@ def process_arguments
|
|
63
63
|
|
64
64
|
begin
|
65
65
|
optparse.parse!
|
66
|
+
options[:message] = gets.downcase if !STDIN.tty? # override message parameter if data is piped in
|
66
67
|
missing = mandatory.select { |param| options[param].nil? }
|
67
68
|
raise OptionParser::MissingArgument.new(missing.join(', ')) unless missing.empty?
|
68
69
|
rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e
|
data/lib/slackit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slackit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Gurney aka Wolf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -126,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.6.14
|
129
|
+
rubygems_version: 3.0.2
|
131
130
|
signing_key:
|
132
131
|
specification_version: 4
|
133
132
|
summary: A simple gem for posting to a slack incoming webhook.
|