swagger_yard-rails 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fcc87bc4874ee5b8f48af16b4cb725a16f67056
|
4
|
+
data.tar.gz: 2f53c1fd278d1e743f49114ede067af66b5d5a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16570151dcde55c9e3d4aad3c7bf8d6f1b1e8b2b5cdefe4912233202058c1c106cb67dfaf57e8f9d444487cb5c0d431198a5c0b241c6924eeb4a22670c183915
|
7
|
+
data.tar.gz: 70fb35e3a4aff52d01c106c991c6420b668f4e76bf012ab7fce2d781e9a91b78d1976752f2489a5605f9205dd9e525a99ff6499a39d469c1b322fb0e0f272f07
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
module SwaggerYard
|
2
2
|
module Rails
|
3
3
|
class SwaggerController < ApplicationController
|
4
|
-
layout
|
4
|
+
layout false
|
5
5
|
|
6
6
|
def doc
|
7
7
|
end
|
8
8
|
|
9
9
|
def index
|
10
|
-
render :json => Swagger.new.to_h
|
10
|
+
render :json => Swagger.new.to_h
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,4 +1,13 @@
|
|
1
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<title><% if SwaggerYard.config.title.present? %><%= SwaggerYard.config.title %><% else %>Swagger UI<% end %></title>
|
6
|
+
<link rel="icon" type="image/png" href="<%= image_path 'favicon-32x32.png' %>" sizes="32x32" />
|
7
|
+
<link rel="icon" type="image/png" href="<%= image_path 'favicon-16x16.png' %>" sizes="16x16" />
|
8
|
+
<%= stylesheet_link_tag "application" %>
|
9
|
+
<%= javascript_include_tag "application" %>
|
10
|
+
<script type="text/javascript">
|
2
11
|
$(function () {
|
3
12
|
var url = window.location.search.match(/url=([^&]+)/);
|
4
13
|
if (url && url.length > 1) {
|
@@ -31,13 +40,20 @@
|
|
31
40
|
|
32
41
|
window.swaggerUi.load();
|
33
42
|
});
|
34
|
-
|
35
|
-
</
|
36
|
-
|
37
|
-
<div
|
38
|
-
<div
|
39
|
-
|
43
|
+
</script>
|
44
|
+
</head>
|
45
|
+
<body class="swagger-section">
|
46
|
+
<div id='header'>
|
47
|
+
<div class="swagger-ui-wrap">
|
48
|
+
<a id="logo" href="http://swagger.io">swagger</a>
|
49
|
+
<form id='api_selector'>
|
50
|
+
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
|
51
|
+
<div class='input'><a id="explore" href="#">Explore</a></div>
|
52
|
+
</form>
|
40
53
|
</div>
|
54
|
+
</div>
|
41
55
|
|
42
|
-
|
43
|
-
|
56
|
+
<div id="message-bar" class="swagger-ui-wrap"> </div>
|
57
|
+
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
|
58
|
+
</body>
|
59
|
+
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger_yard-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|