slackit 1.1.1 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 35c68c3f1fd21cda0058928f11ac7570372d2e88
4
- data.tar.gz: bf90c9e0604df891ebbf75be06a84b02e294b3b6
2
+ SHA256:
3
+ metadata.gz: f21bec2025a3d5498cf492e0aedcbbdbe275585d51b305322dd6be4bc9134def
4
+ data.tar.gz: aa8cb401eca59415f953af3aba0814ba515177f72a625b2b835391e163dba45f
5
5
  SHA512:
6
- metadata.gz: 6f1ced25facfa2bb0158cc8f3a3d9a8580669e93382ad8d0953ec69f932fae1dd5665e132d839adaffeb1865f5768db90c4fbe9aaf19bd3ee6915ed57b95dd64
7
- data.tar.gz: dc6e89f81c3087b67fc88557e31d3508d7bf538bbfe1689b147cf271d4a0452479c0cccfd63a35ba9df0244e2313ebac2fd1cf2e75df997d95406d96c9eac612
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
@@ -1,3 +1,3 @@
1
1
  class Slackit
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
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.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-22 00:00:00.000000000 Z
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
- rubyforge_project:
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.