zetabot 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +67 -59
- data/lib/Zeta/plugins/botinfo.rb +2 -2
- data/lib/Zeta/plugins/macros.rb +4 -3
- data/lib/Zeta/plugins/movie.rb +1 -1
- data/lib/Zeta/version.rb +1 -1
- 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: '0569aebeebd88200bc4f962cecbf8c880aa40832'
|
4
|
+
data.tar.gz: 01a9f8d01d07c76905bdfbf88100798ef93fa964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d530f7decbe3f3d36da3773d461418dd636f3b28ab9c97069ca7bfac4a8a9b87a8ac67c07fac195093037517d927909cafaac08e54f922a9035ca155cc31e29e
|
7
|
+
data.tar.gz: 5458b43003b00cf0d1d9f3f29c4ba49efbd10a730d5b5220962bab0ecda8a2c31e1ea54bb3fc98b5882e8d9997a0ecea72907cef063c83a5a57591c1de2da086
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
zetabot (0.0.
|
4
|
+
zetabot (0.0.20)
|
5
5
|
actionview
|
6
6
|
chronic
|
7
7
|
chronic_duration
|
@@ -41,18 +41,19 @@ GEM
|
|
41
41
|
remote: https://rubygems.org/
|
42
42
|
specs:
|
43
43
|
Ascii85 (1.0.2)
|
44
|
-
actionview (5.
|
45
|
-
activesupport (= 5.
|
44
|
+
actionview (5.1.4)
|
45
|
+
activesupport (= 5.1.4)
|
46
46
|
builder (~> 3.1)
|
47
|
-
|
47
|
+
erubi (~> 1.4)
|
48
48
|
rails-dom-testing (~> 2.0)
|
49
49
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
50
|
-
activesupport (5.
|
50
|
+
activesupport (5.1.4)
|
51
51
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
52
52
|
i18n (~> 0.7)
|
53
53
|
minitest (~> 5.1)
|
54
54
|
tzinfo (~> 1.1)
|
55
|
-
addressable (2.
|
55
|
+
addressable (2.5.2)
|
56
|
+
public_suffix (>= 2.0.2, < 4.0)
|
56
57
|
afm (0.2.2)
|
57
58
|
ansi (1.5.0)
|
58
59
|
ast (2.3.0)
|
@@ -62,8 +63,8 @@ GEM
|
|
62
63
|
chronic (0.10.2)
|
63
64
|
chronic_duration (0.10.6)
|
64
65
|
numerizer (~> 0.1.1)
|
65
|
-
cinch (2.3.
|
66
|
-
cinch-cooldown (1.
|
66
|
+
cinch (2.3.4)
|
67
|
+
cinch-cooldown (1.2.0)
|
67
68
|
cinch (~> 2)
|
68
69
|
time-lord (~> 1.0, >= 1.0.1)
|
69
70
|
cinch-quotes (0.0.4)
|
@@ -71,13 +72,14 @@ GEM
|
|
71
72
|
cinch-toolbox (1.1.6)
|
72
73
|
nokogiri (~> 1.6)
|
73
74
|
clipboard (1.1.1)
|
74
|
-
code (0.9.
|
75
|
+
code (0.9.2)
|
75
76
|
coderay (~> 1.1)
|
76
|
-
method_source (~> 0.
|
77
|
-
coderay (1.1.
|
77
|
+
method_source (~> 0.9)
|
78
|
+
coderay (1.1.2)
|
78
79
|
concurrent-ruby (1.0.5)
|
79
80
|
crack (0.4.3)
|
80
81
|
safe_yaml (~> 1.0.0)
|
82
|
+
crass (1.0.2)
|
81
83
|
daemons (1.2.4)
|
82
84
|
debugging (1.1.1)
|
83
85
|
binding.repl (~> 3.0)
|
@@ -86,47 +88,48 @@ GEM
|
|
86
88
|
thread_safe (~> 0.3, >= 0.3.1)
|
87
89
|
destructor (0.1.0)
|
88
90
|
diff-lcs (1.3)
|
89
|
-
discourse_api (0.
|
91
|
+
discourse_api (0.18.0)
|
90
92
|
faraday (~> 0.9)
|
91
93
|
faraday_middleware (~> 0.10)
|
92
94
|
rack (>= 1.6)
|
93
|
-
dnsbl-client (1.0.
|
95
|
+
dnsbl-client (1.0.4)
|
94
96
|
domain_name (0.5.20170404)
|
95
97
|
unf (>= 0.0.5, < 1.0.0)
|
96
98
|
dronebl.rb (0.1.0.0)
|
97
99
|
httparty (~> 0.13)
|
98
100
|
nokogiri (~> 1.6)
|
99
|
-
|
101
|
+
erubi (1.7.0)
|
100
102
|
every_day_irb (2.0.0)
|
101
103
|
cd (~> 1.0)
|
102
104
|
fancy_irb (1.1.0)
|
103
105
|
paint (>= 0.9, < 3.0)
|
104
106
|
unicode-display_width (~> 1.1)
|
105
|
-
faraday (0.
|
107
|
+
faraday (0.12.2)
|
106
108
|
multipart-post (>= 1.2, < 3)
|
107
|
-
faraday_middleware (0.
|
109
|
+
faraday_middleware (0.12.2)
|
108
110
|
faraday (>= 0.7.4, < 1.0)
|
109
111
|
ffi (1.9.18)
|
110
|
-
geocoder (1.4.
|
111
|
-
gist (4.
|
112
|
-
github_api (0.
|
113
|
-
addressable (~> 2.4
|
112
|
+
geocoder (1.4.4)
|
113
|
+
gist (4.6.1)
|
114
|
+
github_api (0.18.1)
|
115
|
+
addressable (~> 2.4)
|
114
116
|
descendants_tracker (~> 0.0.4)
|
115
|
-
faraday (~> 0.8
|
117
|
+
faraday (~> 0.8)
|
116
118
|
hashie (>= 3.4)
|
117
|
-
mime-types (>= 1.16, < 3.0)
|
118
119
|
oauth2 (~> 1.0)
|
119
|
-
haml (
|
120
|
+
haml (5.0.4)
|
121
|
+
temple (>= 0.8.0)
|
120
122
|
tilt
|
121
123
|
hashery (2.1.2)
|
122
|
-
hashie (3.5.
|
124
|
+
hashie (3.5.6)
|
123
125
|
hirb (0.7.3)
|
124
126
|
http-cookie (1.0.3)
|
125
127
|
domain_name (~> 0.5)
|
126
|
-
httparty (0.
|
128
|
+
httparty (0.15.6)
|
127
129
|
multi_xml (>= 0.5.2)
|
128
130
|
humanize-bytes (2.2.0)
|
129
|
-
i18n (0.
|
131
|
+
i18n (0.9.0)
|
132
|
+
concurrent-ruby (~> 1.0)
|
130
133
|
instance (0.2.0)
|
131
134
|
interactive_editor (0.0.10)
|
132
135
|
spoon (>= 0.0.1)
|
@@ -153,7 +156,8 @@ GEM
|
|
153
156
|
wirb (~> 2.0)
|
154
157
|
iso8601 (0.9.1)
|
155
158
|
jwt (1.5.6)
|
156
|
-
loofah (2.
|
159
|
+
loofah (2.1.1)
|
160
|
+
crass (~> 1.0.2)
|
157
161
|
nokogiri (>= 1.5.9)
|
158
162
|
mechanize (2.7.5)
|
159
163
|
domain_name (~> 0.5, >= 0.5.1)
|
@@ -165,30 +169,32 @@ GEM
|
|
165
169
|
ntlm-http (~> 0.1, >= 0.1.1)
|
166
170
|
webrobots (>= 0.0.9, < 0.2)
|
167
171
|
method_locator (0.0.4)
|
168
|
-
method_source (0.
|
172
|
+
method_source (0.9.0)
|
169
173
|
methodfinder (2.1.0)
|
170
|
-
mime-types (
|
171
|
-
|
172
|
-
|
174
|
+
mime-types (3.1)
|
175
|
+
mime-types-data (~> 3.2015)
|
176
|
+
mime-types-data (3.2016.0521)
|
177
|
+
mini_portile2 (2.3.0)
|
178
|
+
minitest (5.10.3)
|
173
179
|
mkfifo (0.1.1)
|
174
|
-
multi_json (1.12.
|
180
|
+
multi_json (1.12.2)
|
175
181
|
multi_xml (0.6.0)
|
176
182
|
multipart-post (2.0.0)
|
177
183
|
net-http-digest_auth (1.4.1)
|
178
184
|
net-http-persistent (2.9.4)
|
179
185
|
net_http_timeout_errors (0.3.0)
|
180
186
|
netrc (0.11.0)
|
181
|
-
nokogiri (1.
|
182
|
-
mini_portile2 (~> 2.
|
187
|
+
nokogiri (1.8.1)
|
188
|
+
mini_portile2 (~> 2.3.0)
|
183
189
|
ntlm-http (0.1.1)
|
184
190
|
numerizer (0.1.1)
|
185
|
-
oauth2 (1.
|
186
|
-
faraday (>= 0.8, < 0.
|
191
|
+
oauth2 (1.4.0)
|
192
|
+
faraday (>= 0.8, < 0.13)
|
187
193
|
jwt (~> 1.0)
|
188
194
|
multi_json (~> 1.3)
|
189
195
|
multi_xml (~> 0.5)
|
190
196
|
rack (>= 1.2, < 3)
|
191
|
-
oga (2.
|
197
|
+
oga (2.11)
|
192
198
|
ast
|
193
199
|
ruby-ll (~> 2.1)
|
194
200
|
ori (0.1.0)
|
@@ -201,31 +207,32 @@ GEM
|
|
201
207
|
ruby-rc4
|
202
208
|
ttfunk
|
203
209
|
persist (1.0.0)
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
210
|
+
public_suffix (3.0.0)
|
211
|
+
rack (2.0.3)
|
212
|
+
rails-dom-testing (2.0.3)
|
213
|
+
activesupport (>= 4.2.0)
|
214
|
+
nokogiri (>= 1.6)
|
208
215
|
rails-html-sanitizer (1.0.3)
|
209
216
|
loofah (~> 2.0)
|
210
217
|
rake (10.5.0)
|
211
|
-
recursive-open-struct (1.0.
|
212
|
-
rest-client (2.0.
|
218
|
+
recursive-open-struct (1.0.5)
|
219
|
+
rest-client (2.0.2)
|
213
220
|
http-cookie (>= 1.0.2, < 2.0)
|
214
221
|
mime-types (>= 1.16, < 4.0)
|
215
222
|
netrc (~> 0.8)
|
216
|
-
rspec (3.
|
217
|
-
rspec-core (~> 3.
|
218
|
-
rspec-expectations (~> 3.
|
219
|
-
rspec-mocks (~> 3.
|
220
|
-
rspec-core (3.
|
221
|
-
rspec-support (~> 3.
|
222
|
-
rspec-expectations (3.
|
223
|
+
rspec (3.7.0)
|
224
|
+
rspec-core (~> 3.7.0)
|
225
|
+
rspec-expectations (~> 3.7.0)
|
226
|
+
rspec-mocks (~> 3.7.0)
|
227
|
+
rspec-core (3.7.0)
|
228
|
+
rspec-support (~> 3.7.0)
|
229
|
+
rspec-expectations (3.7.0)
|
223
230
|
diff-lcs (>= 1.2.0, < 2.0)
|
224
|
-
rspec-support (~> 3.
|
225
|
-
rspec-mocks (3.
|
231
|
+
rspec-support (~> 3.7.0)
|
232
|
+
rspec-mocks (3.7.0)
|
226
233
|
diff-lcs (>= 1.2.0, < 2.0)
|
227
|
-
rspec-support (~> 3.
|
228
|
-
rspec-support (3.
|
234
|
+
rspec-support (~> 3.7.0)
|
235
|
+
rspec-support (3.7.0)
|
229
236
|
ruby-ll (2.1.2)
|
230
237
|
ansi
|
231
238
|
ast
|
@@ -237,16 +244,17 @@ GEM
|
|
237
244
|
spoon (0.0.6)
|
238
245
|
ffi
|
239
246
|
tag_formatter (0.0.3)
|
247
|
+
temple (0.8.0)
|
240
248
|
thread_safe (0.3.6)
|
241
|
-
tilt (2.0.
|
249
|
+
tilt (2.0.8)
|
242
250
|
time-lord (1.0.1)
|
243
|
-
ttfunk (1.5.
|
251
|
+
ttfunk (1.5.1)
|
244
252
|
tzinfo (1.2.3)
|
245
253
|
thread_safe (~> 0.1)
|
246
254
|
unf (0.1.4)
|
247
255
|
unf_ext
|
248
|
-
unf_ext (0.0.7.
|
249
|
-
unicode-display_width (1.
|
256
|
+
unf_ext (0.0.7.4)
|
257
|
+
unicode-display_width (1.3.0)
|
250
258
|
video_info (2.7)
|
251
259
|
iso8601 (~> 0.9.1)
|
252
260
|
net_http_timeout_errors (~> 0.3.0)
|
@@ -270,4 +278,4 @@ DEPENDENCIES
|
|
270
278
|
zetabot!
|
271
279
|
|
272
280
|
BUNDLED WITH
|
273
|
-
1.
|
281
|
+
1.15.3
|
data/lib/Zeta/plugins/botinfo.rb
CHANGED
@@ -47,11 +47,11 @@ module Plugins
|
|
47
47
|
session_start_date: @started_at.strftime("%A, %B %e, %Y, at %l:%M:%S %P"),
|
48
48
|
total_channels: @bot.channels.length,
|
49
49
|
total_users: proc {
|
50
|
-
users = []
|
50
|
+
users = []
|
51
51
|
@bot.channels.each {|c|
|
52
52
|
c.users.each {|u| users << u[0].nick
|
53
53
|
}
|
54
|
-
}
|
54
|
+
}
|
55
55
|
users.uniq.size
|
56
56
|
}.call,
|
57
57
|
uptime: ChronicDuration.output(Time.now.to_i - @started_at.to_i)
|
data/lib/Zeta/plugins/macros.rb
CHANGED
@@ -11,7 +11,8 @@ module Plugins
|
|
11
11
|
attr_reader :macros
|
12
12
|
|
13
13
|
set plugin_name: "Macros", help: "Macro's are prefixed by a <dot> example .dnf",
|
14
|
-
react_on: :channel
|
14
|
+
react_on: :channel,
|
15
|
+
prefix: /^\./
|
15
16
|
|
16
17
|
def initialize *args
|
17
18
|
super
|
@@ -19,7 +20,7 @@ module Plugins
|
|
19
20
|
@macros = load_locale 'macros'
|
20
21
|
end
|
21
22
|
|
22
|
-
match
|
23
|
+
match /reload/, method: :execute_reloadmacros, react_on: :private
|
23
24
|
def execute_reloadmacros m
|
24
25
|
return unless check_user(m, :admin)
|
25
26
|
# return unless check_channel(m)
|
@@ -32,7 +33,7 @@ module Plugins
|
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
35
|
-
match
|
36
|
+
match /(\w+)(?: (.+))?/, method: :execute_macro, group: :macro
|
36
37
|
def execute_macro m, macro, arguments
|
37
38
|
return unless @macros.has_key?(macro)
|
38
39
|
parse(arguments.to_s.rstrip, @macros[macro], m.channel, m.user)
|
data/lib/Zeta/plugins/movie.rb
CHANGED
@@ -29,7 +29,7 @@ module Plugins
|
|
29
29
|
movie = URI.encode(m.gsub(/:\d+/, ''))
|
30
30
|
data = JSON.parse(
|
31
31
|
# RestClient.get("http://www.omdbapi.com/?t=#{movie}&y=#{year}")
|
32
|
-
open("http://www.omdbapi.com/?t=#{movie}&y=#{year}").read
|
32
|
+
open("http://www.omdbapi.com/?t=#{movie}&y=#{year}&apikey=#{Config.secrets[:omdb]}").read
|
33
33
|
)
|
34
34
|
OpenStruct.new(
|
35
35
|
title: data['Title'],
|
data/lib/Zeta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zetabot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liothen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -642,7 +642,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
642
642
|
version: '0'
|
643
643
|
requirements: []
|
644
644
|
rubyforge_project:
|
645
|
-
rubygems_version: 2.6.
|
645
|
+
rubygems_version: 2.6.11
|
646
646
|
signing_key:
|
647
647
|
specification_version: 4
|
648
648
|
summary: Zeta is a IRC bot written in ruby using the Cinch Framework
|