slackit 1.1.6 → 1.1.7
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/.caretaker.yml +8 -0
- data/.rubocop.yml +60 -13
- data/.travis.yml +20 -22
- data/CHANGELOG.md +108 -29
- data/Gemfile +3 -2
- data/README.md +10 -7
- data/Rakefile +2 -2
- data/VERSION.txt +1 -0
- data/bin/console +3 -3
- data/exe/slackit +2 -3
- data/lib/slackit/version.rb +1 -1
- data/slackit.gemspec +19 -24
- metadata +18 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f913895beef1e63ce9e0c8c0ce64c33b3608b8f87240e6ef2790e60923cf7900
|
4
|
+
data.tar.gz: 84a9d82d020e71de5d0880edeb0d1d100fc9330a654a9a6deac8401d5d336667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ae79933d375daaf6aacdc700f9a74b8771dec675991e08539eb1c1cf5334b967a640b01209d9f812fc6177985efb8834b9c8542da60e4ce2f7a4a378e3481f8
|
7
|
+
data.tar.gz: 04b33e68c580f1b49d2728a23e102bfa15f1bb49a9be5b390f5758a79a8fdfd70785043240e5fa19f10c75f2b0cccabebbcc39854db51eb2f24d4837ab232005
|
data/.caretaker.yml
ADDED
data/.rubocop.yml
CHANGED
@@ -1,30 +1,77 @@
|
|
1
|
+
Layout/CaseIndentation:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Layout/ClosingHeredocIndentation:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Layout/FirstHashElementIndentation:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Layout/HashAlignment:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Layout/HeredocIndentation:
|
14
|
+
Enabled: false
|
15
|
+
|
1
16
|
Layout/IndentationWidth:
|
2
|
-
|
17
|
+
Width: 4
|
3
18
|
|
4
|
-
|
5
|
-
|
19
|
+
Layout/LineLength:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
23
|
+
Enabled: false
|
6
24
|
|
7
|
-
Metrics/
|
8
|
-
|
25
|
+
Metrics/AbcSize:
|
26
|
+
Enabled: false
|
9
27
|
|
10
28
|
Metrics/BlockLength:
|
11
|
-
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Metrics/BlockNesting:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Metrics/ClassLength:
|
35
|
+
Enabled: false
|
12
36
|
|
13
37
|
Metrics/CyclomaticComplexity:
|
14
|
-
|
38
|
+
Enabled: false
|
15
39
|
|
16
40
|
Metrics/MethodLength:
|
17
|
-
|
41
|
+
Enabled: false
|
18
42
|
|
19
43
|
Metrics/PerceivedComplexity:
|
20
|
-
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Naming/FileName:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/FrozenStringLiteralComment:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/HashSyntax:
|
53
|
+
Enabled: false
|
21
54
|
|
22
|
-
Style/
|
23
|
-
|
55
|
+
Style/PercentLiteralDelimiters:
|
56
|
+
Enabled: false
|
24
57
|
|
25
58
|
Style/RaiseArgs:
|
26
|
-
|
59
|
+
EnforcedStyle: compact
|
60
|
+
|
61
|
+
Style/RedundantBegin:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Style/RedundantConditional:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/RedundantReturn:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/SpecialGlobalVars:
|
71
|
+
Enabled: false
|
27
72
|
|
28
73
|
Style/WordArray:
|
29
|
-
|
74
|
+
EnforcedStyle: brackets
|
30
75
|
|
76
|
+
Style/RedundantPercentQ:
|
77
|
+
Enabled: false
|
data/.travis.yml
CHANGED
@@ -1,29 +1,24 @@
|
|
1
1
|
matrix:
|
2
2
|
include:
|
3
3
|
- language: ruby
|
4
|
-
name: "Bundler (rvm 2.
|
5
|
-
rvm: 2.
|
4
|
+
name: "Bundler (rvm 2.5)"
|
5
|
+
rvm: 2.5
|
6
6
|
before_install:
|
7
|
-
- gem install bundler
|
7
|
+
- gem install bundler
|
8
8
|
- language: ruby
|
9
|
-
name: "Bundler (rvm 2.
|
10
|
-
rvm: 2.
|
9
|
+
name: "Bundler (rvm 2.6)"
|
10
|
+
rvm: 2.6
|
11
11
|
before_install:
|
12
|
-
- gem install bundler
|
12
|
+
- gem install bundler
|
13
13
|
- language: ruby
|
14
|
-
name: "Bundler (rvm 2.
|
15
|
-
rvm: 2.
|
14
|
+
name: "Bundler (rvm 2.7)"
|
15
|
+
rvm: 2.7
|
16
16
|
before_install:
|
17
|
-
- gem install bundler
|
17
|
+
- gem install bundler
|
18
18
|
- language: ruby
|
19
|
-
name: "
|
20
|
-
rvm: 2.6.1
|
21
|
-
before_install:
|
22
|
-
- gem install bundler -v 2.0.1
|
23
|
-
- language: ruby
|
24
|
-
name: "Rubocop (rvm 2.4.4)"
|
19
|
+
name: "Rubocop (rvm 2.5)"
|
25
20
|
env: SKIP_INTERPRETER=true
|
26
|
-
rvm: 2.
|
21
|
+
rvm: 2.5
|
27
22
|
before_install:
|
28
23
|
- git clone https://github.com/TravisToolbox/rubocop-travis.git
|
29
24
|
install:
|
@@ -31,9 +26,9 @@ matrix:
|
|
31
26
|
script:
|
32
27
|
- ./rubocop-travis/scan.sh
|
33
28
|
- language: ruby
|
34
|
-
name: "Rubocop (rvm 2.
|
29
|
+
name: "Rubocop (rvm 2.6)"
|
35
30
|
env: SKIP_INTERPRETER=true
|
36
|
-
rvm: 2.
|
31
|
+
rvm: 2.6
|
37
32
|
before_install:
|
38
33
|
- git clone https://github.com/TravisToolbox/rubocop-travis.git
|
39
34
|
install:
|
@@ -41,9 +36,9 @@ matrix:
|
|
41
36
|
script:
|
42
37
|
- ./rubocop-travis/scan.sh
|
43
38
|
- language: ruby
|
44
|
-
name: "Rubocop (rvm 2.
|
39
|
+
name: "Rubocop (rvm 2.7)"
|
45
40
|
env: SKIP_INTERPRETER=true
|
46
|
-
rvm: 2.
|
41
|
+
rvm: 2.7
|
47
42
|
before_install:
|
48
43
|
- git clone https://github.com/TravisToolbox/rubocop-travis.git
|
49
44
|
install:
|
@@ -51,8 +46,11 @@ matrix:
|
|
51
46
|
script:
|
52
47
|
- ./rubocop-travis/scan.sh
|
53
48
|
- language: ruby
|
54
|
-
name: "Link Checker (rvm 2.
|
55
|
-
rvm: 2.
|
49
|
+
name: "Link Checker (rvm 2.7)"
|
50
|
+
rvm: 2.7
|
51
|
+
env:
|
52
|
+
- https://img.shields.io"
|
53
|
+
- EXCLUDE_FILES="CHANGELOG.md"
|
56
54
|
before_install:
|
57
55
|
- mkdir travis
|
58
56
|
- git clone https://github.com/TravisToolbox/awesomebot-travis.git travis/awesomebot
|
data/CHANGELOG.md
CHANGED
@@ -1,52 +1,131 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
* Clean up tweaks based on updates to rubocop. ([@TGWolf][])
|
6
5
|
|
7
|
-
|
6
|
+
This changelog was automatically generated using [Caretaker](https://github.com/AntiPhotonltd/slackit) by [Wolf Software](https://github.com/WolfSoftware)
|
8
7
|
|
9
|
-
|
8
|
+
### [Unreleased](https://github.com/AntiPhotonltd/slackit/compare/v1.1.7...HEAD)
|
10
9
|
|
11
|
-
|
12
|
-
* Updated the travis job file to use newer versions of ruby. ([@TGWolf][])
|
10
|
+
- Fix gemfile ruby version [`[2773bc5]`](https://github.com/AntiPhotonltd/slackit/commit/2773bc55744ad3c6bb50cd461b50406450789d52) [`[TGWolf]`](https://github.com/TGWolf)
|
13
11
|
|
14
|
-
|
12
|
+
### [v1.1.7](https://github.com/AntiPhotonltd/slackit/compare/v1.1.6...v1.1.7)
|
15
13
|
|
16
|
-
|
14
|
+
> Released on March, 9th 2020
|
17
15
|
|
18
|
-
|
16
|
+
- Add a minimum ruby version to the Gemfile [`[f5c22ac]`](https://github.com/AntiPhotonltd/slackit/commit/f5c22ac495d51cadc496aea27009a83b224e0afb) [`[TGWolf]`](https://github.com/TGWolf)
|
19
17
|
|
20
|
-
|
18
|
+
- 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)
|
21
19
|
|
22
|
-
|
20
|
+
- Fix issue with version file [`[e31c0d4]`](https://github.com/AntiPhotonltd/slackit/commit/e31c0d4cf81339e239f20e3b4ecb33f7fb3b341d) [`[TGWolf]`](https://github.com/TGWolf)
|
23
21
|
|
24
|
-
|
22
|
+
- 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)
|
25
23
|
|
26
|
-
|
24
|
+
- Enable caretaker [`[e656e32]`](https://github.com/AntiPhotonltd/slackit/commit/e656e329e326c9e781fce3b4b5851e0b2c8c4298) [`[TGWolf]`](https://github.com/TGWolf)
|
27
25
|
|
28
|
-
|
26
|
+
- Fix for a security issue in rake [`[4228845]`](https://github.com/AntiPhotonltd/slackit/commit/4228845ae947f4d1dbdd265701107800a20095d1) [`[TGWolf]`](https://github.com/TGWolf)
|
29
27
|
|
30
|
-
|
28
|
+
- badges [`[773aa6f]`](https://github.com/AntiPhotonltd/slackit/commit/773aa6ffec0e15a95ed50971860f268ae67939bf) [`[TGWolf]`](https://github.com/TGWolf)
|
31
29
|
|
32
|
-
|
30
|
+
- badges [`[d2c017b]`](https://github.com/AntiPhotonltd/slackit/commit/d2c017b7b1548c2544b24a8fc5d4d12f6d54c915) [`[TGWolf]`](https://github.com/TGWolf)
|
33
31
|
|
34
|
-
|
32
|
+
### [v1.1.6](https://github.com/AntiPhotonltd/slackit/compare/v1.1.5...v1.1.6)
|
35
33
|
|
36
|
-
|
37
|
-
* Added additional testing to ensure a new class instance is created. ([@TGWolf][])
|
38
|
-
* Specifying no channel will now send the message to '#general'. ([@TGWolf][])
|
39
|
-
* Added better error handling to the CLI tool. ([@TGWolf][])
|
34
|
+
> Released on September, 30th 2019
|
40
35
|
|
41
|
-
|
36
|
+
- Changelog 1.1.6 [`[f722018]`](https://github.com/AntiPhotonltd/slackit/commit/f7220188db3e51cb9f46e60c9b36754169c77506) [`[TGWolf]`](https://github.com/TGWolf)
|
42
37
|
|
43
|
-
|
38
|
+
- Typo :( [`[7a22454]`](https://github.com/AntiPhotonltd/slackit/commit/7a224545e9ef0a6c8d9deb6a1522ca3fcbaf44e2) [`[TGWolf]`](https://github.com/TGWolf)
|
44
39
|
|
45
|
-
|
40
|
+
- 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)
|
46
41
|
|
47
|
-
|
42
|
+
- typos [`[5cd43c8]`](https://github.com/AntiPhotonltd/slackit/commit/5cd43c86649e93fd8a97ec6a598a5295f4812267) [`[TGWolf]`](https://github.com/TGWolf)
|
48
43
|
|
49
|
-
|
44
|
+
### [v1.1.5](https://github.com/AntiPhotonltd/slackit/compare/v1.1.4...v1.1.5)
|
45
|
+
|
46
|
+
> Released on June, 28th 2019
|
47
|
+
|
48
|
+
- changelog 1.1.5 [`[7b10700]`](https://github.com/AntiPhotonltd/slackit/commit/7b1070005110d2ca42c898548cfb5a0648865908) [`[TGWolf]`](https://github.com/TGWolf)
|
49
|
+
|
50
|
+
- Miss-fixed [`[6263ae3]`](https://github.com/AntiPhotonltd/slackit/commit/6263ae33e597821d79de4435b2bb5e9e125e3761) [`[TGWolf]`](https://github.com/TGWolf)
|
51
|
+
|
52
|
+
- Changed enforced by newer version of rubocop [`[5b9ed30]`](https://github.com/AntiPhotonltd/slackit/commit/5b9ed30dbbfdb27b09898dd5afcc5c384ea37da2) [`[TGWolf]`](https://github.com/TGWolf)
|
53
|
+
|
54
|
+
- sudo: required isnt [`[a502415]`](https://github.com/AntiPhotonltd/slackit/commit/a502415815d8f679127d987396c5d953931d38fb) [`[TGWolf]`](https://github.com/TGWolf)
|
55
|
+
|
56
|
+
- travis cleanup [`[6278daa]`](https://github.com/AntiPhotonltd/slackit/commit/6278daafa0b58d54aa22c0c1d62d3c72ccf25dd8) [`[TGWolf]`](https://github.com/TGWolf)
|
57
|
+
|
58
|
+
### [v1.1.4](https://github.com/AntiPhotonltd/slackit/compare/v1.1.3...v1.1.4)
|
59
|
+
|
60
|
+
> Released on March, 13th 2019
|
61
|
+
|
62
|
+
- Changelog 1.1.4 [`[f8643af]`](https://github.com/AntiPhotonltd/slackit/commit/f8643af20a7ac2c2eb765bb904b866166fcaf5f2) [`[TGWolf]`](https://github.com/TGWolf)
|
63
|
+
|
64
|
+
- typos [`[1250bbb]`](https://github.com/AntiPhotonltd/slackit/commit/1250bbb9399a102a9ef9844620347b12d80304a9) [`[TGWolf]`](https://github.com/TGWolf)
|
65
|
+
|
66
|
+
### [v1.1.3](https://github.com/AntiPhotonltd/slackit/compare/v1.1.2...v1.1.3)
|
67
|
+
|
68
|
+
> Released on February, 6th 2019
|
69
|
+
|
70
|
+
- Changelog 1.1.3 [`[573c873]`](https://github.com/AntiPhotonltd/slackit/commit/573c873d882c9c87f2fce42b3f0d09d1e0b8fb91) [`[TGWolf]`](https://github.com/TGWolf)
|
71
|
+
|
72
|
+
- Add multiline message support [`[#2]`](https://github.com/AntiPhotonltd/slackit/pull/2) [`[TGWolf]`](https://github.com/TGWolf) [`[TGWolf]`](https://github.com/TGWolf)
|
73
|
+
|
74
|
+
### [v1.1.2](https://github.com/AntiPhotonltd/slackit/compare/v1.1.1...v1.1.2)
|
75
|
+
|
76
|
+
> Released on January, 31st 2019
|
77
|
+
|
78
|
+
- Changelog 1.1.2 [`[6c88839]`](https://github.com/AntiPhotonltd/slackit/commit/6c888394aecf633f4d6d6df7604ce7f240453c8d) [`[TGWolf]`](https://github.com/TGWolf)
|
79
|
+
|
80
|
+
- Add ability to pipe message [`[#1]`](https://github.com/AntiPhotonltd/slackit/pull/1) [`[TGWolf]`](https://github.com/TGWolf) [`[TGWolf]`](https://github.com/TGWolf)
|
81
|
+
|
82
|
+
### [v1.1.1](https://github.com/AntiPhotonltd/slackit/compare/v1.1.0...v1.1.1)
|
83
|
+
|
84
|
+
> Released on January, 22nd 2019
|
85
|
+
|
86
|
+
- fix rubocop [`[ce3cf46]`](https://github.com/AntiPhotonltd/slackit/commit/ce3cf4696ff608003736f7c12a37261f88125363) [`[TGWolf]`](https://github.com/TGWolf)
|
87
|
+
|
88
|
+
- final update [`[74bc203]`](https://github.com/AntiPhotonltd/slackit/commit/74bc203a456209c46eea0081e5d5da79b8da56cf) [`[TGWolf]`](https://github.com/TGWolf)
|
89
|
+
|
90
|
+
- Bug fix for older versions of Ruby [`[cb15ee7]`](https://github.com/AntiPhotonltd/slackit/commit/cb15ee710eaa3661ef411edee1e11277df5e705a) [`[TGWolf]`](https://github.com/TGWolf)
|
91
|
+
|
92
|
+
- typo [`[7db1903]`](https://github.com/AntiPhotonltd/slackit/commit/7db1903b8bfed04f22dd61f43b17918fcb2de5c8) [`[TGWolf]`](https://github.com/TGWolf)
|
93
|
+
|
94
|
+
### [v1.1.0](https://github.com/AntiPhotonltd/slackit/compare/v1.0.1...v1.1.0)
|
95
|
+
|
96
|
+
> Released on January, 22nd 2019
|
97
|
+
|
98
|
+
- Update changelog to reflect released date [`[80e18f1]`](https://github.com/AntiPhotonltd/slackit/commit/80e18f1d0fba1f3c3bf0abc464107972fe997cd7) [`[TGWolf]`](https://github.com/TGWolf)
|
99
|
+
|
100
|
+
- Updates [`[2fda41b]`](https://github.com/AntiPhotonltd/slackit/commit/2fda41b060ecd6dfa3d889166baffc4d48c0fb96) [`[TGWolf]`](https://github.com/TGWolf)
|
101
|
+
|
102
|
+
- Rubocop errors [`[af43d40]`](https://github.com/AntiPhotonltd/slackit/commit/af43d40f95530c6901318c984e585cae497ecddf) [`[TGWolf]`](https://github.com/TGWolf)
|
103
|
+
|
104
|
+
- Changelog 1.1.0 [`[29609f5]`](https://github.com/AntiPhotonltd/slackit/commit/29609f5b04330042095d80e0434aa578c72bfaee) [`[TGWolf]`](https://github.com/TGWolf)
|
105
|
+
|
106
|
+
- Added testing section to README [`[4f53027]`](https://github.com/AntiPhotonltd/slackit/commit/4f53027cb09017419509736420067804fd06eedb) [`[TGWolf]`](https://github.com/TGWolf)
|
107
|
+
|
108
|
+
### [v1.0.1](https://github.com/AntiPhotonltd/slackit/compare/v1.0.0...v1.0.1)
|
109
|
+
|
110
|
+
> Released on January, 22nd 2019
|
111
|
+
|
112
|
+
- Changelog 1.0.1 [`[5de3eb9]`](https://github.com/AntiPhotonltd/slackit/commit/5de3eb9144b7d880ddf86a4d090176d71d85ab28) [`[TGWolf]`](https://github.com/TGWolf)
|
113
|
+
|
114
|
+
- Tweak README [`[431ad5e]`](https://github.com/AntiPhotonltd/slackit/commit/431ad5e9e7b3c3633e9488bf33e07d7ed4816331) [`[TGWolf]`](https://github.com/TGWolf)
|
115
|
+
|
116
|
+
### [v1.0.0](https://github.com/AntiPhotonltd/slackit/releases/v1.0.0)
|
117
|
+
|
118
|
+
> Released on January, 21st 2019
|
119
|
+
|
120
|
+
- Make the cli actually do something useful [`[b21dd45]`](https://github.com/AntiPhotonltd/slackit/commit/b21dd45f0669abc7e9cb48befd8933dfde259e45) [`[TGWolf]`](https://github.com/TGWolf)
|
121
|
+
|
122
|
+
- Badges [`[a5832d4]`](https://github.com/AntiPhotonltd/slackit/commit/a5832d408c40effd71b1c11b704c6997a505e5e2) [`[TGWolf]`](https://github.com/TGWolf)
|
123
|
+
|
124
|
+
- Missing require of httparty [`[e81249d]`](https://github.com/AntiPhotonltd/slackit/commit/e81249dac5c0b2afbad52f6e3e17c28c036880ca) [`[TGWolf]`](https://github.com/TGWolf)
|
125
|
+
|
126
|
+
- Final rubocop fixes [`[e7b1707]`](https://github.com/AntiPhotonltd/slackit/commit/e7b1707a9a5779cac4629a8241c460bb87e947fb) [`[TGWolf]`](https://github.com/TGWolf)
|
127
|
+
|
128
|
+
- Rubucop errors [`[bdc5009]`](https://github.com/AntiPhotonltd/slackit/commit/bdc5009e9645cc08987a079d25a2da80d1633187) [`[TGWolf]`](https://github.com/TGWolf)
|
129
|
+
|
130
|
+
- Initial commit [`[a87dcdc]`](https://github.com/AntiPhotonltd/slackit/commit/a87dcdc732bc852a44ccdbaa42c445f76148b1c5) [`[TGWolf]`](https://github.com/TGWolf)
|
50
131
|
|
51
|
-
[@TGWolf]: https://github.com/TGWolf
|
52
|
-
[@eimlav]: https://github.com/eimlav
|
data/Gemfile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
source
|
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,10 +1,13 @@
|
|
1
|
-
[](https://img.shields.io/github/commits-since/AntiPhotonltd/slackit/latest
|
6
|
-
[](https://travis-ci.org/AntiPhotonltd/slackit)
|
2
|
+
[](LICENSE.md)
|
3
|
+
[](https://github.com/AntiPhotonltd/slackit/releases/latest)
|
4
|
+
[](https://github.com/AntiPhotonltd/slackit/releases/latest)
|
5
|
+
[](https://github.com/AntiPhotonltd/slackit/commits)
|
6
|
+
[](https://github.com/AntiPhotonltd/slackit/commits/master)
|
7
|
+
[](#)
|
8
|
+
[](#)
|
9
|
+
[](https://github.com/AntiPhotonltd/slackit/graphs/contributors)
|
10
|
+
[](https://github.com/AntiPhotonltd)
|
8
11
|
|
9
12
|
# Slackit
|
10
13
|
|
data/Rakefile
CHANGED
data/VERSION.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.7
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
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
|
13
|
+
require 'irb'
|
14
14
|
IRB.start(__FILE__)
|
data/exe/slackit
CHANGED
@@ -11,11 +11,10 @@ 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
14
|
s = Slackit.new(options)
|
16
15
|
s.send(options[:message])
|
17
16
|
rescue ArgumentError
|
18
|
-
puts
|
17
|
+
puts 'You must specify a webhook_url'
|
19
18
|
exit(1)
|
20
19
|
end
|
21
20
|
end
|
@@ -64,7 +63,7 @@ def process_arguments
|
|
64
63
|
|
65
64
|
begin
|
66
65
|
optparse.parse!
|
67
|
-
options[:message] = ARGF.read
|
66
|
+
options[:message] = ARGF.read unless STDIN.tty? # override message parameter if data is piped in
|
68
67
|
missing = mandatory.select { |param| options[param].nil? }
|
69
68
|
raise OptionParser::MissingArgument.new(missing.join(', ')) unless missing.empty?
|
70
69
|
rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e
|
data/lib/slackit/version.rb
CHANGED
data/slackit.gemspec
CHANGED
@@ -1,33 +1,28 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require 'slackit/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
22
|
+
spec.add_development_dependency 'bundler', '~> 2'
|
23
|
+
spec.add_development_dependency 'httparty', '~> 0.16.2'
|
24
|
+
spec.add_development_dependency 'rake', '~> 12.3.3'
|
25
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
26
|
|
32
|
-
|
27
|
+
spec.add_runtime_dependency 'httparty', '~> 0.16.2'
|
33
28
|
end
|
metadata
CHANGED
@@ -1,77 +1,71 @@
|
|
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.7
|
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:
|
11
|
+
date: 2020-03-09 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
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.17'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
19
|
+
version: '2'
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.17'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
26
|
+
version: '2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: httparty
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
33
|
+
version: 0.16.2
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: 0.16.2
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
42
|
+
name: rake
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 12.3.3
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
54
|
+
version: 12.3.3
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
56
|
+
name: rspec
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - "~>"
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0
|
61
|
+
version: '3.0'
|
68
62
|
type: :development
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
71
65
|
requirements:
|
72
66
|
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0
|
68
|
+
version: '3.0'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: httparty
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +88,7 @@ executables:
|
|
94
88
|
extensions: []
|
95
89
|
extra_rdoc_files: []
|
96
90
|
files:
|
91
|
+
- ".caretaker.yml"
|
97
92
|
- ".gitignore"
|
98
93
|
- ".rspec"
|
99
94
|
- ".rubocop.yml"
|
@@ -105,6 +100,7 @@ files:
|
|
105
100
|
- LICENSE.txt
|
106
101
|
- README.md
|
107
102
|
- Rakefile
|
103
|
+
- VERSION.txt
|
108
104
|
- bin/console
|
109
105
|
- bin/setup
|
110
106
|
- exe/slackit
|
@@ -132,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
128
|
- !ruby/object:Gem::Version
|
133
129
|
version: '0'
|
134
130
|
requirements: []
|
135
|
-
rubygems_version: 3.0.
|
131
|
+
rubygems_version: 3.0.3
|
136
132
|
signing_key:
|
137
133
|
specification_version: 4
|
138
134
|
summary: A simple gem for posting to a slack incoming webhook.
|