ruboty-dmm 0.0.3 → 0.0.4
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/CHANGELOG.md +7 -2
- data/Gemfile.lock +1 -1
- data/README.md +7 -7
- data/doc/ja/README.md +5 -5
- data/lib/ruboty/dmm/actions/messenger.rb +2 -2
- data/lib/ruboty/dmm/ranking.rb +1 -1
- data/lib/ruboty/dmm/version.rb +1 -1
- data/spec/ruboty/dmm/ranking_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e505b94b8376f49d0f95673a28555ef61233591c
|
4
|
+
data.tar.gz: c6aab02be506d8cfe8eb7939fa26e1ed9c0da765
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30f6cb11d2f90a7382359d7b937fd573e36d41794fb56d64d4561564ca8d9f146b9cae0607a1d14a177a4a80b92c28beff3380ff2efa731700043b9423ba2a81
|
7
|
+
data.tar.gz: 968096c59894deb746e33af93b85c058e83ae91b67fe533873eda98fd0d00e5ff6bb3dc82a62e49da15a7b3a2130d8dc670970bb2952628a6eeaed6fecb0fe6b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
# v0.0.
|
2
|
-
-
|
1
|
+
# v0.0.4
|
2
|
+
- Fix a sentence `"#{term}の本日のランキングです。"` -> `"#{term}のランキングです。"`.
|
3
|
+
- Add periods to at the end of the sentence.
|
4
|
+
- Rename a method from `call` to `books`.
|
5
|
+
|
6
|
+
# v0.0.3
|
7
|
+
- Correct READMEs.
|
3
8
|
- Add an example needed for each rank.
|
4
9
|
|
5
10
|
## Breaking changes
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
# Ruboty DMM
|
4
4
|
|
5
5
|
## What is Ruboty DMM
|
6
|
-
Ruboty DMM is a notifying rankings for DMM.R18's Japanese
|
6
|
+
Ruboty DMM is a notifying rankings for DMM.R18's Japanese adult contents on Slack.
|
7
7
|
|
8
8
|
## Installation
|
9
|
-
On your gemfile
|
9
|
+
On your gemfile.
|
10
10
|
|
11
11
|
```
|
12
12
|
gem 'ruboty-dmm'
|
13
13
|
```
|
14
14
|
|
15
15
|
## Usage
|
16
|
-
From the bot in invited Slack's room
|
16
|
+
From the bot in invited Slack's room.
|
17
17
|
|
18
18
|
### 1. Show the 24's ranking
|
19
19
|
|
@@ -25,9 +25,9 @@ From the bot in invited Slack's room:
|
|
25
25
|
For example, Above command will notify the doujin cg 24's ranking.
|
26
26
|
|
27
27
|
### Available arguments
|
28
|
-
- The first argument is only available for dmm
|
29
|
-
- The second argument is available for all, comic, cg, game, voice
|
30
|
-
- The third argument is available for 24, weekly, monthly, total
|
28
|
+
- The first argument is only available for `dmm`.
|
29
|
+
- The second argument is available for `all, comic, cg, game, voice`.
|
30
|
+
- The third argument is available for `24, weekly, monthly, total`.
|
31
31
|
|
32
32
|
### 2. Register a job by ruboty-cron
|
33
33
|
Add ruboty-cron to your bot's Gemfile.
|
@@ -46,7 +46,7 @@ Notify the 24-hour ranking for CG genre at every 9 pm.
|
|
46
46
|
|
47
47
|
|
48
48
|
## Thanks
|
49
|
-
Thanks for creating awesome gems
|
49
|
+
Thanks for creating awesome gems.
|
50
50
|
|
51
51
|
- [r7kamura/ruboty](https://github.com/r7kamura/ruboty)
|
52
52
|
- [r7kamura/ruboty-cron](https://github.com/r7kamura/ruboty-cron)
|
data/doc/ja/README.md
CHANGED
@@ -14,7 +14,7 @@ gem 'ruboty-dmm'
|
|
14
14
|
```
|
15
15
|
|
16
16
|
## 使い方
|
17
|
-
ボットを招待しているSlack
|
17
|
+
ボットを招待しているSlackの部屋にて以下を実行します。
|
18
18
|
|
19
19
|
### 1. 24時間ランキングの表示の仕方
|
20
20
|
|
@@ -27,8 +27,8 @@ gem 'ruboty-dmm'
|
|
27
27
|
|
28
28
|
### 仕様可能な引数
|
29
29
|
- 最初の引数はdmmのみ利用可能です。
|
30
|
-
-
|
31
|
-
-
|
30
|
+
- 二個目の引数は`all, comic, cg, game, voice`のみ利用可能です。
|
31
|
+
- 三個目の引数は`24, weekly, monthly, total`のみ利用可能です。
|
32
32
|
|
33
33
|
|
34
34
|
### 2. ruboty-cronを使い、特定の時間に通知する
|
@@ -38,7 +38,7 @@ ruboty-cronを追加します。
|
|
38
38
|
gem 'ruboty-cron'
|
39
39
|
```
|
40
40
|
|
41
|
-
deploy
|
41
|
+
deploy後、タスクを登録します。
|
42
42
|
|
43
43
|
```
|
44
44
|
@ruboty add job "0 21 * * *" @ruboty dmm cg 24
|
@@ -47,7 +47,7 @@ deploy後タスクを登録します。
|
|
47
47
|
ruboty-cronを使ってCGジャンルのランキングを毎日9時に通知することが出来ます。
|
48
48
|
|
49
49
|
## 謝辞
|
50
|
-
ruboty, ruboty-cronを作ってくれた[r7kamura氏](https://github.com/r7kamura)
|
50
|
+
ruboty, ruboty-cronを作ってくれた[r7kamura氏](https://github.com/r7kamura)に感謝。
|
51
51
|
|
52
52
|
- [r7kamura/ruboty](https://github.com/r7kamura/ruboty)
|
53
53
|
- [r7kamura/ruboty-cron](https://github.com/r7kamura/ruboty-cron)
|
@@ -3,9 +3,9 @@ module Ruboty
|
|
3
3
|
module Actions
|
4
4
|
class Messenger < Ruboty::Actions::Base
|
5
5
|
def call
|
6
|
-
attachments = Ruboty::DMM::Ranking.new(submedia: message.match_data[:submedia], term: message.match_data[:term]).
|
6
|
+
attachments = Ruboty::DMM::Ranking.new(submedia: message.match_data[:submedia], term: message.match_data[:term]).books
|
7
7
|
term = term_converter(message.match_data[:term])
|
8
|
-
message.reply("#{term}
|
8
|
+
message.reply("#{term}のランキングです。", attachments: attachments)
|
9
9
|
rescue => exception
|
10
10
|
message.reply("Failed by #{exception.class}")
|
11
11
|
end
|
data/lib/ruboty/dmm/ranking.rb
CHANGED
data/lib/ruboty/dmm/version.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
describe Ruboty::DMM::Ranking do
|
2
|
-
let(:attachments) { described_class.new(arguments).
|
2
|
+
let(:attachments) { described_class.new(arguments).books }
|
3
3
|
|
4
4
|
let(:submedia) { 'cg' }
|
5
5
|
let(:arguments) { { submedia: submedia, term: term } }
|
6
6
|
|
7
|
-
describe '#
|
7
|
+
describe '#books' do
|
8
8
|
context 'with 24 argument' do
|
9
9
|
subject { attachments }
|
10
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-dmm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Satoshi Ohmori
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruboty
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.6.
|
158
|
+
rubygems_version: 2.6.11
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: A bot for DMM R18's rankings
|