ircbot 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +71 -0
- data/README +72 -3
- data/bin/ircbot +3 -0
- data/config/samples/postgres.yml +19 -0
- data/config/{sama-zu.yml → samples/sama-zu.yml} +1 -1
- data/config/{yml.erb → samples/yml.erb} +0 -0
- data/ircbot.gemspec +13 -0
- data/lib/ircbot.rb +3 -1
- data/lib/ircbot/client.rb +6 -0
- data/lib/ircbot/client/config.rb +9 -0
- data/lib/ircbot/client/plugins.rb +14 -1
- data/lib/ircbot/core_ext/message.rb +4 -1
- data/lib/ircbot/plugin.rb +17 -0
- data/lib/ircbot/plugins.rb +68 -13
- data/lib/ircbot/utils/html_parser.rb +26 -0
- data/lib/ircbot/utils/watcher.rb +36 -0
- data/lib/ircbot/version.rb +1 -1
- data/old/plugins/summary.cpi +267 -0
- data/plugins/plugins.rb +1 -1
- data/plugins/reminder.rb +79 -175
- data/plugins/summary/ch2.rb +272 -0
- data/plugins/summary/engines.rb +30 -0
- data/plugins/summary/engines/base.rb +105 -0
- data/plugins/summary/engines/ch2.rb +14 -0
- data/plugins/summary/engines/https.rb +6 -0
- data/plugins/summary/engines/none.rb +10 -0
- data/plugins/summary/engines/twitter.rb +16 -0
- data/plugins/summary/spec/ch2_spec.rb +64 -0
- data/plugins/summary/spec/spec_helper.rb +19 -0
- data/plugins/summary/spec/summarizers_none_spec.rb +15 -0
- data/plugins/summary/spec/summarizers_spec.rb +23 -0
- data/plugins/summary/summary.rb +58 -0
- data/plugins/watchdog/db.rb +80 -0
- data/plugins/watchdog/exceptions.rb +4 -0
- data/plugins/watchdog/updater.rb +21 -0
- data/plugins/watchdog/watchdog.rb +82 -0
- data/spec/plugin_spec.rb +11 -0
- data/spec/plugins_spec.rb +35 -1
- data/spec/utils/html_parser_spec.rb +30 -0
- data/spec/utils/spec_helper.rb +1 -0
- metadata +190 -13
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '/../spec_helper')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ircbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- maiha
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03
|
19
|
-
default_executable:
|
18
|
+
date: 2012-07-03 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: dsl_accessor
|
@@ -67,9 +66,163 @@ dependencies:
|
|
67
66
|
type: :runtime
|
68
67
|
version_requirements: *id003
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
69
|
+
name: chawan
|
71
70
|
prerelease: false
|
72
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
type: :runtime
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: night-time
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
type: :runtime
|
95
|
+
version_requirements: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: pg
|
98
|
+
prerelease: false
|
99
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
108
|
+
type: :runtime
|
109
|
+
version_requirements: *id006
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: sqlite3
|
112
|
+
prerelease: false
|
113
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
type: :runtime
|
123
|
+
version_requirements: *id007
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: dm-core
|
126
|
+
prerelease: false
|
127
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
136
|
+
type: :runtime
|
137
|
+
version_requirements: *id008
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: dm-migrations
|
140
|
+
prerelease: false
|
141
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
version: "0"
|
150
|
+
type: :runtime
|
151
|
+
version_requirements: *id009
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: dm-timestamps
|
154
|
+
prerelease: false
|
155
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
hash: 3
|
161
|
+
segments:
|
162
|
+
- 0
|
163
|
+
version: "0"
|
164
|
+
type: :runtime
|
165
|
+
version_requirements: *id010
|
166
|
+
- !ruby/object:Gem::Dependency
|
167
|
+
name: do_sqlite3
|
168
|
+
prerelease: false
|
169
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
hash: 3
|
175
|
+
segments:
|
176
|
+
- 0
|
177
|
+
version: "0"
|
178
|
+
type: :runtime
|
179
|
+
version_requirements: *id011
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: data_objects
|
182
|
+
prerelease: false
|
183
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
hash: 3
|
189
|
+
segments:
|
190
|
+
- 0
|
191
|
+
version: "0"
|
192
|
+
type: :runtime
|
193
|
+
version_requirements: *id012
|
194
|
+
- !ruby/object:Gem::Dependency
|
195
|
+
name: dm-sqlite-adapter
|
196
|
+
prerelease: false
|
197
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
198
|
+
none: false
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
hash: 3
|
203
|
+
segments:
|
204
|
+
- 0
|
205
|
+
version: "0"
|
206
|
+
type: :runtime
|
207
|
+
version_requirements: *id013
|
208
|
+
- !ruby/object:Gem::Dependency
|
209
|
+
name: dm-postgres-adapter
|
210
|
+
prerelease: false
|
211
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
hash: 3
|
217
|
+
segments:
|
218
|
+
- 0
|
219
|
+
version: "0"
|
220
|
+
type: :runtime
|
221
|
+
version_requirements: *id014
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: rspec
|
224
|
+
prerelease: false
|
225
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
73
226
|
none: false
|
74
227
|
requirements:
|
75
228
|
- - ">="
|
@@ -81,7 +234,7 @@ dependencies:
|
|
81
234
|
- 0
|
82
235
|
version: 2.9.0
|
83
236
|
type: :development
|
84
|
-
version_requirements: *
|
237
|
+
version_requirements: *id015
|
85
238
|
description: An irc bot framework that offers easy-to-use by plugins
|
86
239
|
email:
|
87
240
|
- maiha@wota.jp
|
@@ -92,12 +245,16 @@ extensions: []
|
|
92
245
|
extra_rdoc_files: []
|
93
246
|
|
94
247
|
files:
|
248
|
+
- .gitignore
|
249
|
+
- Gemfile
|
250
|
+
- Gemfile.lock
|
95
251
|
- MIT-LICENSE
|
96
252
|
- README
|
97
253
|
- Rakefile
|
98
254
|
- bin/ircbot
|
99
|
-
- config/
|
100
|
-
- config/yml
|
255
|
+
- config/samples/postgres.yml
|
256
|
+
- config/samples/sama-zu.yml
|
257
|
+
- config/samples/yml.erb
|
101
258
|
- ircbot.gemspec
|
102
259
|
- lib/ircbot.rb
|
103
260
|
- lib/ircbot/client.rb
|
@@ -120,11 +277,30 @@ files:
|
|
120
277
|
- lib/ircbot/framework.rb
|
121
278
|
- lib/ircbot/plugin.rb
|
122
279
|
- lib/ircbot/plugins.rb
|
280
|
+
- lib/ircbot/utils/html_parser.rb
|
281
|
+
- lib/ircbot/utils/watcher.rb
|
123
282
|
- lib/ircbot/version.rb
|
283
|
+
- old/plugins/summary.cpi
|
124
284
|
- plugins/echo.rb
|
125
285
|
- plugins/irc.rb
|
126
286
|
- plugins/plugins.rb
|
127
287
|
- plugins/reminder.rb
|
288
|
+
- plugins/summary/ch2.rb
|
289
|
+
- plugins/summary/engines.rb
|
290
|
+
- plugins/summary/engines/base.rb
|
291
|
+
- plugins/summary/engines/ch2.rb
|
292
|
+
- plugins/summary/engines/https.rb
|
293
|
+
- plugins/summary/engines/none.rb
|
294
|
+
- plugins/summary/engines/twitter.rb
|
295
|
+
- plugins/summary/spec/ch2_spec.rb
|
296
|
+
- plugins/summary/spec/spec_helper.rb
|
297
|
+
- plugins/summary/spec/summarizers_none_spec.rb
|
298
|
+
- plugins/summary/spec/summarizers_spec.rb
|
299
|
+
- plugins/summary/summary.rb
|
300
|
+
- plugins/watchdog/db.rb
|
301
|
+
- plugins/watchdog/exceptions.rb
|
302
|
+
- plugins/watchdog/updater.rb
|
303
|
+
- plugins/watchdog/watchdog.rb
|
128
304
|
- plugins/which.rb
|
129
305
|
- plugins/youtube.rb
|
130
306
|
- spec/config_spec.rb
|
@@ -135,7 +311,8 @@ files:
|
|
135
311
|
- spec/plugins_spec.rb
|
136
312
|
- spec/provide_helper.rb
|
137
313
|
- spec/spec_helper.rb
|
138
|
-
|
314
|
+
- spec/utils/html_parser_spec.rb
|
315
|
+
- spec/utils/spec_helper.rb
|
139
316
|
homepage: http://github.com/maiha/ircbot
|
140
317
|
licenses: []
|
141
318
|
|
@@ -165,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
342
|
requirements: []
|
166
343
|
|
167
344
|
rubyforge_project: ircbot
|
168
|
-
rubygems_version: 1.
|
345
|
+
rubygems_version: 1.8.15
|
169
346
|
signing_key:
|
170
347
|
specification_version: 3
|
171
348
|
summary: easy irc bot framework
|