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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -0
  3. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c18217e5881952639cabcc7db8558713d2ac874
4
- data.tar.gz: 6be1925c4db29d61519817aa67594bcd53abbe95
3
+ metadata.gz: f2e90ae06778440ba770d50a845e3a13e6b7a1f5
4
+ data.tar.gz: 5f8f7bed627d1f8024197bb01fd360c7655d7369
5
5
  SHA512:
6
- metadata.gz: 4c910d36fd485295ee674e4d692fee4f8dd0671f960cd1ce3236b12ba076d75004a855329ce5597d990cf7c725332c2ad5101fc20e7298eebe5e7b7665a0835c
7
- data.tar.gz: aa9eba6edf8a3601e8f8d33a646ba86c260042f683e30afa45995a7ed1169f1e69e6e8b7c361536cf034da1bd765b037f2da0feb7d0bb38b5dbdbd368f83825c
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.1
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: 2016-01-29 00:00:00.000000000 Z
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.0'
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.0'
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: '10.4'
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: '10.4'
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.4.5
145
+ rubygems_version: 2.5.2
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: A simple administration interface for Stoplight.