ruboty-idobata 0.0.6 → 0.0.7

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: 8a6c3daebc406d8907b34a6025689e7dcef38a14
4
- data.tar.gz: 64873f0cb8d88ebfba524e381ea360464614cfa6
3
+ metadata.gz: 0e0dd8581b5cd8b7ab1411cb387249a534af3ef8
4
+ data.tar.gz: 148bb5d95e57c130caed079b77a33723dce0cfa1
5
5
  SHA512:
6
- metadata.gz: dfd7c55b85a6047196f3dd712e333701bf2df409ef4ccc22c0ed4bcdbc5bb74f5941ce632dbe54db93066373b0692a95f4586a6da61045b62bb0da32b16a5c0f
7
- data.tar.gz: ef8e41e5f28b0db84b60f7ea508f4b1b0533036bba210bd8cd175c220a28f1bf14f7ead2fa9ef578f0ae3a1172538fca0fe17f57ebbf4ac08f67d8c8a495bb78
6
+ metadata.gz: 07b6e79cd8b4e361955c6a4547ae2a2297d61ff46b6f0d6306fc07e60068a24174e2083545f636138b10ff77356174704e3c0990464c384bd63f6f0b76d95968
7
+ data.tar.gz: 5c1efdad43cbf66ccd8bb086e11721c8fcbc0bee0182c49cd4d9f1975c3ab7d7e05e9323f6ccaaee9c05ce21f881b592393ef7afc7cdde163d4de2c49c0ba5d5
data/README.md CHANGED
@@ -24,7 +24,7 @@ gem 'ruboty-idobata'
24
24
 
25
25
  ## Screenshot
26
26
 
27
- ![](https://raw.githubusercontent.com/yasslab/ruboty-idobata/master/images/screenshot.png)
27
+ ![SS](https://raw.githubusercontent.com/yasslab/ruboty-idobata/master/images/screenshot.png)
28
28
 
29
29
  Notice: _The default robot name is `ruboty`, so if you want to use another name(e.x. `ellen`), you must be set `ROBOT_NAME` environment variable._
30
30
 
@@ -40,4 +40,6 @@ Notice: _The default robot name is `ruboty`, so if you want to use another name(
40
40
 
41
41
  Copyright © 2014-2015 [YassLab](http://yasslab.jp)
42
42
 
43
+ [![YassLab Logo](https://dl.dropboxusercontent.com/u/2819285/yasslab_logo_copy.png)](http://yasslab.jp)
44
+
43
45
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -25,7 +25,11 @@ module Ruboty
25
25
  def say(message)
26
26
  pp message
27
27
  req = Net::HTTP::Post.new(idobata_messages_url.path, headers)
28
- req.form_data = { 'message[room_id]' => message[:original][:room_id], 'message[source]' => message[:body], 'message[format]' => 'markdown' }
28
+ req.form_data = {
29
+ 'message[room_id]' => message[:original][:room_id],
30
+ 'message[source]' => message[:code] ? "```\n#{message[:body]}\n```" : message[:body],
31
+ 'message[format]' => 'markdown'
32
+ }
29
33
  https = Net::HTTP.new(idobata_messages_url.host, idobata_messages_url.port)
30
34
  https.use_ssl = true
31
35
  https.start {|https| https.request(req) }
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Idobata
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Seiei Higa"]
10
10
  spec.email = ["hanachin@gmail.com"]
11
11
  spec.summary = %q{Idobata adapter for Ruboty.}
12
- spec.homepage = "https://github.com/hanachin/ruboty-idobata"
12
+ spec.homepage = "https://github.com/yasslab/ruboty-idobata"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-idobata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiei Higa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty
@@ -83,7 +83,7 @@ files:
83
83
  - lib/ruboty/idobata.rb
84
84
  - lib/ruboty/idobata/version.rb
85
85
  - ruboty-idobata.gemspec
86
- homepage: https://github.com/hanachin/ruboty-idobata
86
+ homepage: https://github.com/yasslab/ruboty-idobata
87
87
  licenses:
88
88
  - MIT
89
89
  metadata: {}
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.4.5.1
106
+ rubygems_version: 2.6.11
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Idobata adapter for Ruboty.