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: c9a3c7979e9094f3ae93147cf96f9d5911f4e76a
4
- data.tar.gz: 6d3f96edd8d111b2a04e66dd92d89c65cdf15bde
3
+ metadata.gz: 6fcc87bc4874ee5b8f48af16b4cb725a16f67056
4
+ data.tar.gz: 2f53c1fd278d1e743f49114ede067af66b5d5a8c
5
5
  SHA512:
6
- metadata.gz: 824fd5b2ea22087dbd9bd1605d575ffab6ae34367dc437eb6506594c51c27ae6460a0cd8c2be0f689ec7d2ed524e52dd5542c91f2c4c9fc585e265d7b1124fb5
7
- data.tar.gz: 77316e1bdc076df24a5a72dc9c62c7fe745ca2c99cc89306cef1f056abdc7244856d4b41d9d9884c24d9abe865267979c5df3126a96b4dae80870d837d486d83
6
+ metadata.gz: 16570151dcde55c9e3d4aad3c7bf8d6f1b1e8b2b5cdefe4912233202058c1c106cb67dfaf57e8f9d444487cb5c0d431198a5c0b241c6924eeb4a22670c183915
7
+ data.tar.gz: 70fb35e3a4aff52d01c106c991c6420b668f4e76bf012ab7fce2d781e9a91b78d1976752f2489a5605f9205dd9e525a99ff6499a39d469c1b322fb0e0f272f07
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # SwaggerYard-Rails Changelog
2
2
 
3
+ ## 0.3.1 -- 22-12-2015 ##
4
+
5
+ * Don't use application layout for swagger#doc, makes setup easier
6
+
3
7
  ## 0.3.0 -- 16-12-2015 ##
4
8
 
5
9
  * Don't clobber controller/model lookup paths in initializer if they have
@@ -1,13 +1,13 @@
1
1
  module SwaggerYard
2
2
  module Rails
3
3
  class SwaggerController < ApplicationController
4
- layout 'application'
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, :layout => false
10
+ render :json => Swagger.new.to_h
11
11
  end
12
12
  end
13
13
  end
@@ -1,4 +1,13 @@
1
- <script type="text/javascript">
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
- </script>
36
-
37
- <div class="swagger-section">
38
- <div id="message-bar" class="swagger-ui-wrap">
39
- &nbsp;
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
- <div id="swagger-ui-container" class="swagger-ui-wrap"></div>
43
- </div>
56
+ <div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
57
+ <div id="swagger-ui-container" class="swagger-ui-wrap"></div>
58
+ </body>
59
+ </html>
@@ -1,5 +1,5 @@
1
1
  module SwaggerYard
2
2
  module Rails
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails