get_out 0.0.1 → 0.0.2
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.
- data/README.md +5 -0
- data/docs/docco.css +186 -0
- data/docs/index.html +92 -0
- data/get_out.gemspec +3 -1
- data/lib/get_out/version.rb +1 -1
- data/lib/get_out.rb +1 -4
- metadata +8 -6
data/README.md
CHANGED
data/docs/docco.css
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
/*--------------------- Layout and Typography ----------------------------*/
|
2
|
+
body {
|
3
|
+
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
|
4
|
+
font-size: 15px;
|
5
|
+
line-height: 22px;
|
6
|
+
color: #252519;
|
7
|
+
margin: 0; padding: 0;
|
8
|
+
}
|
9
|
+
a {
|
10
|
+
color: #261a3b;
|
11
|
+
}
|
12
|
+
a:visited {
|
13
|
+
color: #261a3b;
|
14
|
+
}
|
15
|
+
p {
|
16
|
+
margin: 0 0 15px 0;
|
17
|
+
}
|
18
|
+
h1, h2, h3, h4, h5, h6 {
|
19
|
+
margin: 0px 0 15px 0;
|
20
|
+
}
|
21
|
+
h1 {
|
22
|
+
margin-top: 40px;
|
23
|
+
}
|
24
|
+
#container {
|
25
|
+
position: relative;
|
26
|
+
}
|
27
|
+
#background {
|
28
|
+
position: fixed;
|
29
|
+
top: 0; left: 525px; right: 0; bottom: 0;
|
30
|
+
background: #f5f5ff;
|
31
|
+
border-left: 1px solid #e5e5ee;
|
32
|
+
z-index: -1;
|
33
|
+
}
|
34
|
+
#jump_to, #jump_page {
|
35
|
+
background: white;
|
36
|
+
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
|
37
|
+
-webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px;
|
38
|
+
font: 10px Arial;
|
39
|
+
text-transform: uppercase;
|
40
|
+
cursor: pointer;
|
41
|
+
text-align: right;
|
42
|
+
}
|
43
|
+
#jump_to, #jump_wrapper {
|
44
|
+
position: fixed;
|
45
|
+
right: 0; top: 0;
|
46
|
+
padding: 5px 10px;
|
47
|
+
}
|
48
|
+
#jump_wrapper {
|
49
|
+
padding: 0;
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
#jump_to:hover #jump_wrapper {
|
53
|
+
display: block;
|
54
|
+
}
|
55
|
+
#jump_page {
|
56
|
+
padding: 5px 0 3px;
|
57
|
+
margin: 0 0 25px 25px;
|
58
|
+
}
|
59
|
+
#jump_page .source {
|
60
|
+
display: block;
|
61
|
+
padding: 5px 10px;
|
62
|
+
text-decoration: none;
|
63
|
+
border-top: 1px solid #eee;
|
64
|
+
}
|
65
|
+
#jump_page .source:hover {
|
66
|
+
background: #f5f5ff;
|
67
|
+
}
|
68
|
+
#jump_page .source:first-child {
|
69
|
+
}
|
70
|
+
table td {
|
71
|
+
border: 0;
|
72
|
+
outline: 0;
|
73
|
+
}
|
74
|
+
td.docs, th.docs {
|
75
|
+
max-width: 450px;
|
76
|
+
min-width: 450px;
|
77
|
+
min-height: 5px;
|
78
|
+
padding: 10px 25px 1px 50px;
|
79
|
+
overflow-x: hidden;
|
80
|
+
vertical-align: top;
|
81
|
+
text-align: left;
|
82
|
+
}
|
83
|
+
.docs pre {
|
84
|
+
margin: 15px 0 15px;
|
85
|
+
padding-left: 15px;
|
86
|
+
}
|
87
|
+
.docs p tt, .docs p code {
|
88
|
+
background: #f8f8ff;
|
89
|
+
border: 1px solid #dedede;
|
90
|
+
font-size: 12px;
|
91
|
+
padding: 0 0.2em;
|
92
|
+
}
|
93
|
+
.pilwrap {
|
94
|
+
position: relative;
|
95
|
+
}
|
96
|
+
.pilcrow {
|
97
|
+
font: 12px Arial;
|
98
|
+
text-decoration: none;
|
99
|
+
color: #454545;
|
100
|
+
position: absolute;
|
101
|
+
top: 3px; left: -20px;
|
102
|
+
padding: 1px 2px;
|
103
|
+
opacity: 0;
|
104
|
+
-webkit-transition: opacity 0.2s linear;
|
105
|
+
}
|
106
|
+
td.docs:hover .pilcrow {
|
107
|
+
opacity: 1;
|
108
|
+
}
|
109
|
+
td.code, th.code {
|
110
|
+
padding: 14px 15px 16px 25px;
|
111
|
+
width: 100%;
|
112
|
+
vertical-align: top;
|
113
|
+
background: #f5f5ff;
|
114
|
+
border-left: 1px solid #e5e5ee;
|
115
|
+
}
|
116
|
+
pre, tt, code {
|
117
|
+
font-size: 12px; line-height: 18px;
|
118
|
+
font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace;
|
119
|
+
margin: 0; padding: 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
/*---------------------- Syntax Highlighting -----------------------------*/
|
124
|
+
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
|
125
|
+
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
|
126
|
+
body .hll { background-color: #ffffcc }
|
127
|
+
body .c { color: #408080; font-style: italic } /* Comment */
|
128
|
+
body .err { border: 1px solid #FF0000 } /* Error */
|
129
|
+
body .k { color: #954121 } /* Keyword */
|
130
|
+
body .o { color: #666666 } /* Operator */
|
131
|
+
body .cm { color: #408080; font-style: italic } /* Comment.Multiline */
|
132
|
+
body .cp { color: #BC7A00 } /* Comment.Preproc */
|
133
|
+
body .c1 { color: #408080; font-style: italic } /* Comment.Single */
|
134
|
+
body .cs { color: #408080; font-style: italic } /* Comment.Special */
|
135
|
+
body .gd { color: #A00000 } /* Generic.Deleted */
|
136
|
+
body .ge { font-style: italic } /* Generic.Emph */
|
137
|
+
body .gr { color: #FF0000 } /* Generic.Error */
|
138
|
+
body .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
139
|
+
body .gi { color: #00A000 } /* Generic.Inserted */
|
140
|
+
body .go { color: #808080 } /* Generic.Output */
|
141
|
+
body .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
|
142
|
+
body .gs { font-weight: bold } /* Generic.Strong */
|
143
|
+
body .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
144
|
+
body .gt { color: #0040D0 } /* Generic.Traceback */
|
145
|
+
body .kc { color: #954121 } /* Keyword.Constant */
|
146
|
+
body .kd { color: #954121; font-weight: bold } /* Keyword.Declaration */
|
147
|
+
body .kn { color: #954121; font-weight: bold } /* Keyword.Namespace */
|
148
|
+
body .kp { color: #954121 } /* Keyword.Pseudo */
|
149
|
+
body .kr { color: #954121; font-weight: bold } /* Keyword.Reserved */
|
150
|
+
body .kt { color: #B00040 } /* Keyword.Type */
|
151
|
+
body .m { color: #666666 } /* Literal.Number */
|
152
|
+
body .s { color: #219161 } /* Literal.String */
|
153
|
+
body .na { color: #7D9029 } /* Name.Attribute */
|
154
|
+
body .nb { color: #954121 } /* Name.Builtin */
|
155
|
+
body .nc { color: #0000FF; font-weight: bold } /* Name.Class */
|
156
|
+
body .no { color: #880000 } /* Name.Constant */
|
157
|
+
body .nd { color: #AA22FF } /* Name.Decorator */
|
158
|
+
body .ni { color: #999999; font-weight: bold } /* Name.Entity */
|
159
|
+
body .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
|
160
|
+
body .nf { color: #0000FF } /* Name.Function */
|
161
|
+
body .nl { color: #A0A000 } /* Name.Label */
|
162
|
+
body .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
|
163
|
+
body .nt { color: #954121; font-weight: bold } /* Name.Tag */
|
164
|
+
body .nv { color: #19469D } /* Name.Variable */
|
165
|
+
body .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
|
166
|
+
body .w { color: #bbbbbb } /* Text.Whitespace */
|
167
|
+
body .mf { color: #666666 } /* Literal.Number.Float */
|
168
|
+
body .mh { color: #666666 } /* Literal.Number.Hex */
|
169
|
+
body .mi { color: #666666 } /* Literal.Number.Integer */
|
170
|
+
body .mo { color: #666666 } /* Literal.Number.Oct */
|
171
|
+
body .sb { color: #219161 } /* Literal.String.Backtick */
|
172
|
+
body .sc { color: #219161 } /* Literal.String.Char */
|
173
|
+
body .sd { color: #219161; font-style: italic } /* Literal.String.Doc */
|
174
|
+
body .s2 { color: #219161 } /* Literal.String.Double */
|
175
|
+
body .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
|
176
|
+
body .sh { color: #219161 } /* Literal.String.Heredoc */
|
177
|
+
body .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
|
178
|
+
body .sx { color: #954121 } /* Literal.String.Other */
|
179
|
+
body .sr { color: #BB6688 } /* Literal.String.Regex */
|
180
|
+
body .s1 { color: #219161 } /* Literal.String.Single */
|
181
|
+
body .ss { color: #19469D } /* Literal.String.Symbol */
|
182
|
+
body .bp { color: #954121 } /* Name.Builtin.Pseudo */
|
183
|
+
body .vc { color: #19469D } /* Name.Variable.Class */
|
184
|
+
body .vg { color: #19469D } /* Name.Variable.Global */
|
185
|
+
body .vi { color: #19469D } /* Name.Variable.Instance */
|
186
|
+
body .il { color: #666666 } /* Literal.Number.Integer.Long */
|
data/docs/index.html
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
5
|
+
<title>Get Out!</title>
|
6
|
+
<link rel="stylesheet" href="docco.css">
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<div id='container'>
|
10
|
+
<div id="background"></div>
|
11
|
+
<table cellspacing=0 cellpadding=0>
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th class=docs><h1>Get Out!</h1></th>
|
15
|
+
<th class=code></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<tr id='section-1'>
|
20
|
+
<td class=docs>
|
21
|
+
<div class="pilwrap">
|
22
|
+
<a class="pilcrow" href="#section-1">¶</a>
|
23
|
+
</div>
|
24
|
+
</td>
|
25
|
+
<td class=code>
|
26
|
+
<div class='highlight'><pre><span class="nb">require</span> <span class="s1">'cinch'</span>
|
27
|
+
|
28
|
+
<span class="k">module</span> <span class="nn">GetOut</span>
|
29
|
+
<span class="k">def</span> <span class="nc">self</span><span class="o">.</span><span class="nf">now!</span></pre></div>
|
30
|
+
</td>
|
31
|
+
</tr>
|
32
|
+
<tr id='section-2'>
|
33
|
+
<td class=docs>
|
34
|
+
<div class="pilwrap">
|
35
|
+
<a class="pilcrow" href="#section-2">¶</a>
|
36
|
+
</div>
|
37
|
+
<p>We are starting a new IRC bot.</p>
|
38
|
+
</td>
|
39
|
+
<td class=code>
|
40
|
+
<div class='highlight'><pre> <span class="n">bot</span> <span class="o">=</span> <span class="no">Cinch</span><span class="o">::</span><span class="no">Bot</span><span class="o">.</span><span class="n">new</span> <span class="k">do</span></pre></div>
|
41
|
+
</td>
|
42
|
+
</tr>
|
43
|
+
<tr id='section-3'>
|
44
|
+
<td class=docs>
|
45
|
+
<div class="pilwrap">
|
46
|
+
<a class="pilcrow" href="#section-3">¶</a>
|
47
|
+
</div>
|
48
|
+
<p>By default it will use irc.cservers.cz server
|
49
|
+
with Buh nick and will join #cservers channel.</p>
|
50
|
+
</td>
|
51
|
+
<td class=code>
|
52
|
+
<div class='highlight'><pre> <span class="n">configure</span> <span class="k">do</span> <span class="o">|</span><span class="n">c</span><span class="o">|</span>
|
53
|
+
<span class="n">c</span><span class="o">.</span><span class="n">server</span> <span class="o">=</span> <span class="s2">"irc.cservers.cz"</span>
|
54
|
+
<span class="n">c</span><span class="o">.</span><span class="n">nick</span> <span class="o">=</span> <span class="s2">"Buh"</span>
|
55
|
+
<span class="n">c</span><span class="o">.</span><span class="n">channels</span> <span class="o">=</span> <span class="o">[</span><span class="s2">"#cservers"</span><span class="o">]</span>
|
56
|
+
<span class="k">end</span></pre></div>
|
57
|
+
</td>
|
58
|
+
</tr>
|
59
|
+
<tr id='section-4'>
|
60
|
+
<td class=docs>
|
61
|
+
<div class="pilwrap">
|
62
|
+
<a class="pilcrow" href="#section-4">¶</a>
|
63
|
+
</div>
|
64
|
+
<p>When some types exactly “Prosím ať NICK strašně vypadne”
|
65
|
+
it will automaticaly respond into channel with message
|
66
|
+
“NICK: Strašně, ale strašně, vypadni!”
|
67
|
+
So that one lucky user will get notification.</p>
|
68
|
+
</td>
|
69
|
+
<td class=code>
|
70
|
+
<div class='highlight'><pre> <span class="n">on</span> <span class="ss">:message</span><span class="p">,</span><span class="sr"> /^Prosím, ať (.+?) strašně vypadne :\(/</span> <span class="k">do</span> <span class="o">|</span><span class="n">m</span><span class="p">,</span> <span class="n">who</span><span class="o">|</span>
|
71
|
+
<span class="n">m</span><span class="o">.</span><span class="n">reply</span> <span class="s2">"</span><span class="si">#{</span><span class="n">who</span><span class="si">}</span><span class="s2">: Strašně, ale strašně, vypadni!"</span>
|
72
|
+
<span class="k">end</span>
|
73
|
+
<span class="k">end</span></pre></div>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
<tr id='section-5'>
|
77
|
+
<td class=docs>
|
78
|
+
<div class="pilwrap">
|
79
|
+
<a class="pilcrow" href="#section-5">¶</a>
|
80
|
+
</div>
|
81
|
+
<p>Finally, we need to start this circus.</p>
|
82
|
+
|
83
|
+
</td>
|
84
|
+
<td class=code>
|
85
|
+
<div class='highlight'><pre> <span class="n">bot</span><span class="o">.</span><span class="n">start</span>
|
86
|
+
<span class="k">end</span>
|
87
|
+
<span class="k">end</span></pre></div>
|
88
|
+
</td>
|
89
|
+
</tr>
|
90
|
+
</table>
|
91
|
+
</div>
|
92
|
+
</body>
|
data/get_out.gemspec
CHANGED
@@ -7,10 +7,12 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = GetOut::VERSION
|
8
8
|
s.authors = ["Josef Šimánek"]
|
9
9
|
s.email = ["retro@ballgag.cz"]
|
10
|
-
s.homepage = "https://github.com/
|
10
|
+
s.homepage = "https://simi.github.com/get_out"
|
11
11
|
s.summary = %q{Simple get_out IRC bot}
|
12
12
|
s.description = %q{GET OUT, NOW!}
|
13
13
|
|
14
|
+
s.has_rdoc = false
|
15
|
+
|
14
16
|
s.files = `git ls-files`.split("\n")
|
15
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
data/lib/get_out/version.rb
CHANGED
data/lib/get_out.rb
CHANGED
@@ -3,17 +3,15 @@ require 'cinch'
|
|
3
3
|
|
4
4
|
module GetOut
|
5
5
|
def self.now!
|
6
|
-
|
7
6
|
# We are starting a new IRC bot.
|
8
7
|
bot = Cinch::Bot.new do
|
9
|
-
configure do |c|
|
10
8
|
# By default it will use irc.cservers.cz server
|
11
9
|
# with Buh nick and will join #cservers channel.
|
10
|
+
configure do |c|
|
12
11
|
c.server = "irc.cservers.cz"
|
13
12
|
c.nick = "Buh"
|
14
13
|
c.channels = ["#cservers"]
|
15
14
|
end
|
16
|
-
|
17
15
|
# When some types exactly "Prosím ať NICK strašně vypadne"
|
18
16
|
# it will automaticaly respond into channel with message
|
19
17
|
# "NICK: Strašně, ale strašně, vypadni!"
|
@@ -22,7 +20,6 @@ module GetOut
|
|
22
20
|
m.reply "#{who}: Strašně, ale strašně, vypadni!"
|
23
21
|
end
|
24
22
|
end
|
25
|
-
|
26
23
|
# Finally, we need to start this circus.
|
27
24
|
bot.start
|
28
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: get_out
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-16 00:00:00.
|
12
|
+
date: 2012-01-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cinch
|
16
|
-
requirement: &
|
16
|
+
requirement: &23776440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *23776440
|
25
25
|
description: GET OUT, NOW!
|
26
26
|
email:
|
27
27
|
- retro@ballgag.cz
|
@@ -35,10 +35,12 @@ files:
|
|
35
35
|
- README.md
|
36
36
|
- Rakefile
|
37
37
|
- bin/get_out
|
38
|
+
- docs/docco.css
|
39
|
+
- docs/index.html
|
38
40
|
- get_out.gemspec
|
39
41
|
- lib/get_out.rb
|
40
42
|
- lib/get_out/version.rb
|
41
|
-
homepage: https://github.com/
|
43
|
+
homepage: https://simi.github.com/get_out
|
42
44
|
licenses: []
|
43
45
|
post_install_message:
|
44
46
|
rdoc_options: []
|
@@ -58,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
60
|
version: '0'
|
59
61
|
requirements: []
|
60
62
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.8.
|
63
|
+
rubygems_version: 1.8.10
|
62
64
|
signing_key:
|
63
65
|
specification_version: 3
|
64
66
|
summary: Simple get_out IRC bot
|