descartes 0.6.6 → 0.6.7

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: a5969464c949c423b7b044c556b7df970e0e3845
4
- data.tar.gz: 0a22d31e966a1ab387cf46393293dc9fe66abda2
3
+ metadata.gz: 940717df1d91f84bc6892eacf117945503b3a869
4
+ data.tar.gz: d0d126417319fa105f0a0cc40f1649b311d76622
5
5
  SHA512:
6
- metadata.gz: 92d17fceb847d7438756084ec1f4d8158eb2fbc9fa2be4640ce38a146af8c8eb05b585ca369cf155f8ee28435f9531d57a5e17082e64fdae2a104883e88280f0
7
- data.tar.gz: 740b16cbf2a88da27fefff7bd37dac586c279487a1430256484cf7f1a7c20f9d2c3be1c5fe3fd3c10c11bbf3efc80b3c75333bea05e6174940983f248df836e4
6
+ metadata.gz: 348adaad21392e33142f551b1eaf995e30c2a8291b5dc56de738dad2bac7150adb3fd65ed8be7535de2a87d63142f38d1d8b3400e9cb7c2a75bc0b90da6f5757
7
+ data.tar.gz: 69f2469ec8ea216faf6867d63eaa12f1bd01aa90cd32f3f8071e7f569a0aa31ee81ef535123235c033a083979bcb975ed6f68ef56adc5708f6d72a1e3b8eb6af
@@ -94,30 +94,38 @@ class Descartes
94
94
  }
95
95
  }[0..-4]
96
96
  else
97
- episodes.get!(show.name, n_ep.to_i).each { |ep|
98
- m.reply ("Episode #{ep.episode}".colorize + ' - ').tap { |staff|
99
- activities = {
100
- :Translation => ep.translation,
101
- :Editing => ep.editing,
102
- :Check => ep.checking,
103
- :Timing => ep.timing,
104
- :Typesetting => ep.typesetting,
105
- :Encoding => ep.encoding,
106
- :QC => ep.qchecking
97
+ episodes = episodes.get! show.name, n_ep.to_i
98
+
99
+ if episodes.any?
100
+ episodes.each { |ep|
101
+ m.reply ("Episode #{ep.episode}".colorize + ' - ').tap { |staff|
102
+ activities = {
103
+ :Translation => ep.translation,
104
+ :Editing => ep.editing,
105
+ :Check => ep.checking,
106
+ :Timing => ep.timing,
107
+ :Typesetting => ep.typesetting,
108
+ :Encoding => ep.encoding,
109
+ :QC => ep.qchecking
110
+ }
111
+
112
+ if activities.select { |k, v| !v }.any?
113
+ staff << ''.tap { |s|
114
+ activities.each_pair { |key, val|
115
+ s << "#{key.to_s.colorize}: #{val ? 'gg' : 'nope'} / "
116
+ }
117
+ }[0..-3]
118
+ else
119
+ staff << 'Already released. '
120
+ end
121
+ staff << "#{'Download'.colorize}: #{ep.download}" unless ep.download.strip.empty?
107
122
  }
108
-
109
- if activities.select { |k, v| !v }.any?
110
- staff << ''.tap { |s|
111
- activities.each_pair { |key, val|
112
- s << "#{key.to_s.colorize}: #{val ? 'gg' : 'nope'} / "
113
- }
114
- }[0..-3]
115
- else
116
- staff << 'Already released.'
117
- end
118
- staff << "#{'Download'.colorize}: #{ep.download}" unless ep.download.strip.empty?
119
123
  }
120
- }
124
+ elsif n_ep.to_i > show.tot_episodes
125
+ m.reply "#{m.user.nick.colorize} pls go and http://just-believe.in."
126
+ else
127
+ m.reply "The episode #{n_ep.colorize} has not been added yet to #{show.name.colorize}."
128
+ end
121
129
  end
122
130
  }
123
131
  end
@@ -130,7 +138,7 @@ class Descartes
130
138
  return url unless url.empty?
131
139
  end
132
140
 
133
- 'http://pigro.omnivium.it:4567'
141
+ 'http://pigro.omnivium.it'
134
142
  end
135
143
  end
136
144
  end
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.6.6'
17
+ '0.6.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.6.6
4
+ version: 0.6.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-01-15 00:00:00.000000000 Z
11
+ date: 2014-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cinch