slackit 1.1.4 → 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f310568cd8654b02077da2443094b672ed66f0bb447372d51c263049b884ad2
4
- data.tar.gz: c63a4f25fe778c1048a3ecde6b1763cfc2af971d715da541298ecdaf8a5f9f6f
3
+ metadata.gz: 19c0142dd96bef5b8b87d09a03e5af539bb14a7bb68f17bab9fbebae61c85879
4
+ data.tar.gz: af810fb2581d78251284ececd1d924fde680e5b4b8b2db5d5566f5088bed9391
5
5
  SHA512:
6
- metadata.gz: e611ef21c695f9be1b947072046cfea2dd57e3414138a5bef0e37e7c6b173fd9d00e9f243590b06fa111a104f05c6fd3f6af28f61532b38dddb2bb8c9e354b31
7
- data.tar.gz: 33171e9dda83239b74109f305b9599b1d9f5ac9303c7d4e034274d7cae2f2b7d453a9dd9bbf985bae2a34feb59b6b00151fd9919e75e883fb6414e209d9d109e
6
+ metadata.gz: db62100414a06794a0560cd9c0702fa9f678eb76efaa28d5aed92c7da350fd8524973d5692aedd0e7c966bf78b6c28e6d975f021a1903b695796b77ce105237e
7
+ data.tar.gz: e471c2e16512f33b7bde41ca5ac5580df4b88551a9694899c961ca2a0df6fd7dd32b9ea0ed0e6894fce72e4665763cea577470844d15e6d96c2a61598cb30624
@@ -0,0 +1,8 @@
1
+ ---
2
+ author: TGWolf
3
+ enable-categories: false
4
+ min-words: 1
5
+ output-file: CHANGELOG.md
6
+ remove-categories: false
7
+ silent: false
8
+ verify-urls: false
@@ -1,30 +1,80 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+
4
+ Layout/CaseIndentation:
5
+ Enabled: false
6
+
7
+ Layout/ClosingHeredocIndentation:
8
+ Enabled: false
9
+
10
+ Layout/FirstHashElementIndentation:
11
+ Enabled: false
12
+
13
+ Layout/HashAlignment:
14
+ Enabled: false
15
+
16
+ Layout/HeredocIndentation:
17
+ Enabled: false
18
+
1
19
  Layout/IndentationWidth:
2
- Width: 4
20
+ Width: 4
3
21
 
4
- Metrics/AbcSize:
5
- Max: 50
22
+ Layout/LineLength:
23
+ Enabled: false
6
24
 
7
- Metrics/LineLength:
8
- Max: 180
25
+ Layout/SpaceInsideArrayLiteralBrackets:
26
+ Enabled: false
27
+
28
+ Metrics/AbcSize:
29
+ Enabled: false
9
30
 
10
31
  Metrics/BlockLength:
11
- Max: 40
32
+ Enabled: false
33
+
34
+ Metrics/BlockNesting:
35
+ Enabled: false
36
+
37
+ Metrics/ClassLength:
38
+ Enabled: false
12
39
 
13
40
  Metrics/CyclomaticComplexity:
14
- Max: 20
41
+ Enabled: false
15
42
 
16
43
  Metrics/MethodLength:
17
- Max: 60
44
+ Enabled: false
18
45
 
19
46
  Metrics/PerceivedComplexity:
20
- Max: 20
47
+ Enabled: false
48
+
49
+ Naming/FileName:
50
+ Enabled: false
51
+
52
+ Style/FrozenStringLiteralComment:
53
+ Enabled: false
54
+
55
+ Style/HashSyntax:
56
+ Enabled: false
21
57
 
22
- Style/GlobalVars:
23
- Enabled: false
58
+ Style/PercentLiteralDelimiters:
59
+ Enabled: false
24
60
 
25
61
  Style/RaiseArgs:
26
- EnforcedStyle: compact
62
+ EnforcedStyle: compact
63
+
64
+ Style/RedundantBegin:
65
+ Enabled: false
66
+
67
+ Style/RedundantConditional:
68
+ Enabled: false
69
+
70
+ Style/RedundantReturn:
71
+ Enabled: false
72
+
73
+ Style/SpecialGlobalVars:
74
+ Enabled: false
27
75
 
28
76
  Style/WordArray:
29
- EnforcedStyle: brackets
77
+ EnforcedStyle: brackets
30
78
 
79
+ Style/RedundantPercentQ:
80
+ Enabled: false
@@ -1,25 +1,24 @@
1
- sudo: required
2
1
  matrix:
3
2
  include:
4
3
  - language: ruby
5
- rvm: 2.4.4
4
+ name: "Bundler (rvm 2.5)"
5
+ rvm: 2.5
6
6
  before_install:
7
- - gem install bundler -v 1.17.3
7
+ - gem install bundler
8
8
  - language: ruby
9
- rvm: 2.4.4
9
+ name: "Bundler (rvm 2.6)"
10
+ rvm: 2.6
10
11
  before_install:
11
- - gem install bundler -v 2.0.1
12
+ - gem install bundler
12
13
  - language: ruby
13
- rvm: 2.5.3
14
+ name: "Bundler (rvm 2.7)"
15
+ rvm: 2.7
14
16
  before_install:
15
- - gem install bundler -v 2.0.1
16
- - language: ruby
17
- rvm: 2.6.1
18
- before_install:
19
- - gem install bundler -v 2.0.1
17
+ - gem install bundler
20
18
  - language: ruby
19
+ name: "Rubocop (rvm 2.5)"
21
20
  env: SKIP_INTERPRETER=true
22
- rvm: 2.4.4
21
+ rvm: 2.5
23
22
  before_install:
24
23
  - git clone https://github.com/TravisToolbox/rubocop-travis.git
25
24
  install:
@@ -27,8 +26,9 @@ matrix:
27
26
  script:
28
27
  - ./rubocop-travis/scan.sh
29
28
  - language: ruby
29
+ name: "Rubocop (rvm 2.6)"
30
30
  env: SKIP_INTERPRETER=true
31
- rvm: 2.5.3
31
+ rvm: 2.6
32
32
  before_install:
33
33
  - git clone https://github.com/TravisToolbox/rubocop-travis.git
34
34
  install:
@@ -36,8 +36,9 @@ matrix:
36
36
  script:
37
37
  - ./rubocop-travis/scan.sh
38
38
  - language: ruby
39
+ name: "Rubocop (rvm 2.7)"
39
40
  env: SKIP_INTERPRETER=true
40
- rvm: 2.6.1
41
+ rvm: 2.7
41
42
  before_install:
42
43
  - git clone https://github.com/TravisToolbox/rubocop-travis.git
43
44
  install:
@@ -45,7 +46,11 @@ matrix:
45
46
  script:
46
47
  - ./rubocop-travis/scan.sh
47
48
  - language: ruby
48
- rvm: 2.6.1
49
+ name: "Link Checker (rvm 2.7)"
50
+ rvm: 2.7
51
+ env:
52
+ - WHITELIST="https://img.shields.io"
53
+ - EXCLUDE_FILES="CHANGELOG.md"
49
54
  before_install:
50
55
  - mkdir travis
51
56
  - git clone https://github.com/TravisToolbox/awesomebot-travis.git travis/awesomebot
@@ -1,46 +1,157 @@
1
- ## 1.1.4 (March 13, 2019)
1
+ # Changelog
2
2
 
3
- IMPROVEMENTS:
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- * Updated the gemspec to handle multiple versions of bundler. ([@TGWolf][])
6
- * Updated the travis job file to use newer versions of ruby. ([@TGWolf][])
7
5
 
8
- ## 1.1.3 (February 6, 2019)
6
+ This changelog was automatically generated using [Caretaker](https://github.com/AntiPhotonltd/slackit) by [Wolf Software](https://github.com/WolfSoftware)
9
7
 
10
- IMPROVEMENTS:
8
+ ### [v1.1.10](https://github.com/AntiPhotonltd/slackit/compare/v1.1.9...v1.1.10)
11
9
 
12
- * Add support for sending a message using newline characters and updated the pipe functionality to also support passing in multiline files. ([@eimlav][])
10
+ > Released on July, 31st 2020
13
11
 
14
- ## 1.1.2 (January 31, 2019)
12
+ - Bump version ready for release [`[bf92ada]`](https://github.com/AntiPhotonltd/slackit/commit/bf92ada1d36007e652165546160dc91359a6e833) [`[TGWolf]`](https://github.com/TGWolf)
15
13
 
16
- IMPROVEMENTS:
14
+ - Update readme to new verrsion [`[a9263c0]`](https://github.com/AntiPhotonltd/slackit/commit/a9263c04d5405ee46116c0ee4a5a1dbd46e25102) [`[TGWolf]`](https://github.com/TGWolf)
17
15
 
18
- * Add the ability to pipe directly into the app instead of using -m. ([@eimlav][])
16
+ - Update the version of json due to github security alert [`[fa0e80a]`](https://github.com/AntiPhotonltd/slackit/commit/fa0e80a2a5cf21b2e25e534ab0dc67e3805abe0a) [`[TGWolf]`](https://github.com/TGWolf)
19
17
 
20
- ## 1.1.1 (January 22, 2019)
18
+ - Fix all of the rubocop errors [`[8897f54]`](https://github.com/AntiPhotonltd/slackit/commit/8897f54ec15160461898b206581522bf9d6c77aa) [`[TGWolf]`](https://github.com/TGWolf)
21
19
 
22
- BUG FIX:
20
+ - Add attachments and blocks [`[3a84400]`](https://github.com/AntiPhotonltd/slackit/commit/3a844009d445b3684032fb5546baa95ebf219fd9) [`[TGWolf]`](https://github.com/TGWolf)
23
21
 
24
- * Hash style did not work on early versions of Ruby (< 2.2). ([@TGWolf][])
22
+ ### [v1.1.9](https://github.com/AntiPhotonltd/slackit/compare/v1.1.8...v1.1.9)
25
23
 
26
- ## 1.1.0 (January 22, 2019)
24
+ > Released on March, 9th 2020
27
25
 
28
- IMPROVEMENTS:
26
+ - Fix some new rubocop warnings/errors [`[cc6365d]`](https://github.com/AntiPhotonltd/slackit/commit/cc6365dc5464f9791219499025a0cce110ab2114) [`[TGWolf]`](https://github.com/TGWolf)
29
27
 
30
- * Made the parameter list a map to make it easier to pass different combinations of options. ([@TGWolf][])
31
- * Added additional testing to ensure a new class instance is created. ([@TGWolf][])
32
- * Specifying no channel will now send the message to '#general'. ([@TGWolf][])
33
- * Added better error handling to the CLI tool. ([@TGWolf][])
28
+ - Fix a typo in link checking job [`[e8ba2a6]`](https://github.com/AntiPhotonltd/slackit/commit/e8ba2a61b6b44adabdbf03d2160a8693f5f41b0a) [`[TGWolf]`](https://github.com/TGWolf)
34
29
 
35
- ## 1.0.1 (January 22, 2019)
30
+ ### [v1.1.8](https://github.com/AntiPhotonltd/slackit/compare/v1.1.7...v1.1.8)
36
31
 
37
- BUG FIX:
32
+ > Released on March, 9th 2020
38
33
 
39
- * Missing run time dependency from spec file. ([@TGWolf][])
34
+ - spec.required_ruby_version [`[519c7cb]`](https://github.com/AntiPhotonltd/slackit/commit/519c7cb481c538a46782e16fd17a83fb41a6e467) [`[TGWolf]`](https://github.com/TGWolf)
40
35
 
41
- ## 1.0.0 (January 21, 2019)
36
+ - Fix gemfile ruby version [`[fb0d2dc]`](https://github.com/AntiPhotonltd/slackit/commit/fb0d2dc6618b9fcf04c8730b827ad7e0fbc0001c) [`[TGWolf]`](https://github.com/TGWolf)
42
37
 
43
- * Initial Release ([@TGWolf][])
38
+ ### [v1.1.7](https://github.com/AntiPhotonltd/slackit/compare/v1.1.6...v1.1.7)
39
+
40
+ > Released on March, 9th 2020
41
+
42
+ - Add a minimum ruby version to the Gemfile [`[f5c22ac]`](https://github.com/AntiPhotonltd/slackit/commit/f5c22ac495d51cadc496aea27009a83b224e0afb) [`[TGWolf]`](https://github.com/TGWolf)
43
+
44
+ - Fix security issues with Rake and remove support for Ruby 2.4 [`[d74c038]`](https://github.com/AntiPhotonltd/slackit/commit/d74c038476856ce3cd244067de74c4db251b115b) [`[TGWolf]`](https://github.com/TGWolf)
45
+
46
+ - Fix issue with version file [`[e31c0d4]`](https://github.com/AntiPhotonltd/slackit/commit/e31c0d4cf81339e239f20e3b4ecb33f7fb3b341d) [`[TGWolf]`](https://github.com/TGWolf)
47
+
48
+ - Fix a secirity issue in rake and update for new version of rubocop [`[af5596b]`](https://github.com/AntiPhotonltd/slackit/commit/af5596b9b33bc2942931045fdb41fa23d6ccac24) [`[TGWolf]`](https://github.com/TGWolf)
49
+
50
+ - Enable caretaker [`[e656e32]`](https://github.com/AntiPhotonltd/slackit/commit/e656e329e326c9e781fce3b4b5851e0b2c8c4298) [`[TGWolf]`](https://github.com/TGWolf)
51
+
52
+ - Fix for a security issue in rake [`[4228845]`](https://github.com/AntiPhotonltd/slackit/commit/4228845ae947f4d1dbdd265701107800a20095d1) [`[TGWolf]`](https://github.com/TGWolf)
53
+
54
+ - badges [`[773aa6f]`](https://github.com/AntiPhotonltd/slackit/commit/773aa6ffec0e15a95ed50971860f268ae67939bf) [`[TGWolf]`](https://github.com/TGWolf)
55
+
56
+ - badges [`[d2c017b]`](https://github.com/AntiPhotonltd/slackit/commit/d2c017b7b1548c2544b24a8fc5d4d12f6d54c915) [`[TGWolf]`](https://github.com/TGWolf)
57
+
58
+ ### [v1.1.6](https://github.com/AntiPhotonltd/slackit/compare/v1.1.5...v1.1.6)
59
+
60
+ > Released on September, 30th 2019
61
+
62
+ - Changelog 1.1.6 [`[f722018]`](https://github.com/AntiPhotonltd/slackit/commit/f7220188db3e51cb9f46e60c9b36754169c77506) [`[TGWolf]`](https://github.com/TGWolf)
63
+
64
+ - Typo :( [`[7a22454]`](https://github.com/AntiPhotonltd/slackit/commit/7a224545e9ef0a6c8d9deb6a1522ca3fcbaf44e2) [`[TGWolf]`](https://github.com/TGWolf)
65
+
66
+ - Remove the channel as a requirement as slack deals with defaults better than we do [`[d25d738]`](https://github.com/AntiPhotonltd/slackit/commit/d25d7389cd0f771dc8f12fc4d423547cc6a7430d) [`[TGWolf]`](https://github.com/TGWolf)
67
+
68
+ - typos [`[5cd43c8]`](https://github.com/AntiPhotonltd/slackit/commit/5cd43c86649e93fd8a97ec6a598a5295f4812267) [`[TGWolf]`](https://github.com/TGWolf)
69
+
70
+ ### [v1.1.5](https://github.com/AntiPhotonltd/slackit/compare/v1.1.4...v1.1.5)
71
+
72
+ > Released on June, 28th 2019
73
+
74
+ - changelog 1.1.5 [`[7b10700]`](https://github.com/AntiPhotonltd/slackit/commit/7b1070005110d2ca42c898548cfb5a0648865908) [`[TGWolf]`](https://github.com/TGWolf)
75
+
76
+ - Miss-fixed [`[6263ae3]`](https://github.com/AntiPhotonltd/slackit/commit/6263ae33e597821d79de4435b2bb5e9e125e3761) [`[TGWolf]`](https://github.com/TGWolf)
77
+
78
+ - Changed enforced by newer version of rubocop [`[5b9ed30]`](https://github.com/AntiPhotonltd/slackit/commit/5b9ed30dbbfdb27b09898dd5afcc5c384ea37da2) [`[TGWolf]`](https://github.com/TGWolf)
79
+
80
+ - sudo: required isnt [`[a502415]`](https://github.com/AntiPhotonltd/slackit/commit/a502415815d8f679127d987396c5d953931d38fb) [`[TGWolf]`](https://github.com/TGWolf)
81
+
82
+ - travis cleanup [`[6278daa]`](https://github.com/AntiPhotonltd/slackit/commit/6278daafa0b58d54aa22c0c1d62d3c72ccf25dd8) [`[TGWolf]`](https://github.com/TGWolf)
83
+
84
+ ### [v1.1.4](https://github.com/AntiPhotonltd/slackit/compare/v1.1.3...v1.1.4)
85
+
86
+ > Released on March, 13th 2019
87
+
88
+ - Changelog 1.1.4 [`[f8643af]`](https://github.com/AntiPhotonltd/slackit/commit/f8643af20a7ac2c2eb765bb904b866166fcaf5f2) [`[TGWolf]`](https://github.com/TGWolf)
89
+
90
+ - typos [`[1250bbb]`](https://github.com/AntiPhotonltd/slackit/commit/1250bbb9399a102a9ef9844620347b12d80304a9) [`[TGWolf]`](https://github.com/TGWolf)
91
+
92
+ ### [v1.1.3](https://github.com/AntiPhotonltd/slackit/compare/v1.1.2...v1.1.3)
93
+
94
+ > Released on February, 6th 2019
95
+
96
+ - Changelog 1.1.3 [`[573c873]`](https://github.com/AntiPhotonltd/slackit/commit/573c873d882c9c87f2fce42b3f0d09d1e0b8fb91) [`[TGWolf]`](https://github.com/TGWolf)
97
+
98
+ - Add multiline message support [`[#2]`](https://github.com/AntiPhotonltd/slackit/pull/2) [`[TGWolf]`](https://github.com/TGWolf) [`[TGWolf]`](https://github.com/TGWolf)
99
+
100
+ ### [v1.1.2](https://github.com/AntiPhotonltd/slackit/compare/v1.1.1...v1.1.2)
101
+
102
+ > Released on January, 31st 2019
103
+
104
+ - Changelog 1.1.2 [`[6c88839]`](https://github.com/AntiPhotonltd/slackit/commit/6c888394aecf633f4d6d6df7604ce7f240453c8d) [`[TGWolf]`](https://github.com/TGWolf)
105
+
106
+ - Add ability to pipe message [`[#1]`](https://github.com/AntiPhotonltd/slackit/pull/1) [`[TGWolf]`](https://github.com/TGWolf) [`[TGWolf]`](https://github.com/TGWolf)
107
+
108
+ ### [v1.1.1](https://github.com/AntiPhotonltd/slackit/compare/v1.1.0...v1.1.1)
109
+
110
+ > Released on January, 22nd 2019
111
+
112
+ - fix rubocop [`[ce3cf46]`](https://github.com/AntiPhotonltd/slackit/commit/ce3cf4696ff608003736f7c12a37261f88125363) [`[TGWolf]`](https://github.com/TGWolf)
113
+
114
+ - final update [`[74bc203]`](https://github.com/AntiPhotonltd/slackit/commit/74bc203a456209c46eea0081e5d5da79b8da56cf) [`[TGWolf]`](https://github.com/TGWolf)
115
+
116
+ - Bug fix for older versions of Ruby [`[cb15ee7]`](https://github.com/AntiPhotonltd/slackit/commit/cb15ee710eaa3661ef411edee1e11277df5e705a) [`[TGWolf]`](https://github.com/TGWolf)
117
+
118
+ - typo [`[7db1903]`](https://github.com/AntiPhotonltd/slackit/commit/7db1903b8bfed04f22dd61f43b17918fcb2de5c8) [`[TGWolf]`](https://github.com/TGWolf)
119
+
120
+ ### [v1.1.0](https://github.com/AntiPhotonltd/slackit/compare/v1.0.1...v1.1.0)
121
+
122
+ > Released on January, 22nd 2019
123
+
124
+ - Update changelog to reflect released date [`[80e18f1]`](https://github.com/AntiPhotonltd/slackit/commit/80e18f1d0fba1f3c3bf0abc464107972fe997cd7) [`[TGWolf]`](https://github.com/TGWolf)
125
+
126
+ - Updates [`[2fda41b]`](https://github.com/AntiPhotonltd/slackit/commit/2fda41b060ecd6dfa3d889166baffc4d48c0fb96) [`[TGWolf]`](https://github.com/TGWolf)
127
+
128
+ - Rubocop errors [`[af43d40]`](https://github.com/AntiPhotonltd/slackit/commit/af43d40f95530c6901318c984e585cae497ecddf) [`[TGWolf]`](https://github.com/TGWolf)
129
+
130
+ - Changelog 1.1.0 [`[29609f5]`](https://github.com/AntiPhotonltd/slackit/commit/29609f5b04330042095d80e0434aa578c72bfaee) [`[TGWolf]`](https://github.com/TGWolf)
131
+
132
+ - Added testing section to README [`[4f53027]`](https://github.com/AntiPhotonltd/slackit/commit/4f53027cb09017419509736420067804fd06eedb) [`[TGWolf]`](https://github.com/TGWolf)
133
+
134
+ ### [v1.0.1](https://github.com/AntiPhotonltd/slackit/compare/v1.0.0...v1.0.1)
135
+
136
+ > Released on January, 22nd 2019
137
+
138
+ - Changelog 1.0.1 [`[5de3eb9]`](https://github.com/AntiPhotonltd/slackit/commit/5de3eb9144b7d880ddf86a4d090176d71d85ab28) [`[TGWolf]`](https://github.com/TGWolf)
139
+
140
+ - Tweak README [`[431ad5e]`](https://github.com/AntiPhotonltd/slackit/commit/431ad5e9e7b3c3633e9488bf33e07d7ed4816331) [`[TGWolf]`](https://github.com/TGWolf)
141
+
142
+ ### [v1.0.0](https://github.com/AntiPhotonltd/slackit/releases/v1.0.0)
143
+
144
+ > Released on January, 21st 2019
145
+
146
+ - Make the cli actually do something useful [`[b21dd45]`](https://github.com/AntiPhotonltd/slackit/commit/b21dd45f0669abc7e9cb48befd8933dfde259e45) [`[TGWolf]`](https://github.com/TGWolf)
147
+
148
+ - Badges [`[a5832d4]`](https://github.com/AntiPhotonltd/slackit/commit/a5832d408c40effd71b1c11b704c6997a505e5e2) [`[TGWolf]`](https://github.com/TGWolf)
149
+
150
+ - Missing require of httparty [`[e81249d]`](https://github.com/AntiPhotonltd/slackit/commit/e81249dac5c0b2afbad52f6e3e17c28c036880ca) [`[TGWolf]`](https://github.com/TGWolf)
151
+
152
+ - Final rubocop fixes [`[e7b1707]`](https://github.com/AntiPhotonltd/slackit/commit/e7b1707a9a5779cac4629a8241c460bb87e947fb) [`[TGWolf]`](https://github.com/TGWolf)
153
+
154
+ - Rubucop errors [`[bdc5009]`](https://github.com/AntiPhotonltd/slackit/commit/bdc5009e9645cc08987a079d25a2da80d1633187) [`[TGWolf]`](https://github.com/TGWolf)
155
+
156
+ - Initial commit [`[a87dcdc]`](https://github.com/AntiPhotonltd/slackit/commit/a87dcdc732bc852a44ccdbaa42c445f76148b1c5) [`[TGWolf]`](https://github.com/TGWolf)
44
157
 
45
- [@TGWolf]: https://github.com/TGWolf
46
- [@eimlav]: https://github.com/eimlav
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
+ ruby '>= 2.5.0'
2
3
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
5
 
5
6
  # Specify your gem's dependencies in slackit.gemspec
6
7
  gemspec
data/README.md CHANGED
@@ -1,15 +1,63 @@
1
- [![Build Status](https://img.shields.io/travis/AntiPhotonltd/slackit/master.svg)](https://travis-ci.org/AntiPhotonltd/slackit)
2
- [![Software License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md)
3
- [![Release](https://img.shields.io/github/release/AntiPhotonltd/slackit.svg)](https://github.com/AntiPhotonltd/slackit/releases/latest)
4
- [![Gem Version](https://badge.fury.io/rb/slackit.svg)](https://badge.fury.io/rb/slackit)
5
- [![Github commits (since latest release)](https://img.shields.io/github/commits-since/AntiPhotonltd/slackit/latest.svg)](https://github.com/AntiPhotonltd/slackit/commits)
6
- [![GitHub repo size in bytes](https://img.shields.io/github/repo-size/AntiPhotonltd/slackit.svg)](https://github.com/AntiPhotonltd/slackit)
7
- [![GitHub contributors](https://img.shields.io/github/contributors/AntiPhotonltd/slackit.svg)](https://github.com/AntiPhotonltd/slackit)
1
+ <h1 align="center">
2
+ <a href="#"><img src="https://github.com/AntiPhotonltd/branding/blob/master/images/company%20logo/banners/banner-1400-215.png?raw=true" alt="" width="600"></a>
3
+ <br>
4
+ Slackit
5
+ <br>
6
+ </h1>
7
+
8
+ <h4 align="center">Slackit is a very simply Ruby Gem for posting to a slack incoming webhook.</h4>
9
+
10
+ <p align="center">
11
+ <a href="https://travis-ci.org/AntiPhotonltd/slackit">
12
+ <img src="https://img.shields.io/travis/AntiPhotonltd/slackit/master?style=for-the-badge&logo=travis"
13
+ alt="Build Status">
14
+ </a>
15
+ <a href="https://github.com/AntiPhotonltd/slackit/releases/latest">
16
+ <img src="https://img.shields.io/github/release/AntiPhotonltd/slackit?color=blueviolet&style=for-the-badge&logo=github&label=Version"
17
+ alt="Release">
18
+ </a>
19
+ <a href="https://github.com/AntiPhotonltd/slackit/releases/latest">
20
+ <img src="https://img.shields.io/github/release-date/AntiPhotonltd/slackit?color=blueviolet&logo=github&style=for-the-badge"
21
+ alt="Latest Release">
22
+ </a>
23
+ <br/>
24
+ <a href="https://github.com/AntiPhotonltd/slackit/commits">
25
+ <img src="https://img.shields.io/github/commits-since/AntiPhotonltd/slackit/latest?color=blueviolet&style=for-the-badge&logo=github"
26
+ alt="Github commits (since latest release)">
27
+ </a>
28
+ <a href="https://github.com/AntiPhotonltd/slackit/commits/master">
29
+ <img src="https://img.shields.io/github/last-commit/AntiPhotonltd/slackit?color=blueviolet&style=for-the-badge&logo=github"
30
+ alt="Last Commit">
31
+ </a>
32
+ <br />
33
+ <a href="LICENSE.md">
34
+ <img src="https://img.shields.io/badge/license-MIT-blueviolet?style=for-the-badge"
35
+ alt="Software License">
36
+ </a>
37
+ <a href="https://github.com/AntiPhotonltd/branding/issues">
38
+ <img src="https://img.shields.io/github/issues/AntiPhotonltd/branding?logo=github&color=blueviolet&style=for-the-badge"
39
+ alt="Open an Issue">
40
+ </a>
41
+ <a href="https://github.com/AntiPhotonltd/branding/issues?q=is%3Aissue+is%3Aclosed)">
42
+ <img src="https://img.shields.io/github/issues-closed/AntiPhotonltd/branding?logo=github&color=blueviolet&style=for-the-badge"
43
+ alt="Open an Issue">
44
+ </a>
45
+ <a href="https://github.com/AntiPhotonltd">
46
+ <img src="https://img.shields.io/badge/Created%20By-AntiPhoton-blueviolet?style=for-the-badge" alt="AntiPhoton Limited">
47
+ </a>
48
+ </p>
49
+ <hr>
50
+
51
+ <h1>Slackit <img align="right" src="https://img.shields.io/badge/made%20with-ruby-blueviolet?logo=gnu-bash&logoColor=white&style=for-the-badge" /></h1>
8
52
 
9
- # Slackit
10
53
 
11
54
  Slackit is a very simply Ruby Gem for posting to a slack incoming webhook.
12
55
 
56
+ It is now possible to send attachments and blocks however slackit doesn't take responsibility for creating those only for sending them. For more information on how to use those please refer to the Slack API documentation.
57
+
58
+ * [Attachments](https://api.slack.com/reference/messaging/attachments)
59
+ * [Blocks](https://api.slack.com/block-kit/building)
60
+
13
61
  ## Installation
14
62
 
15
63
  Add this line to your application's Gemfile:
@@ -32,13 +80,15 @@ Or install it yourself as:
32
80
  require "slackit"
33
81
  ```
34
82
 
35
- Initialize client:
83
+ ### Initialize client
84
+
85
+ #### Initialize with minimal options
36
86
 
37
87
  ```ruby
38
88
  client = Slackit.new(webhook_url: "slack webhook url")
39
89
  ```
40
90
 
41
- Initialize with options:
91
+ #### Initialize with all options
42
92
 
43
93
  ```ruby
44
94
  client = SlackNotify::Client.new(
@@ -49,22 +99,49 @@ client = SlackNotify::Client.new(
49
99
  )
50
100
  ```
51
101
 
52
- Initialize via shorthand method:
102
+ #### Initialize via shorthand method
53
103
 
54
104
  ```Ruby
55
105
  client = Slackit.new(options)
56
106
  ```
57
107
 
108
+ ### Sending Messages
109
+
110
+ #### Simple messages
111
+
112
+ ```Ruby
113
+ client.send_message("This is a test message")
114
+ ```
115
+
116
+ #### Attachments
117
+
118
+ ```Ruby
119
+ client.send_attachment(attachment_json)
120
+ ```
121
+ > NOTE: We will test to make sure the json is valid and catch errors thrown by the API for invalid formatting, missing values etc. General error from the api is `missing_text_or_fallback_or_attachments`
122
+
123
+ #### Blocks
124
+
125
+ ```Ruby
126
+ client.send_block(block_json)
127
+ ```
128
+
129
+ > NOTE: We will test to make sure the json is valid and catch errors thrown by the API for invalid formatting, missing values etc. General error from the api is `invalid_blocks_format`
130
+
58
131
  ### Command Line Usage
59
132
 
60
133
  ```
61
134
  Usage: slackit
62
135
  -h, --help Display this screen
63
136
  -c, --channel string The channel to send the message to
64
- -i, --icon-emoji string The emoji to use as the channel icon [default: :wolf:]
137
+ -i, --icon-emoji string The emoji to use for the channel icon [default: :wolf:]
65
138
  -m, --message string The message to send
66
139
  -w, --webhook-url string The slack incoming webhook url to use
67
140
  -u, --username string The username to send as [default: slackit]
141
+
142
+ Message type options:
143
+ -a, --attachment Treat the message as an attachment
144
+ -b, --block Treat the message as a block
68
145
  ```
69
146
 
70
147
  ### Pipe message
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
@@ -0,0 +1 @@
1
+ 1.1.10
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "slackit"
3
+ require 'bundler/setup'
4
+ require 'slackit'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require "slackit"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start(__FILE__)
@@ -11,10 +11,20 @@ require 'slackit'
11
11
 
12
12
  def send_message_to_slack(options)
13
13
  begin
14
- s = Slackit.new(webhook_url: options[:webhook_url], channel: options[:channel], username: options[:username], icon_emoji: options[:icon_emoji])
15
- s.send(options[:message])
16
- rescue ArgumentError
17
- puts "You must specify a webhook_url"
14
+ s = Slackit.new(options)
15
+
16
+ if options[:attachment]
17
+ s.send_attachment(options[:message])
18
+ elsif options[:block]
19
+ s.send_block(options[:message])
20
+ else
21
+ s.send_message(options[:message])
22
+ end
23
+ rescue ArgumentError => e
24
+ puts e
25
+ exit(1)
26
+ rescue RuntimeError => e
27
+ puts e
18
28
  exit(1)
19
29
  end
20
30
  end
@@ -29,7 +39,7 @@ end
29
39
  # -------------------------------------------------------------------------------- #
30
40
 
31
41
  def process_arguments
32
- options = {}
42
+ options = { :username => 'slackit', :attachment => false, :block => false }
33
43
  # Enforce the presence of
34
44
  mandatory = %I[webhook_url message]
35
45
 
@@ -59,11 +69,22 @@ def process_arguments
59
69
  opts.on('-u', '--username string', 'The username to send as [default: slackit]') do |username|
60
70
  options[:username] = username
61
71
  end
72
+
73
+ opts.separator ''
74
+ opts.separator 'Message type options:'
75
+
76
+ opts.on('-a', '--attachment', 'Treat the message as an attachment') do
77
+ options[:attachment] = true
78
+ end
79
+
80
+ opts.on('-b', '--block', 'Treat the message as a block') do
81
+ options[:block] = true
82
+ end
62
83
  end
63
84
 
64
85
  begin
65
86
  optparse.parse!
66
- options[:message] = ARGF.read if !STDIN.tty? # override message parameter if data is piped in
87
+ options[:message] = ARGF.read unless STDIN.tty? # override message parameter if data is piped in
67
88
  missing = mandatory.select { |param| options[param].nil? }
68
89
  raise OptionParser::MissingArgument.new(missing.join(', ')) unless missing.empty?
69
90
  rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e
@@ -72,6 +93,11 @@ def process_arguments
72
93
  exit
73
94
  end
74
95
 
96
+ if options[:attachment] && options[:block]
97
+ puts 'Error: You cannot use -a and -b at the same time! - aborting'
98
+ exit
99
+ end
100
+
75
101
  exit 0 if send_message_to_slack(options)
76
102
 
77
103
  exit 1
@@ -1,6 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'slackit/version'
2
4
  require 'httparty'
3
5
 
6
+ require 'json'
7
+
4
8
  #
5
9
  # To follow
6
10
  #
@@ -14,27 +18,67 @@ class Slackit
14
18
  raise ArgumentError.new('Webhook URL required') if @webhook_url.nil?
15
19
  end
16
20
 
17
- # sends a notification
18
- # returns true after a successfull pust
21
+ #
22
+ # Raw message
23
+ #
24
+ def send_message(text)
25
+ text = text.gsub('\\n', "\n") # ensure newlines are not escaped
26
+
27
+ payload = { 'text' => text }
28
+
29
+ return send_payload(payload)
30
+ end
31
+
32
+ #
33
+ # Add an alias for backwards compatibility
34
+ #
19
35
  def send(text)
20
- # send as json
21
- headers = { 'Content-Type' => 'application/json' }
36
+ return send_message(text)
37
+ end
22
38
 
23
- # payload
24
- text = text.gsub('\\n', "\n") # ensure newlines are not escaped
25
- body = { 'text' => text, 'icon_emoji' => @icon_emoji, 'username' => @username }
39
+ #
40
+ # Legacy attachments
41
+ #
42
+ def send_attachment(attachment)
43
+ payload = { 'attachments' => [ convert_to_json(attachment) ] }
44
+ return send_payload(payload)
45
+ end
46
+
47
+ #
48
+ # New shiney blocks
49
+ #
50
+ def send_block(block)
51
+ payload = convert_to_json(block)
52
+ return send_payload(payload)
53
+ end
54
+
55
+ #
56
+ # Convery the string to json
57
+ #
58
+ def convert_to_json(json_string)
59
+ begin
60
+ return JSON.parse(json_string)
61
+ rescue JSON::ParserError
62
+ raise ArgumentError.new('Invalid json')
63
+ end
64
+ end
65
+
66
+ def send_payload(payload)
67
+ headers = { 'Content-Type' => 'application/json' }
26
68
 
27
- # add the channel if there is one otherwise the default channel
28
- body['channel'] = @channel || '#general'
69
+ # Add the additional payload items
70
+ payload['icon_emoji'] ||= @icon_emoji
71
+ payload['username'] ||= @username
72
+ payload['channel'] ||= @channel
29
73
 
30
74
  begin
31
- response = HTTParty.post(@webhook_url, body: body.to_json, headers: headers)
75
+ response = HTTParty.post(@webhook_url, body: payload.to_json, headers: headers)
32
76
 
33
77
  return true if response.code == 200
34
78
 
35
- return false
36
- rescue HTTParty::Error, SocketError => _e
37
- return false
79
+ raise response
80
+ rescue HTTParty::Error, SocketError => e
81
+ raise e
38
82
  end
39
83
  end
40
84
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Slackit
2
- VERSION = '1.1.4'.freeze
4
+ VERSION = '1.1.10'
3
5
  end
@@ -1,33 +1,32 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "slackit/version"
3
+ require 'slackit/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "slackit"
7
- spec.version = Slackit::VERSION
8
- spec.authors = ["Tim Gurney aka Wolf"]
9
- spec.email = ["wolf@tgwolf.com"]
6
+ spec.name = 'slackit'
7
+ spec.version = Slackit::VERSION
8
+ spec.authors = ['Tim Gurney aka Wolf']
9
+ spec.email = ['wolf@tgwolf.com']
10
10
 
11
- spec.summary = %q{A simple gem for posting to a slack incoming webhook.}
12
- spec.description = %q{A simple gem for posting raw messages to a slack incoming webhook.}
13
- spec.homepage = "https://github.com/AntiPhotonltd/slackit"
14
- spec.license = "MIT"
11
+ spec.summary = 'A simple gem for posting to a slack incoming webhook.'
12
+ spec.description = 'A simple gem for posting raw messages to a slack incoming webhook.'
13
+ spec.homepage = 'https://github.com/AntiPhotonltd/slackit'
14
+ spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files`.split($/)
16
+ spec.files = `git ls-files`.split($/)
17
17
 
18
- # Specify which files should be added to the gem when it is released.
19
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
- #spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
- # `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
- #end
23
- spec.bindir = "exe"
24
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
- spec.require_paths = ["lib"]
18
+ spec.bindir = 'exe'
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ['lib']
26
21
 
27
- spec.add_development_dependency "bundler", ">= 1.17", "< 3.0"
28
- spec.add_development_dependency "rake", "~> 10.0"
29
- spec.add_development_dependency "rspec", "~> 3.0"
30
- spec.add_development_dependency "httparty", "~> 0.16.2"
22
+ spec.required_ruby_version = '>= 2.5'
31
23
 
32
- spec.add_runtime_dependency "httparty", "~> 0.16.2"
24
+ spec.add_development_dependency 'bundler', '~> 2'
25
+ spec.add_development_dependency 'httparty', '~> 0.16.2'
26
+ spec.add_development_dependency 'json', '~> 2.3.0'
27
+ spec.add_development_dependency 'rake', '~> 12.3.3'
28
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
+
30
+ spec.add_runtime_dependency 'httparty', '~> 0.16.2'
31
+ spec.add_runtime_dependency 'json', '~> 2.3.0'
33
32
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'slackit'
2
4
 
3
5
  RSpec.describe Slackit do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/setup'
2
4
  require 'slackit'
3
5
 
@@ -0,0 +1,124 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+
5
+ require 'optparse'
6
+ require 'slackit'
7
+
8
+ # -------------------------------------------------------------------------------- #
9
+ # Send Mssage to Slack #
10
+ # -------------------------------------------------------------------------------- #
11
+ # This function will take the input arguments and then send the message. #
12
+ # -------------------------------------------------------------------------------- #
13
+
14
+ def send_message_to_slack(options)
15
+ begin
16
+ s = Slackit.new(options)
17
+
18
+ if options[:attachment]
19
+ s.send_attachment(options[:message])
20
+ elsif options[:block]
21
+ s.send_block(options[:message])
22
+ else
23
+ s.send_message(options[:message])
24
+ end
25
+ rescue ArgumentError => e
26
+ puts e
27
+ exit(1)
28
+ rescue RuntimeError => e
29
+ puts e
30
+ exit(1)
31
+ end
32
+ end
33
+
34
+ # -------------------------------------------------------------------------------- #
35
+ # Process Arguments #
36
+ # -------------------------------------------------------------------------------- #
37
+ # This function will process the input from the command line and work out what it #
38
+ # is that the user wants to see. #
39
+ # #
40
+ # This is the main processing function where all the processing logic is handled. #
41
+ # -------------------------------------------------------------------------------- #
42
+
43
+ def process_arguments
44
+ options = { :username => 'slackit', :attachment => false, :block => false }
45
+ # Enforce the presence of
46
+ mandatory = %I[webhook_url message]
47
+
48
+ optparse = OptionParser.new do |opts|
49
+ opts.banner = "Usage: #{$PROGRAM_NAME}"
50
+
51
+ opts.on('-h', '--help', 'Display this screen') do
52
+ puts opts
53
+ exit(1)
54
+ end
55
+ opts.on('-c', '--channel string', 'The channel to send the message to') do |channel|
56
+ options[:channel] = channel
57
+ end
58
+
59
+ opts.on('-i', '--icon-emoji string', 'The emoji to use for the channel icon [default: :wolf:]') do |icon_emoji|
60
+ options[:icon_emoji] = icon_emoji
61
+ end
62
+
63
+ opts.on('-m', '--message string', 'The message to send') do |message|
64
+ options[:message] = message
65
+ end
66
+
67
+ opts.on('-w', '--webhook-url string', 'The slack incoming webhook url to use') do |webhook_url|
68
+ options[:webhook_url] = webhook_url
69
+ end
70
+
71
+ opts.on('-u', '--username string', 'The username to send as [default: slackit]') do |username|
72
+ options[:username] = username
73
+ end
74
+
75
+ opts.separator ''
76
+ opts.separator 'Message type options:'
77
+
78
+ opts.on('-a', '--attachment', 'Treat the message as an attachment') do
79
+ options[:attachment] = true
80
+ end
81
+
82
+ opts.on('-b', '--block', 'Treat the message as a block') do
83
+ options[:block] = true
84
+ end
85
+ end
86
+
87
+ begin
88
+ optparse.parse!
89
+ options[:message] = ARGF.read unless STDIN.tty? # override message parameter if data is piped in
90
+ missing = mandatory.select { |param| options[param].nil? }
91
+ raise OptionParser::MissingArgument.new(missing.join(', ')) unless missing.empty?
92
+ rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e
93
+ puts e.to_s
94
+ puts optparse
95
+ exit
96
+ end
97
+
98
+ if options[:attachment] && options[:block]
99
+ puts 'Error: You cannot use -a and -b at the same time! - aborting'
100
+ exit
101
+ end
102
+
103
+ exit 0 if send_message_to_slack(options)
104
+
105
+ exit 1
106
+ end
107
+
108
+ # -------------------------------------------------------------------------------- #
109
+ # Main() #
110
+ # -------------------------------------------------------------------------------- #
111
+ # The main function where all of the heavy lifting and script config is done. #
112
+ # -------------------------------------------------------------------------------- #
113
+
114
+ def main
115
+ process_arguments
116
+ end
117
+
118
+ main
119
+
120
+ # -------------------------------------------------------------------------------- #
121
+ # End of Script #
122
+ # -------------------------------------------------------------------------------- #
123
+ # This is the end - nothing more to see here. #
124
+ # -------------------------------------------------------------------------------- #
metadata CHANGED
@@ -1,49 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Gurney aka Wolf
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2020-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
20
- - - "<"
19
+ version: '2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
21
25
  - !ruby/object:Gem::Version
22
- version: '3.0'
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.16.2
23
34
  type: :development
24
35
  prerelease: false
25
36
  version_requirements: !ruby/object:Gem::Requirement
26
37
  requirements:
27
- - - ">="
38
+ - - "~>"
28
39
  - !ruby/object:Gem::Version
29
- version: '1.17'
30
- - - "<"
40
+ version: 0.16.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
31
46
  - !ruby/object:Gem::Version
32
- version: '3.0'
47
+ version: 2.3.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.3.0
33
55
  - !ruby/object:Gem::Dependency
34
56
  name: rake
35
57
  requirement: !ruby/object:Gem::Requirement
36
58
  requirements:
37
59
  - - "~>"
38
60
  - !ruby/object:Gem::Version
39
- version: '10.0'
61
+ version: 12.3.3
40
62
  type: :development
41
63
  prerelease: false
42
64
  version_requirements: !ruby/object:Gem::Requirement
43
65
  requirements:
44
66
  - - "~>"
45
67
  - !ruby/object:Gem::Version
46
- version: '10.0'
68
+ version: 12.3.3
47
69
  - !ruby/object:Gem::Dependency
48
70
  name: rspec
49
71
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +87,7 @@ dependencies:
65
87
  - - "~>"
66
88
  - !ruby/object:Gem::Version
67
89
  version: 0.16.2
68
- type: :development
90
+ type: :runtime
69
91
  prerelease: false
70
92
  version_requirements: !ruby/object:Gem::Requirement
71
93
  requirements:
@@ -73,19 +95,19 @@ dependencies:
73
95
  - !ruby/object:Gem::Version
74
96
  version: 0.16.2
75
97
  - !ruby/object:Gem::Dependency
76
- name: httparty
98
+ name: json
77
99
  requirement: !ruby/object:Gem::Requirement
78
100
  requirements:
79
101
  - - "~>"
80
102
  - !ruby/object:Gem::Version
81
- version: 0.16.2
103
+ version: 2.3.0
82
104
  type: :runtime
83
105
  prerelease: false
84
106
  version_requirements: !ruby/object:Gem::Requirement
85
107
  requirements:
86
108
  - - "~>"
87
109
  - !ruby/object:Gem::Version
88
- version: 0.16.2
110
+ version: 2.3.0
89
111
  description: A simple gem for posting raw messages to a slack incoming webhook.
90
112
  email:
91
113
  - wolf@tgwolf.com
@@ -94,6 +116,7 @@ executables:
94
116
  extensions: []
95
117
  extra_rdoc_files: []
96
118
  files:
119
+ - ".caretaker.yml"
97
120
  - ".gitignore"
98
121
  - ".rspec"
99
122
  - ".rubocop.yml"
@@ -105,6 +128,7 @@ files:
105
128
  - LICENSE.txt
106
129
  - README.md
107
130
  - Rakefile
131
+ - VERSION.txt
108
132
  - bin/console
109
133
  - bin/setup
110
134
  - exe/slackit
@@ -113,11 +137,12 @@ files:
113
137
  - slackit.gemspec
114
138
  - spec/slackit_spec.rb
115
139
  - spec/spec_helper.rb
140
+ - testing/slackit
116
141
  homepage: https://github.com/AntiPhotonltd/slackit
117
142
  licenses:
118
143
  - MIT
119
144
  metadata: {}
120
- post_install_message:
145
+ post_install_message:
121
146
  rdoc_options: []
122
147
  require_paths:
123
148
  - lib
@@ -125,15 +150,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
150
  requirements:
126
151
  - - ">="
127
152
  - !ruby/object:Gem::Version
128
- version: '0'
153
+ version: '2.5'
129
154
  required_rubygems_version: !ruby/object:Gem::Requirement
130
155
  requirements:
131
156
  - - ">="
132
157
  - !ruby/object:Gem::Version
133
158
  version: '0'
134
159
  requirements: []
135
- rubygems_version: 3.0.2
136
- signing_key:
160
+ rubygems_version: 3.1.4
161
+ signing_key:
137
162
  specification_version: 4
138
163
  summary: A simple gem for posting to a slack incoming webhook.
139
164
  test_files: []