slackcat 0.2.4 → 0.2.5
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/Gemfile.lock +3 -3
- data/README.md +2 -3
- data/bin/slackcat +1 -1
- data/lib/slackcat/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 110a3ac5d9f299396c567f27a4a53dd4a58987f2
|
|
4
|
+
data.tar.gz: 39fed47872238ed8f2e312fb2353081740457e7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6197412b4182c061867440ec68bf6fc748925fedb555812239cd1d158f0b42bbcb6b46b7914af096631f1d07bb7b3c4c53f3091d563d0e429ff1f90b429787a4
|
|
7
|
+
data.tar.gz: bb6a9ecc760418de0ca0eb15604cbb53b6a1b4698733d4eedd028466a9fcf25e047f77a410dc0e27717c9222012eacb15b99fbbff79cdbb34eb8ea6101f6026c
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
slackcat (0.2.
|
|
4
|
+
slackcat (0.2.5)
|
|
5
5
|
httmultiparty
|
|
6
6
|
trollop
|
|
7
7
|
|
|
@@ -15,12 +15,12 @@ GEM
|
|
|
15
15
|
httparty (0.13.3)
|
|
16
16
|
json (~> 1.8)
|
|
17
17
|
multi_xml (>= 0.5.2)
|
|
18
|
-
json (1.8.
|
|
18
|
+
json (1.8.2)
|
|
19
19
|
mimemagic (0.2.1)
|
|
20
20
|
multi_xml (0.5.5)
|
|
21
21
|
multipart-post (2.0.0)
|
|
22
22
|
rake (10.3.2)
|
|
23
|
-
trollop (2.
|
|
23
|
+
trollop (2.1.1)
|
|
24
24
|
|
|
25
25
|
PLATFORMS
|
|
26
26
|
ruby
|
data/README.md
CHANGED
|
@@ -86,9 +86,8 @@ date | slackcat -c general -p
|
|
|
86
86
|
slackcat -u buddy -p foo.txt bar.txt
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
Due to a limitation of the slack api
|
|
90
|
-
|
|
91
|
-
only one channel, group or username.
|
|
89
|
+
Due to a limitation of the slack api you may also pass only one channel,
|
|
90
|
+
group or username.
|
|
92
91
|
|
|
93
92
|
## Example usage from vim
|
|
94
93
|
|
data/bin/slackcat
CHANGED
|
@@ -135,7 +135,7 @@ params = {
|
|
|
135
135
|
}.select { |_, value| value }
|
|
136
136
|
|
|
137
137
|
if opts[:post] #simple text post
|
|
138
|
-
slack.post_message(text: ARGF.read, channel: params[:channels],
|
|
138
|
+
slack.post_message(text: ARGF.read, channel: params[:channels], as_user: true)
|
|
139
139
|
elsif opts[:multipart] #upload multiple individual binary files
|
|
140
140
|
ARGV.each do |arg|
|
|
141
141
|
slack.upload({file: File.new(arg), filename: arg}.merge(params))
|
data/lib/slackcat/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slackcat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Lister
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-03-10 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
19
|
version: '1.3'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: httmultiparty
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: trollop
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
description: Upload a file to Slack chat
|
|
@@ -74,7 +74,7 @@ executables:
|
|
|
74
74
|
extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
|
76
76
|
files:
|
|
77
|
-
- .gitignore
|
|
77
|
+
- ".gitignore"
|
|
78
78
|
- Gemfile
|
|
79
79
|
- Gemfile.lock
|
|
80
80
|
- LICENSE.txt
|
|
@@ -94,17 +94,17 @@ require_paths:
|
|
|
94
94
|
- lib
|
|
95
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
|
97
|
-
- -
|
|
97
|
+
- - ">="
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
99
|
version: '0'
|
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
|
102
|
-
- -
|
|
102
|
+
- - ">="
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
106
|
rubyforge_project:
|
|
107
|
-
rubygems_version: 2.
|
|
107
|
+
rubygems_version: 2.2.2
|
|
108
108
|
signing_key:
|
|
109
109
|
specification_version: 4
|
|
110
110
|
summary: Upload a file to slack
|