rbbt-rest 1.8.82 → 1.8.83

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: b3d6daab394cc889b85fd28c4f11e172c16adcae
4
- data.tar.gz: 31b215ce0d07e16301dafd5d8b4a4141ef80efb7
3
+ metadata.gz: 394c126010be13148e55fedfa82f9cd39098c21e
4
+ data.tar.gz: 8d4273e932df6c15a8c375b5124635d7fc63550f
5
5
  SHA512:
6
- metadata.gz: cdcb2fec4ca4dce492fedec59c84d58fe813d1a432800220581b70b7f82267322b4751204b31e19864b7028bd7a5b49822769844f8a14acd1b4b11beb0413f1d
7
- data.tar.gz: b87429a8396917a46752f90a5a6b6b9f58260e6dc41dbbcd344f27fc3233dcfeba2c9f865bdda88769acc203dde4716d5bd8fdf83b00b8658bd40720231d8b16
6
+ metadata.gz: a9c49392b5f14dd6f0073ed2e93daaee7f96f716c87e530e9dbf754b1e7386084493ed35f98e0e4d5a223e620603c58e638cf7b69ef4884af6efe995a10cf165
7
+ data.tar.gz: 7e92579ee7d2c80a3b645b011f8f67bd16911cbfa7cd9feb951e7a68d94fc5deda54fcf35d339244994a8813a418f53e7e9bb7bcc967806e7be966ba07af967a
@@ -6,7 +6,6 @@ Tilt::SYMBOL_ARRAY_SORTABLE = false
6
6
 
7
7
  module RbbtRESTHelpers
8
8
  def error_for(job, layout = nil)
9
- iii [job.status, job.dirty?]
10
9
  if ex = job.info[:exception]
11
10
  klass = ex[:class]
12
11
  msg = ex[:message]
@@ -235,7 +235,11 @@ module Sinatra
235
235
  v
236
236
  end
237
237
  end
238
- info_json[:status] = :error if dirty
238
+ if dirty
239
+ info_json[:status] = :error
240
+ info_json[:messages] ||= []
241
+ info_json[:messages] << "Job dirty, please reissue."
242
+ end
239
243
  halt 200, info_json.to_json
240
244
  else
241
245
  raise "Unsupported format specified: #{ format }"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.82
4
+ version: 1.8.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2017-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -1866,7 +1866,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1866
1866
  version: '0'
1867
1867
  requirements: []
1868
1868
  rubyforge_project:
1869
- rubygems_version: 2.6.14
1869
+ rubygems_version: 2.6.13
1870
1870
  signing_key:
1871
1871
  specification_version: 4
1872
1872
  summary: Rbbt Web and REST interfaces