ruboty-rin_chan 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.idea/ruboty-rin_chan.iml +4 -0
- data/.idea/workspace.xml +65 -41
- data/lib/ruboty/handlers/rin_chan.rb +1 -1
- data/lib/ruboty/rin_chan/actions/rin_chan.rb +13 -2
- data/lib/ruboty/rin_chan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f0ff106d6ca6fdabf081f019f53c2265e909a7b
|
4
|
+
data.tar.gz: 3eba9187a4d9f53d6874d6091fa7519d92152e41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 845c392cf85aebf38837a996df04b50593fcdb02095eb6273aa178f4de46057ebdead9674115599f92bd7e76683d0c8b65d444950a7db7ab65c5d8e62ca14351
|
7
|
+
data.tar.gz: c38538aad556ad9ea7f8cda514994423808eb0defad3d7234e0334b44c7a10fd78c100fc0ef0dfdbc7ad4d4bf8e0dc0cb91d18cc828e91f31c4fdd7598056b52
|
data/.gitignore
CHANGED
data/.idea/ruboty-rin_chan.iml
CHANGED
@@ -13,5 +13,9 @@
|
|
13
13
|
<content url="file://$MODULE_DIR$" />
|
14
14
|
<orderEntry type="inheritedJdk" />
|
15
15
|
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v4.2.0, rbenv: 1.9.3-p551) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.7.0, rbenv: 1.9.3-p551) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.4, rbenv: 1.9.3-p551) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, rbenv: 1.9.3-p551) [gem]" level="application" />
|
16
20
|
</component>
|
17
21
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -24,11 +24,31 @@
|
|
24
24
|
</component>
|
25
25
|
<component name="FileEditorManager">
|
26
26
|
<leaf>
|
27
|
-
<file leaf-file-name="rin_chan.rb" pinned="false" current-in-tab="
|
27
|
+
<file leaf-file-name="rin_chan.rb" pinned="false" current-in-tab="false">
|
28
28
|
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan/actions/rin_chan.rb">
|
29
29
|
<provider selected="true" editor-type-id="text-editor">
|
30
|
-
<state vertical-scroll-proportion="0.
|
31
|
-
<caret line="
|
30
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="435">
|
31
|
+
<caret line="16" column="33" selection-start-line="16" selection-start-column="33" selection-end-line="16" selection-end-column="33" />
|
32
|
+
<folding />
|
33
|
+
</state>
|
34
|
+
</provider>
|
35
|
+
</entry>
|
36
|
+
</file>
|
37
|
+
<file leaf-file-name="rin_chan.rb" pinned="false" current-in-tab="false">
|
38
|
+
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan.rb">
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
40
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="210">
|
41
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
42
|
+
<folding />
|
43
|
+
</state>
|
44
|
+
</provider>
|
45
|
+
</entry>
|
46
|
+
</file>
|
47
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
48
|
+
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan/version.rb">
|
49
|
+
<provider selected="true" editor-type-id="text-editor">
|
50
|
+
<state vertical-scroll-proportion="0.037220843" vertical-offset="0" max-vertical-offset="806">
|
51
|
+
<caret line="2" column="18" selection-start-line="2" selection-start-column="18" selection-end-line="2" selection-end-column="18" />
|
32
52
|
<folding />
|
33
53
|
</state>
|
34
54
|
</provider>
|
@@ -38,7 +58,7 @@
|
|
38
58
|
<entry file="file://$PROJECT_DIR$/lib/ruboty/handlers/rin_chan.rb">
|
39
59
|
<provider selected="true" editor-type-id="text-editor">
|
40
60
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="285">
|
41
|
-
<caret line="
|
61
|
+
<caret line="7" column="21" selection-start-line="7" selection-start-column="21" selection-end-line="7" selection-end-column="21" />
|
42
62
|
<folding />
|
43
63
|
</state>
|
44
64
|
</provider>
|
@@ -53,6 +73,8 @@
|
|
53
73
|
<option name="CHANGED_PATHS">
|
54
74
|
<list>
|
55
75
|
<option value="$PROJECT_DIR$/lib/ruboty/rin_chan/actions/rin_chan.rb" />
|
76
|
+
<option value="$PROJECT_DIR$/lib/ruboty/handlers/rin_chan.rb" />
|
77
|
+
<option value="$PROJECT_DIR$/lib/ruboty/rin_chan/version.rb" />
|
56
78
|
</list>
|
57
79
|
</option>
|
58
80
|
</component>
|
@@ -88,6 +110,7 @@
|
|
88
110
|
<sortByType />
|
89
111
|
</navigator>
|
90
112
|
<panes>
|
113
|
+
<pane id="Scope" />
|
91
114
|
<pane id="ProjectPane">
|
92
115
|
<subPane>
|
93
116
|
<PATH>
|
@@ -172,28 +195,6 @@
|
|
172
195
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
173
196
|
</PATH_ELEMENT>
|
174
197
|
</PATH>
|
175
|
-
<PATH>
|
176
|
-
<PATH_ELEMENT>
|
177
|
-
<option name="myItemId" value="ruboty-rin_chan" />
|
178
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
179
|
-
</PATH_ELEMENT>
|
180
|
-
<PATH_ELEMENT>
|
181
|
-
<option name="myItemId" value="ruboty-rin_chan" />
|
182
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
183
|
-
</PATH_ELEMENT>
|
184
|
-
<PATH_ELEMENT>
|
185
|
-
<option name="myItemId" value="lib" />
|
186
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
187
|
-
</PATH_ELEMENT>
|
188
|
-
<PATH_ELEMENT>
|
189
|
-
<option name="myItemId" value="ruboty" />
|
190
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
191
|
-
</PATH_ELEMENT>
|
192
|
-
<PATH_ELEMENT>
|
193
|
-
<option name="myItemId" value="handlers" />
|
194
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
195
|
-
</PATH_ELEMENT>
|
196
|
-
</PATH>
|
197
198
|
<PATH>
|
198
199
|
<PATH_ELEMENT>
|
199
200
|
<option name="myItemId" value="ruboty-rin_chan" />
|
@@ -210,7 +211,6 @@
|
|
210
211
|
</PATH>
|
211
212
|
</subPane>
|
212
213
|
</pane>
|
213
|
-
<pane id="Scope" />
|
214
214
|
</panes>
|
215
215
|
</component>
|
216
216
|
<component name="PropertiesComponent">
|
@@ -236,25 +236,25 @@
|
|
236
236
|
</component>
|
237
237
|
<component name="ToolWindowManager">
|
238
238
|
<frame x="722" y="23" width="718" height="877" extended-state="0" />
|
239
|
-
<editor active="
|
239
|
+
<editor active="true" />
|
240
240
|
<layout>
|
241
|
-
<window_info id="
|
242
|
-
<window_info id="
|
243
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
241
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
242
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
244
243
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
245
|
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
244
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
246
245
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
247
|
-
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
246
|
+
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
248
247
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24930362" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
249
|
-
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
250
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
251
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
248
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
249
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
250
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
252
251
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
253
252
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
254
253
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
255
254
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
256
|
-
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
257
255
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
256
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3297362" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
257
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
258
258
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
259
259
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
260
260
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
@@ -281,14 +281,38 @@
|
|
281
281
|
<watches-manager />
|
282
282
|
</component>
|
283
283
|
<component name="editorHistoryManager">
|
284
|
+
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan/actions/rin_chan.rb">
|
285
|
+
<provider selected="true" editor-type-id="text-editor">
|
286
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="270">
|
287
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
288
|
+
<folding />
|
289
|
+
</state>
|
290
|
+
</provider>
|
291
|
+
</entry>
|
284
292
|
<entry file="file://$PROJECT_DIR$/lib/ruboty/handlers/rin_chan.rb">
|
285
293
|
<provider selected="true" editor-type-id="text-editor">
|
286
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
294
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="285">
|
287
295
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
288
296
|
<folding />
|
289
297
|
</state>
|
290
298
|
</provider>
|
291
299
|
</entry>
|
300
|
+
<entry file="file://$PROJECT_DIR$/lib/ruboty/handlers/rin_chan.rb">
|
301
|
+
<provider selected="true" editor-type-id="text-editor">
|
302
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="285">
|
303
|
+
<caret line="7" column="21" selection-start-line="7" selection-start-column="21" selection-end-line="7" selection-end-column="21" />
|
304
|
+
<folding />
|
305
|
+
</state>
|
306
|
+
</provider>
|
307
|
+
</entry>
|
308
|
+
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan/actions/rin_chan.rb">
|
309
|
+
<provider selected="true" editor-type-id="text-editor">
|
310
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="435">
|
311
|
+
<caret line="16" column="33" selection-start-line="16" selection-start-column="33" selection-end-line="16" selection-end-column="33" />
|
312
|
+
<folding />
|
313
|
+
</state>
|
314
|
+
</provider>
|
315
|
+
</entry>
|
292
316
|
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan.rb">
|
293
317
|
<provider selected="true" editor-type-id="text-editor">
|
294
318
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="531">
|
@@ -297,10 +321,10 @@
|
|
297
321
|
</state>
|
298
322
|
</provider>
|
299
323
|
</entry>
|
300
|
-
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan/
|
324
|
+
<entry file="file://$PROJECT_DIR$/lib/ruboty/rin_chan/version.rb">
|
301
325
|
<provider selected="true" editor-type-id="text-editor">
|
302
|
-
<state vertical-scroll-proportion="0.
|
303
|
-
<caret line="
|
326
|
+
<state vertical-scroll-proportion="0.037220843" vertical-offset="0" max-vertical-offset="806">
|
327
|
+
<caret line="2" column="18" selection-start-line="2" selection-start-column="18" selection-end-line="2" selection-end-column="18" />
|
304
328
|
<folding />
|
305
329
|
</state>
|
306
330
|
</provider>
|
@@ -3,7 +3,7 @@ require "ruboty/rin_chan/actions/rin_chan"
|
|
3
3
|
module Ruboty
|
4
4
|
module Handlers
|
5
5
|
class RinChan < Base
|
6
|
-
on /
|
6
|
+
on /(hi|hello)/i, name: 'rin_chan', description: 'react to hi or hello'
|
7
7
|
|
8
8
|
def rin_chan(message)
|
9
9
|
Ruboty::RinChan::Actions::RinChan.new(message).call
|
@@ -2,9 +2,20 @@ module Ruboty
|
|
2
2
|
module RinChan
|
3
3
|
module Actions
|
4
4
|
class RinChan < Ruboty::Actions::Base
|
5
|
-
|
5
|
+
@@serifs = ["なんのごようだニャ〜?",
|
6
|
+
"やっほ〜!",
|
7
|
+
"いまは、忙しいニャ!",
|
8
|
+
"うみちゃんは怖いニャ…",
|
9
|
+
"かよちんはかわいいニャ!",
|
10
|
+
"今はりんのイベント中だよ〜!",
|
11
|
+
"魚は苦手だニャ…",
|
12
|
+
"ナニソレイミワカンナイ",
|
13
|
+
"オコトワリシマス!",
|
14
|
+
"仕事に戻るニャー!!",
|
15
|
+
"おつかれさまニャ!",]
|
6
16
|
def call
|
7
|
-
|
17
|
+
@serif = @@serifs.shuffle
|
18
|
+
message.reply(@serif[0])
|
8
19
|
end
|
9
20
|
end
|
10
21
|
end
|