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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1d85e8d15216cc6b9f271093d52f9c5a2f68070
4
- data.tar.gz: 7a27ca35c846a6d78ccb04af1183da2ebbe1e537
3
+ metadata.gz: 5db6fe4f1bcffd16097cc3efd9ae4c3f476e2f01
4
+ data.tar.gz: 5d8062090bd254d1befe5c10c4becbdca356ca3d
5
5
  SHA512:
6
- metadata.gz: 16ea8d6b577aff3e237007ec5f96aaaf9093de3309a64c36ee2ad96887d2785c61b45f2bb4bfac9ea09d4987bf293643bb96ac8d90f9737ee819d3530c0d0ea4
7
- data.tar.gz: 7e03dd79a1a423c96272478e9216dd80264055c604373a9f148d9862ab152e19d6d6af17673de29c0ed6aa2922b45e5669923d6112d4c3701a2530194a57eb32
6
+ metadata.gz: 96fd89d7df065454df2a1831e6495363dba20f2abb43d9f23285f68beb2860e52b5339e328d286a27e91875c1f9401ba788adf5bb94130d3c9c52ffd6dc7da11
7
+ data.tar.gz: 3092b411bf904edba57174093c9ffa1f50352cf690eab297673b242761ad5af53907852a24a569226468f039e3338968778b76579e5726265b8655a7d3bb5628
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /bin/
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
@@ -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: helper.channel,
62
+ channel: target_ch,
63
63
  text: msg
64
64
  }.to_json
65
65
 
@@ -2,7 +2,7 @@ module Slack
2
2
  module Rtm
3
3
  module Bot
4
4
  class Helper
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
8
8
  end
@@ -35,5 +35,4 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "bundler", "~> 1.15"
36
36
  spec.add_development_dependency "rake", "~> 10.0"
37
37
  spec.add_development_dependency "rspec", "~> 3.0"
38
- spec.add_development_dependency "pry"
39
38
  end
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.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-17 00:00:00.000000000 Z
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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here