stoplight-admin 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2e90ae06778440ba770d50a845e3a13e6b7a1f5
|
4
|
+
data.tar.gz: 5f8f7bed627d1f8024197bb01fd360c7655d7369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c8e099c043622262960e5a01338c605c93e24cc29061f0484d7aab52b60cdb0e4c1c3fd5f9ea7ce628319908fefdcab7088266707811832b64c9c42aba779f
|
7
|
+
data.tar.gz: 4994f9bcf6cda650f694b212a070da1a01d18fa34ca8bebbce7cf1d38a55af41b31617c796aa8e116c7aab58e2232017277e0c9972405b6059e5b5c0ee88e703
|
data/README.md
CHANGED
@@ -59,6 +59,28 @@ end
|
|
59
59
|
$ bundle exec ruby app.rb
|
60
60
|
```
|
61
61
|
|
62
|
+
## Rails
|
63
|
+
|
64
|
+
It is possible to mount Stoplight Admin inside Rails.
|
65
|
+
Add something like this to your `config/routes.rb`:
|
66
|
+
|
67
|
+
``` rb
|
68
|
+
require 'redis'
|
69
|
+
require 'sinatra/stoplight_admin'
|
70
|
+
|
71
|
+
class StoplightAdmin < Sinatra::Base
|
72
|
+
register Sinatra::StoplightAdmin
|
73
|
+
|
74
|
+
redis = Redis.new # Uses REDIS_URL environment variable.
|
75
|
+
data_store = Stoplight::DataStore::Redis.new(redis)
|
76
|
+
set :data_store, data_store
|
77
|
+
end
|
78
|
+
|
79
|
+
Rails.application.routes.draw do
|
80
|
+
mount StoplightAdmin => '/stoplights'
|
81
|
+
end
|
82
|
+
```
|
83
|
+
|
62
84
|
## Credits
|
63
85
|
|
64
86
|
Stoplight is brought to you by [@camdez][4] and [@tfausak][5] from
|
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.3.
|
4
|
+
version: 0.3.2
|
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:
|
12
|
+
date: 2018-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|
@@ -71,16 +71,16 @@ dependencies:
|
|
71
71
|
name: stoplight
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '1.
|
76
|
+
version: '1.4'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
83
|
+
version: '1.4'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: bundler
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,14 +101,14 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
104
|
+
version: '11.1'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
111
|
+
version: '11.1'
|
112
112
|
description: A simple administration interface for Stoplight.
|
113
113
|
email:
|
114
114
|
- camdez@gmail.com
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.2
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: A simple administration interface for Stoplight.
|