descartes 0.8.4.6 → 0.8.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/descartes +0 -0
- data/lib/descartes/modules/crunchyroll.rb +10 -10
- data/lib/descartes/modules/files/pigro.json +18 -18
- data/lib/descartes/modules/pigro.rb +8 -8
- data/lib/descartes/version.rb +4 -4
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dcd8ccd571a0ce9cfebaaae18b998e0bdc20829
|
4
|
+
data.tar.gz: e8a1ade7e727a6b0b6b81f01e7a50130951301d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8275404cee2ae0493c8b218cc863a02e5d1b15cf63a1f3a872a137a380d2e4095d00ddebe34c7f1bbd6ff0c7cfdb15f54acecd08bd9f54dc1eff9e3839b66412
|
7
|
+
data.tar.gz: 415ac811ba690fa549ca663a2aaaaf20228bfe152ced5d321a0f4849fbcd14332e9c0e85f82d3741dcb7e72138b882a3caf22d783a0ea39ceafd1963a83f69c2
|
data/bin/descartes
CHANGED
File without changes
|
@@ -2,14 +2,14 @@
|
|
2
2
|
##
|
3
3
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
4
4
|
# Version 2, December 2004
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# Everyone is permitted to copy and distribute verbatim or modified
|
7
7
|
# copies of this license document, and changing it is allowed as long
|
8
8
|
# as the name is changed.
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
11
11
|
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
12
|
-
#
|
12
|
+
#
|
13
13
|
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
14
14
|
##
|
15
15
|
|
@@ -21,7 +21,7 @@ class Descartes
|
|
21
21
|
|
22
22
|
match /^\.cr$/, use_prefix: false, method: :today
|
23
23
|
def today(m)
|
24
|
-
crunchyroll
|
24
|
+
crunchyroll = Crunchyroll.today
|
25
25
|
|
26
26
|
aired = crunchyroll.select { |h| h[:airs] == :aired }.map { |r| r[:title].colorize }.flatten.join(', ')[0..-2]
|
27
27
|
tomorrow = crunchyroll.select { |h| h[:airs] == :tomorrow }
|
@@ -29,28 +29,28 @@ class Descartes
|
|
29
29
|
|
30
30
|
m.reply "Gli anime di oggi su #{'Crunchyroll'.colorize}:"
|
31
31
|
|
32
|
-
today.each
|
32
|
+
today.each do |series|
|
33
33
|
m.reply "#{series[:title].colorize} (tra #{series[:left].to_ita.colorize})"
|
34
|
-
|
34
|
+
end
|
35
35
|
|
36
36
|
m.reply '' if today.any?
|
37
37
|
|
38
38
|
if tomorrow.any?
|
39
39
|
m.reply "Domani trasmetterà (per via del fuso):"
|
40
|
-
tomorrow.each
|
40
|
+
tomorrow.each do |series|
|
41
41
|
m.reply "#{series[:title].colorize} (tra #{series[:left].to_ita.colorize})"
|
42
|
-
|
42
|
+
end
|
43
43
|
end
|
44
44
|
|
45
45
|
m.reply '' if tomorrow.any?
|
46
|
-
|
46
|
+
|
47
47
|
m.reply "Sono stati già trasmessi: #{aired}." unless aired.empty?
|
48
48
|
end
|
49
49
|
|
50
50
|
match /\.cr (.+)/, use_prefix: false, method: :get
|
51
51
|
def get(m)
|
52
52
|
series = Crunchyroll.get m.params[1].split('.cr ')[1]
|
53
|
-
|
53
|
+
|
54
54
|
if series
|
55
55
|
m.reply "#{series[:title].colorize} è una serie trasmessa da #{series[:where].colorize} il #{series[:day].to_ita.colorize} alle #{series[:hour].colorize}:#{series[:min].colorize}, cioè tra #{series[:left].to_ita.colorize}."
|
56
56
|
else
|
@@ -1,19 +1,19 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"nicknames": [
|
4
|
-
{ "nickname": "RoxasShadowRS"},
|
5
|
-
{ "nickname": "RoxasShadow" }
|
6
|
-
],
|
7
|
-
"username" : "Roxas Shadow",
|
8
|
-
"password" : "Eheheheheh"
|
9
|
-
},
|
10
|
-
|
11
|
-
{
|
12
|
-
"nicknames": [
|
13
|
-
{ "nickname": "Helltilt" },
|
14
|
-
{ "nickname": "Hell-11" }
|
15
|
-
],
|
16
|
-
"username" : "Hell",
|
17
|
-
"password" : "Ohohohohoh"
|
18
|
-
}
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"nicknames": [
|
4
|
+
{ "nickname": "RoxasShadowRS"},
|
5
|
+
{ "nickname": "RoxasShadow" }
|
6
|
+
],
|
7
|
+
"username" : "Roxas Shadow",
|
8
|
+
"password" : "Eheheheheh"
|
9
|
+
},
|
10
|
+
|
11
|
+
{
|
12
|
+
"nicknames": [
|
13
|
+
{ "nickname": "Helltilt" },
|
14
|
+
{ "nickname": "Hell-11" }
|
15
|
+
],
|
16
|
+
"username" : "Hell",
|
17
|
+
"password" : "Ohohohohoh"
|
18
|
+
}
|
19
19
|
]
|
@@ -1,14 +1,14 @@
|
|
1
1
|
##
|
2
2
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
3
3
|
# Version 2, December 2004
|
4
|
-
#
|
4
|
+
#
|
5
5
|
# Everyone is permitted to copy and distribute verbatim or modified
|
6
6
|
# copies of this license document, and changing it is allowed as long
|
7
7
|
# as the name is changed.
|
8
|
-
#
|
8
|
+
#
|
9
9
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
10
10
|
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
13
13
|
##
|
14
14
|
|
@@ -161,13 +161,13 @@ class Descartes
|
|
161
161
|
|
162
162
|
match /pigro (.+)/, method: :edit_episode
|
163
163
|
def edit_episode(m, things)
|
164
|
-
|
165
|
-
m.reply 'You
|
164
|
+
unless m.user.authed?
|
165
|
+
m.reply 'You are not authorized to do this.'
|
166
166
|
return
|
167
167
|
end
|
168
168
|
|
169
|
-
things
|
170
|
-
len
|
169
|
+
things = things.split ' '
|
170
|
+
len = things.length
|
171
171
|
|
172
172
|
if things.last.numeric?
|
173
173
|
episode = things.pop
|
@@ -237,7 +237,7 @@ class Descartes
|
|
237
237
|
url = File.read(file).strip
|
238
238
|
return url unless url.empty?
|
239
239
|
end
|
240
|
-
|
240
|
+
|
241
241
|
'pigro.omnivium.it'
|
242
242
|
end
|
243
243
|
end
|
data/lib/descartes/version.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
##
|
2
2
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
3
3
|
# Version 2, December 2004
|
4
|
-
#
|
4
|
+
#
|
5
5
|
# Everyone is permitted to copy and distribute verbatim or modified
|
6
6
|
# copies of this license document, and changing it is allowed as long
|
7
7
|
# as the name is changed.
|
8
|
-
#
|
8
|
+
#
|
9
9
|
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
10
10
|
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# 0. You just DO WHAT THE FUCK YOU WANT TO.
|
13
13
|
##
|
14
14
|
|
15
15
|
class Descartes
|
16
16
|
def self.version
|
17
|
-
'0.8.4.
|
17
|
+
'0.8.4.7'
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: descartes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.4.
|
4
|
+
version: 0.8.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Capuano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cinch
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: crunchyroll
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.9.6.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.9.6.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: htmlentities
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +171,8 @@ executables:
|
|
171
171
|
extensions: []
|
172
172
|
extra_rdoc_files: []
|
173
173
|
files:
|
174
|
+
- bin/descartes
|
175
|
+
- lib/descartes.rb
|
174
176
|
- lib/descartes/descartes.rb
|
175
177
|
- lib/descartes/modules/arnaldo.rb
|
176
178
|
- lib/descartes/modules/crunchyroll.rb
|
@@ -195,8 +197,6 @@ files:
|
|
195
197
|
- lib/descartes/modules/url.rb
|
196
198
|
- lib/descartes/utils.rb
|
197
199
|
- lib/descartes/version.rb
|
198
|
-
- lib/descartes.rb
|
199
|
-
- bin/descartes
|
200
200
|
homepage: http://www.giovannicapuano.net
|
201
201
|
licenses:
|
202
202
|
- WTFPL
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.
|
220
|
+
rubygems_version: 2.2.2
|
221
221
|
signing_key:
|
222
222
|
specification_version: 4
|
223
223
|
summary: Codo ergo bot.
|