ruboty-idobata 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE.txt → LICENSE.md} +2 -2
- data/README.md +9 -3
- data/lib/ruboty/adapters/idobata.rb +1 -1
- data/lib/ruboty/idobata/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a6c3daebc406d8907b34a6025689e7dcef38a14
|
4
|
+
data.tar.gz: 64873f0cb8d88ebfba524e381ea360464614cfa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfd7c55b85a6047196f3dd712e333701bf2df409ef4ccc22c0ed4bcdbc5bb74f5941ce632dbe54db93066373b0692a95f4586a6da61045b62bb0da32b16a5c0f
|
7
|
+
data.tar.gz: ef8e41e5f28b0db84b60f7ea508f4b1b0533036bba210bd8cd175c220a28f1bf14f7ead2fa9ef578f0ae3a1172538fca0fe17f57ebbf4ac08f67d8c8a495bb78
|
data/{LICENSE.txt → LICENSE.md}
RENAMED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Ruboty::Idobata
|
2
2
|
|
3
3
|
Idobata adapter for [Ruboty](https://github.com/r7kamura/ruboty).
|
4
|
+
ruboty-idobata requires Ruby 2.1 or later.
|
4
5
|
|
5
6
|
## Usage
|
6
7
|
Get your idobata bots api token
|
@@ -10,7 +11,6 @@ Get your idobata bots api token
|
|
10
11
|
|
11
12
|
``` ruby
|
12
13
|
# Gemfile
|
13
|
-
ruby '2.1.2'
|
14
14
|
gem 'ruboty-idobata'
|
15
15
|
```
|
16
16
|
|
@@ -24,14 +24,20 @@ gem 'ruboty-idobata'
|
|
24
24
|
|
25
25
|
## Screenshot
|
26
26
|
|
27
|
-
![](https://raw.githubusercontent.com/
|
27
|
+
![](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
|
|
31
31
|
## Contributing
|
32
32
|
|
33
|
-
1. Fork it ( http://github.com/
|
33
|
+
1. Fork it ( http://github.com/yasslab/ruboty-idobata/fork )
|
34
34
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
35
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
36
36
|
4. Push to the branch (`git push origin my-new-feature`)
|
37
37
|
5. Create new Pull Request
|
38
|
+
|
39
|
+
## License
|
40
|
+
|
41
|
+
Copyright © 2014-2015 [YassLab](http://yasslab.jp)
|
42
|
+
|
43
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
@@ -25,7 +25,7 @@ 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] }
|
28
|
+
req.form_data = { 'message[room_id]' => message[:original][:room_id], 'message[source]' => message[:body], 'message[format]' => 'markdown' }
|
29
29
|
https = Net::HTTP.new(idobata_messages_url.host, idobata_messages_url.port)
|
30
30
|
https.use_ssl = true
|
31
31
|
https.start {|https| https.request(req) }
|
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.
|
4
|
+
version: 0.0.6
|
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
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruboty
|
@@ -75,7 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- Gemfile
|
78
|
-
- LICENSE.
|
78
|
+
- LICENSE.md
|
79
79
|
- README.md
|
80
80
|
- Rakefile
|
81
81
|
- images/screenshot.png
|
@@ -103,9 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.4.5
|
106
|
+
rubygems_version: 2.4.5.1
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Idobata adapter for Ruboty.
|
110
110
|
test_files: []
|
111
|
-
has_rdoc:
|