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 +4 -4
- data/README.md +2 -2
- data/lib/sinatra/stoplight_admin.rb +8 -1
- data/stoplight-admin.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0d3e92c60c0c0b7e66fed8c7ef789f55acb794a
|
4
|
+
data.tar.gz: 0d8843671214375affd9adebc91f791d9173c80d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
{
|
data/stoplight-admin.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'stoplight-admin'
|
5
|
-
spec.version = '0.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.
|
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-
|
12
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|