descartes 0.6.1.1 → 0.6.1.2

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: 9f1cf7c1d5612c5f2a6dfd0e5bc4d552a0615124
4
- data.tar.gz: 47ed9a966d5e5d85100cdeaf2cb4ddc2e999f687
3
+ metadata.gz: f993c8cd837ea20b89e28620a2a2751ca0011cc7
4
+ data.tar.gz: 70acd3c816f7206cefe8624fa8239e99f69c5beb
5
5
  SHA512:
6
- metadata.gz: 568f7c46a31ed9bb43cc3ed8100f3114bdb80e12daebd0b929498fc7b4ce46825f6b09c9fc63ef4199c2821f4dc71749dd0491cdee1a146099083d5d7edd2fb2
7
- data.tar.gz: dbadbff422b70d3ea3165a993f896c63be9b65c823482d10b6989aedf8be444691ee5280fc3fae959ac65044a11d73da5fa6ab3eb5402ef2011f9ea435138554
6
+ metadata.gz: 371742dd6ee64e9a91b7f189d5af34a5c67a1aed35accca4b5fd56b7d4b690c1362689456059a7fe91b4087e54f23abb25885a12246a4e4c2da5e778770b4bb6
7
+ data.tar.gz: 64ba026f36d74606715fd720846a04e10fc201d4d9635669f7b2540b57a6c43be1b22fa8d587c77bd8bae9e36b17066874ce351d3b4263c54d40ff17c3ef6807
@@ -40,7 +40,7 @@ class Descartes
40
40
 
41
41
  if n_ep.nil?
42
42
  a = show.status.downcase.start_with?(?o) ? 'an' : ?a
43
- m.reply "[#{show.fansub}] #{show.name.colorize} is #{a} #{show.status} series of #{show.tot_episodes} episodes."
43
+ m.reply "[#{show.fansub.colorize}] #{show.name.colorize} is #{a} #{show.status} series of #{show.tot_episodes.colorize} episodes."
44
44
  m.reply ''.tap { |staff|
45
45
  {
46
46
  :Translator => show.translator,
@@ -58,7 +58,7 @@ class Descartes
58
58
  eps = episodes.get! show.name, n_ep.to_i
59
59
  eps.each { |ep|
60
60
  m.reply "Episode #{ep.episode} - ".colorize.tap { |staff|
61
- {
61
+ activities = {
62
62
  :Translation => ep.translation,
63
63
  :Editing => ep.editing,
64
64
  :Check => ep.checking,
@@ -66,9 +66,11 @@ class Descartes
66
66
  :Typesetting => ep.typesetting,
67
67
  :Encoding => ep.encoding,
68
68
  :QC => ep.qchecking
69
- }.each_pair { |key, val|
70
- staff << "#{key.to_s.colorize}: #{val ? 'gg' : 'nope'} / "
71
69
  }
70
+
71
+ activities.each_pair { |key, val|
72
+ staff << "#{key.to_s.colorize}: #{val ? 'gg' : 'nope'} / "
73
+ } if activities.select { |k, v| !v }.any?
72
74
  staff << 'Download'.colorize + ": #{ep.download}" unless ep.download.strip.empty?
73
75
  }[0..-4]
74
76
  }
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.6.1.1'
17
+ '0.6.1.2'
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: descartes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1.1
4
+ version: 0.6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano