ruboty-dmm 0.0.3 → 0.0.4

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: a8eb0d93dcba3e0825cf3ce4392da8190b24b9d6
4
- data.tar.gz: 8c7ee10f8d1a0ce550f3a985492dd988c9315598
3
+ metadata.gz: e505b94b8376f49d0f95673a28555ef61233591c
4
+ data.tar.gz: c6aab02be506d8cfe8eb7939fa26e1ed9c0da765
5
5
  SHA512:
6
- metadata.gz: c9fcc39e3f8296f07d9f3c46b01a732d6a2b810ade055a43238536fa767e6d5c5c842711855545cab2fbcb51b2a0b9f4c3aec9619c2255160ba31815a53043c9
7
- data.tar.gz: d767603ed172abe30be1bed464dd922027122f80437022463e8c698350dd4e735139c1f89d65d1b82de03b4a27452622286e15d60c7e37db8b4a445d41420efb
6
+ metadata.gz: 30f6cb11d2f90a7382359d7b937fd573e36d41794fb56d64d4561564ca8d9f146b9cae0607a1d14a177a4a80b92c28beff3380ff2efa731700043b9423ba2a81
7
+ data.tar.gz: 968096c59894deb746e33af93b85c058e83ae91b67fe533873eda98fd0d00e5ff6bb3dc82a62e49da15a7b3a2130d8dc670970bb2952628a6eeaed6fecb0fe6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
- # v0.0.3 (Unreleased)
2
- - Correct READMEs
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruboty-dmm (0.0.3)
4
+ ruboty-dmm (0.0.4)
5
5
  mechanize
6
6
  ruboty
7
7
 
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 doujin CG on Slack.
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
- - 二個目の引数はall, comic, cg, game, voiceのみ利用可能です。
31
- - 三個目の引数は24, weekly, monthly, totalのみ利用可能です。
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]).call
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}の本日のランキングです。", attachments: attachments)
8
+ message.reply("#{term}のランキングです。", attachments: attachments)
9
9
  rescue => exception
10
10
  message.reply("Failed by #{exception.class}")
11
11
  end
@@ -11,7 +11,7 @@ module Ruboty
11
11
  @agent = Agent.new.agent
12
12
  end
13
13
 
14
- def call
14
+ def books
15
15
  books = page.search('.rank-rankListItem.fn-setPurchaseChange').map do |element|
16
16
  [
17
17
  element.search('.rank-name').first.text.strip,
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module DMM
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
5
5
  end
@@ -1,10 +1,10 @@
1
1
  describe Ruboty::DMM::Ranking do
2
- let(:attachments) { described_class.new(arguments).call }
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 '#call' do
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.3
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-03-20 00:00:00.000000000 Z
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.10
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