stoplight-admin 0.2.2 → 0.2.3

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: e9f140e657d88757817855ced488e386bb61ae60
4
- data.tar.gz: df54e15cd69ca5a87f5b66f8d117cc4e5a9a4421
3
+ metadata.gz: a0d3e92c60c0c0b7e66fed8c7ef789f55acb794a
4
+ data.tar.gz: 0d8843671214375affd9adebc91f791d9173c80d
5
5
  SHA512:
6
- metadata.gz: 14ec1ff53c5503fdc8ad5ce64df7ffa668d2791f3f588b411b63d790575560595898cafcc9bac72315225a3156a171eedea47a2b70bb972a611caddc21014dfe
7
- data.tar.gz: 5a58765b512e87cb57fd6996a74d96929970f8aade3990dc2568c28694b8cee78a8dc79e37842f09762ce48d953a9838dc04a9f24db2f89d915228a30b0aba9b
6
+ metadata.gz: a0cd4b925407eb42449f11bce636c1824e3029c740c301dd61a07f6dc53abf7df1bc0c53a0386080beaa6788a226481fe1f60a1cd8691a22a06dcb3803067d21
7
+ data.tar.gz: 5b5e33874a12b746f2340839f56518ee49d8f374a7128c5a81a2bcd555ffdf626764dc2559c5e0eede6ccd000ca12894de511a8a6dd6db112ffc6af7aa9da521
data/README.md CHANGED
@@ -18,7 +18,7 @@ First you'll need a `Gemfile`:
18
18
  ``` rb
19
19
  source 'https://rubygems.org'
20
20
 
21
- gem 'stoplight-admin', '~> 0.2.2'
21
+ gem 'stoplight-admin', '~> 0.2.3'
22
22
  ```
23
23
 
24
24
  Run [Bundler][3] to install the dependencies:
@@ -49,7 +49,7 @@ lines to your `app.rb` file:
49
49
 
50
50
  ``` rb
51
51
  use Rack::Config do |env|
52
- env['SCRIPT_NAME'] = 'your/prefix/here'
52
+ env['SCRIPT_NAME'] = '/your/prefix/here'
53
53
  end
54
54
  ```
55
55
 
@@ -23,7 +23,14 @@ module Sinatra
23
23
  green = Stoplight.green?(light)
24
24
  attempts = green ? 0 : data_store.attempts(light)
25
25
  failures = green ? [] : data_store.failures(light).map do |f|
26
- JSON.parse(f)
26
+ begin
27
+ JSON.parse(f)
28
+ rescue JSON::ParserError
29
+ {
30
+ 'error' => f,
31
+ 'time' => 'unknown time'
32
+ }
33
+ end
27
34
  end
28
35
 
29
36
  {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'stoplight-admin'
5
- spec.version = '0.2.2'
5
+ spec.version = '0.2.3'
6
6
  spec.authors = ['Cameron Desautels', 'Taylor Fausak']
7
7
  spec.email = %w(camdez@gmail.com taylor@fausak.me)
8
8
  spec.summary = %q{A simple administration interface for the stoplight gem.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stoplight-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Desautels
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-19 00:00:00.000000000 Z
12
+ date: 2014-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler