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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c9aea73234d7d6aa23cec651b5be01681b0a36a
4
- data.tar.gz: 93c46522e36220c2afa9b9022470c0fb59900062
3
+ metadata.gz: db8f3a007fcbc170141047f5180c4b8e2299febf
4
+ data.tar.gz: 45f0b670d860cb868190b7018f41cf21bbf3a3b4
5
5
  SHA512:
6
- metadata.gz: 73bd9eb0c9d00a5cb83a32cfa3ed1fdc34fb86c66828e171a57c2e8c3907db810b920252dc1d33ff34ebd160af10d1b0976a283533ac6b51f86f1769f87da7f6
7
- data.tar.gz: a3020365f8c70c2431aaf250f92a8e6e6b26cf761a0416da2cbd6d967b54899531649e64ba5a81de5999bad09308e5e2d00fd488b8054a45e8a033d059a73f1a
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
- [ :translation, :editing, :checking, :timing, :typesetting, :encoding, :qchecking ].each { |f|
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
- m.reply("#{f}: #{ep['message']}") if ep['status'] != 'success'
206
- }
207
- m.reply "The episode has been edited."
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']
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.8.4.8'
17
+ '0.8.4.9'
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.8
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-19 00:00:00.000000000 Z
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