descartes 0.8.4.8 → 0.8.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/descartes/modules/pigro.rb +13 -5
- data/lib/descartes/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db8f3a007fcbc170141047f5180c4b8e2299febf
|
4
|
+
data.tar.gz: 45f0b670d860cb868190b7018f41cf21bbf3a3b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 626586011e44fb25338977a9c8f894ebe8f5762f54858ea83fe381a732aafbbb8da5ddc6cedf1c626cfff1ee20dd0468abff27f96e510d90443ff41865f44f79
|
7
|
+
data.tar.gz: 7317395968334c539234b2c4645ef29c17fe06d2ceaa1de51246a278645aa4f28569119ffa7d750e0558179cd6cb2060a14b60fc8b745803dfe4244b8370cc9b
|
@@ -28,7 +28,7 @@ class Descartes
|
|
28
28
|
user.pop
|
29
29
|
options = { user: user.join, role: role }
|
30
30
|
else
|
31
|
-
options = { user: user.join
|
31
|
+
options = { user: user.join }
|
32
32
|
end
|
33
33
|
|
34
34
|
host = get_host
|
@@ -200,11 +200,19 @@ class Descartes
|
|
200
200
|
m.reply login['message']
|
201
201
|
else
|
202
202
|
if !field || !status
|
203
|
-
|
203
|
+
fails = []
|
204
|
+
[ :translation, :editing, :checking, :timing, :typesetting, :encoding, :qchecking ].each do |f|
|
204
205
|
ep = assonnato.episode.edit show, episode.to_i, { f => :done }
|
205
|
-
|
206
|
-
|
207
|
-
|
206
|
+
fails << [f, ep['message'] if ep['status'] != 'success'
|
207
|
+
end
|
208
|
+
|
209
|
+
if fails.length == 7
|
210
|
+
m.reply "The episode has not been edited. Maybe it doesn't exist yet?"
|
211
|
+
elsif fails.any?
|
212
|
+
fails.each { |field, error| m.reply("#{field}: #{ep['message']}") }
|
213
|
+
else
|
214
|
+
m.reply "The episode has been edited."
|
215
|
+
end
|
208
216
|
else
|
209
217
|
ep = assonnato.episode.edit show, episode.to_i, { field.to_sym => status.to_sym }
|
210
218
|
m.reply ep['message']
|
data/lib/descartes/version.rb
CHANGED
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.9
|
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-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cinch
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.9.7
|
75
|
+
version: 0.9.7.5
|
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: 0.9.7
|
82
|
+
version: 0.9.7.5
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: htmlentities
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|