slack-rtm-bot-helper 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/slack-rtm-bot-helper/helper.rb +2 -2
- data/lib/slack-rtm-bot-helper/version.rb +1 -1
- data/slack-rtm-bot-helper.gemspec +0 -1
- metadata +2 -18
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5db6fe4f1bcffd16097cc3efd9ae4c3f476e2f01
|
4
|
+
data.tar.gz: 5d8062090bd254d1befe5c10c4becbdca356ca3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96fd89d7df065454df2a1831e6495363dba20f2abb43d9f23285f68beb2860e52b5339e328d286a27e91875c1f9401ba788adf5bb94130d3c9c52ffd6dc7da11
|
7
|
+
data.tar.gz: 3092b411bf904edba57174093c9ffa1f50352cf690eab297673b242761ad5af53907852a24a569226468f039e3338968778b76579e5726265b8655a7d3bb5628
|
data/.gitignore
CHANGED
@@ -52,14 +52,14 @@ module Slack
|
|
52
52
|
data = ::JSON.parse(msg.data)
|
53
53
|
close if data.empty?
|
54
54
|
|
55
|
-
helper.channel ||= data['channel']
|
56
55
|
msg = helper.message_block.call(data) if !data['text'].empty?
|
57
56
|
|
58
57
|
if !msg.nil? && !msg.empty?
|
58
|
+
target_ch = helper.channel || data['channel']
|
59
59
|
msg_json = {
|
60
60
|
id: helper.id,
|
61
61
|
type: 'message',
|
62
|
-
channel:
|
62
|
+
channel: target_ch,
|
63
63
|
text: msg
|
64
64
|
}.to_json
|
65
65
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-rtm-bot-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- littlekbt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
description:
|
98
84
|
email:
|
99
85
|
- kr.kubota.11@gmail.com
|
@@ -108,8 +94,6 @@ files:
|
|
108
94
|
- LICENSE.txt
|
109
95
|
- README.md
|
110
96
|
- Rakefile
|
111
|
-
- bin/console
|
112
|
-
- bin/setup
|
113
97
|
- lib/slack-rtm-bot-helper.rb
|
114
98
|
- lib/slack-rtm-bot-helper/helper.rb
|
115
99
|
- lib/slack-rtm-bot-helper/version.rb
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "slack-rtm-bot-helper"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
require "pry"
|
11
|
-
Pry.start
|
12
|
-
|
13
|
-
# require "irb"
|
14
|
-
# IRB.start(__FILE__)
|