rswag-ui 2.4.0 → 2.5.0.rc1

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
  SHA256:
3
- metadata.gz: 38759d6e8c3155d1b33233e44b0fe7d00675e7a724fd503baf856fba545f266b
4
- data.tar.gz: 27b62bfadbc8ee3ed0c31c0660ef0fa46bdc26d02614b7ba2bab36afe8e5187d
3
+ metadata.gz: a00f79c585d87ad78036ccd961d658ddecdf2881a3b031f3a7084afa2fa13a5e
4
+ data.tar.gz: dd87975f51def9fbfc5cd53e30347c91a3043ef274e81e6b8437a934295e9140
5
5
  SHA512:
6
- metadata.gz: 54cc8531d5bde45dfa9eecc36b50c187a1fb28dd20df6613d6f4c58892fabbf2d0b145a8262cbb3725d10ac522a74b9bd02cd56ba3f3c454d20d6a00bad61a7a
7
- data.tar.gz: 3d57b9935498b571ff7148092db1984f3a17dc0b36400f0b8c2ab0109bf820914b7bef09ebc7984944a7897e195a8ae144c7b3f8f5d4e3068153e466dbd85c95
6
+ metadata.gz: cb73a34586b31c593b6d0d564539c7481276469af5cbead4e0cbc88aa780baad93714406e719e2fddfe95f5153f543eff3e9a647ac5078a20d2bfe6d5bae0be7
7
+ data.tar.gz: b1ae86aa30de2be25156906899ef80191d6a47ff0dae7f1e34d00b162d9ea7c39b527fc4c0104303d8ff88deed8c983a5b2a0c95e04e04308e9e218578a561c4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rswag-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richie Morris
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-09 00:00:00.000000000 Z
13
+ date: 2022-02-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.1'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '7.0'
24
+ version: '7.1'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '3.1'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '7.0'
34
+ version: '7.1'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: railties
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -41,7 +41,7 @@ dependencies:
41
41
  version: '3.1'
42
42
  - - "<"
43
43
  - !ruby/object:Gem::Version
44
- version: '7.0'
44
+ version: '7.1'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
@@ -51,7 +51,7 @@ dependencies:
51
51
  version: '3.1'
52
52
  - - "<"
53
53
  - !ruby/object:Gem::Version
54
- version: '7.0'
54
+ version: '7.1'
55
55
  description: 'Expose beautiful API documentation, powered by Swagger JSON endpoints,
56
56
  including a UI to explore and test operations. More about the OpenAPI initiative
57
57
  here: http://spec.openapis.org/'
@@ -75,26 +75,6 @@ files:
75
75
  - lib/rswag/ui/index.erb
76
76
  - lib/rswag/ui/middleware.rb
77
77
  - lib/tasks/rswag-ui_tasks.rake
78
- - node_modules/swagger-ui-dist/README.md
79
- - node_modules/swagger-ui-dist/absolute-path.js
80
- - node_modules/swagger-ui-dist/favicon-16x16.png
81
- - node_modules/swagger-ui-dist/favicon-32x32.png
82
- - node_modules/swagger-ui-dist/index.html
83
- - node_modules/swagger-ui-dist/index.js
84
- - node_modules/swagger-ui-dist/oauth2-redirect.html
85
- - node_modules/swagger-ui-dist/package.json
86
- - node_modules/swagger-ui-dist/swagger-ui-bundle.js
87
- - node_modules/swagger-ui-dist/swagger-ui-bundle.js.map
88
- - node_modules/swagger-ui-dist/swagger-ui-es-bundle-core.js
89
- - node_modules/swagger-ui-dist/swagger-ui-es-bundle-core.js.map
90
- - node_modules/swagger-ui-dist/swagger-ui-es-bundle.js
91
- - node_modules/swagger-ui-dist/swagger-ui-es-bundle.js.map
92
- - node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js
93
- - node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js.map
94
- - node_modules/swagger-ui-dist/swagger-ui.css
95
- - node_modules/swagger-ui-dist/swagger-ui.css.map
96
- - node_modules/swagger-ui-dist/swagger-ui.js
97
- - node_modules/swagger-ui-dist/swagger-ui.js.map
98
78
  homepage: https://github.com/rswag/rswag
99
79
  licenses:
100
80
  - MIT
@@ -110,11 +90,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
90
  version: '0'
111
91
  required_rubygems_version: !ruby/object:Gem::Requirement
112
92
  requirements:
113
- - - ">="
93
+ - - ">"
114
94
  - !ruby/object:Gem::Version
115
- version: '0'
95
+ version: 1.3.1
116
96
  requirements: []
117
- rubygems_version: 3.0.6
97
+ rubygems_version: 3.3.3
118
98
  signing_key:
119
99
  specification_version: 4
120
100
  summary: A Rails Engine that includes swagger-ui and powers it from configured OpenAPI
@@ -1,22 +0,0 @@
1
- # Swagger UI Dist
2
- [![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)
3
-
4
- # API
5
-
6
- This module, `swagger-ui-dist`, exposes Swagger-UI's entire dist folder as a dependency-free npm module.
7
- Use `swagger-ui` instead, if you'd like to have npm install dependencies for you.
8
-
9
- `SwaggerUIBundle` and `SwaggerUIStandalonePreset` can be imported:
10
- ```javascript
11
- import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist"
12
- ```
13
-
14
- To get an absolute path to this directory for static file serving, use the exported `getAbsoluteFSPath` method:
15
-
16
- ```javascript
17
- const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()
18
-
19
- // then instantiate server that serves files from the swaggerUiAssetPath
20
- ```
21
-
22
- For anything else, check the [Swagger-UI](https://github.com/swagger-api/swagger-ui) repository.
@@ -1,14 +0,0 @@
1
- /*
2
- * getAbsoluteFSPath
3
- * @return {string} When run in NodeJS env, returns the absolute path to the current directory
4
- * When run outside of NodeJS, will return an error message
5
- */
6
- const getAbsoluteFSPath = function () {
7
- // detect whether we are running in a browser or nodejs
8
- if (typeof module !== "undefined" && module.exports) {
9
- return require("path").resolve(__dirname)
10
- }
11
- throw new Error('getAbsoluteFSPath can only be called within a Nodejs environment');
12
- }
13
-
14
- module.exports = getAbsoluteFSPath
@@ -1,60 +0,0 @@
1
- <!-- HTML for static distribution bundle build -->
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <title>Swagger UI</title>
7
- <link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
8
- <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
9
- <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
10
- <style>
11
- html
12
- {
13
- box-sizing: border-box;
14
- overflow: -moz-scrollbars-vertical;
15
- overflow-y: scroll;
16
- }
17
-
18
- *,
19
- *:before,
20
- *:after
21
- {
22
- box-sizing: inherit;
23
- }
24
-
25
- body
26
- {
27
- margin:0;
28
- background: #fafafa;
29
- }
30
- </style>
31
- </head>
32
-
33
- <body>
34
- <div id="swagger-ui"></div>
35
-
36
- <script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
37
- <script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
38
- <script>
39
- window.onload = function() {
40
- // Begin Swagger UI call region
41
- const ui = SwaggerUIBundle({
42
- url: "https://petstore.swagger.io/v2/swagger.json",
43
- dom_id: '#swagger-ui',
44
- deepLinking: true,
45
- presets: [
46
- SwaggerUIBundle.presets.apis,
47
- SwaggerUIStandalonePreset
48
- ],
49
- plugins: [
50
- SwaggerUIBundle.plugins.DownloadUrl
51
- ],
52
- layout: "StandaloneLayout"
53
- })
54
- // End Swagger UI call region
55
-
56
- window.ui = ui
57
- }
58
- </script>
59
- </body>
60
- </html>
@@ -1,17 +0,0 @@
1
- try {
2
- module.exports.SwaggerUIBundle = require("./swagger-ui-bundle.js")
3
- module.exports.SwaggerUIStandalonePreset = require("./swagger-ui-standalone-preset.js")
4
- } catch(e) {
5
- // swallow the error if there's a problem loading the assets.
6
- // allows this module to support providing the assets for browserish contexts,
7
- // without exploding in a Node context.
8
- //
9
- // see https://github.com/swagger-api/swagger-ui/issues/3291#issuecomment-311195388
10
- // for more information.
11
- }
12
-
13
- // `absolutePath` and `getAbsoluteFSPath` are both here because at one point,
14
- // we documented having one and actually implemented the other.
15
- // They were both retained so we don't break anyone's code.
16
- module.exports.absolutePath = require("./absolute-path.js")
17
- module.exports.getAbsoluteFSPath = require("./absolute-path.js")
@@ -1,75 +0,0 @@
1
- <!doctype html>
2
- <html lang="en-US">
3
- <head>
4
- <title>Swagger UI: OAuth2 Redirect</title>
5
- </head>
6
- <body>
7
- </body>
8
- </html>
9
- <script>
10
- 'use strict';
11
- function run () {
12
- var oauth2 = window.opener.swaggerUIRedirectOauth2;
13
- var sentState = oauth2.state;
14
- var redirectUrl = oauth2.redirectUrl;
15
- var isValid, qp, arr;
16
-
17
- if (/code|token|error/.test(window.location.hash)) {
18
- qp = window.location.hash.substring(1);
19
- } else {
20
- qp = location.search.substring(1);
21
- }
22
-
23
- arr = qp.split("&")
24
- arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
25
- qp = qp ? JSON.parse('{' + arr.join() + '}',
26
- function (key, value) {
27
- return key === "" ? value : decodeURIComponent(value)
28
- }
29
- ) : {}
30
-
31
- isValid = qp.state === sentState
32
-
33
- if ((
34
- oauth2.auth.schema.get("flow") === "accessCode" ||
35
- oauth2.auth.schema.get("flow") === "authorizationCode" ||
36
- oauth2.auth.schema.get("flow") === "authorization_code"
37
- ) && !oauth2.auth.code) {
38
- if (!isValid) {
39
- oauth2.errCb({
40
- authId: oauth2.auth.name,
41
- source: "auth",
42
- level: "warning",
43
- message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
44
- });
45
- }
46
-
47
- if (qp.code) {
48
- delete oauth2.state;
49
- oauth2.auth.code = qp.code;
50
- oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
51
- } else {
52
- let oauthErrorMsg
53
- if (qp.error) {
54
- oauthErrorMsg = "["+qp.error+"]: " +
55
- (qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
56
- (qp.error_uri ? "More info: "+qp.error_uri : "");
57
- }
58
-
59
- oauth2.errCb({
60
- authId: oauth2.auth.name,
61
- source: "auth",
62
- level: "error",
63
- message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server"
64
- });
65
- }
66
- } else {
67
- oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
68
- }
69
- window.close();
70
- }
71
-
72
- window.addEventListener('DOMContentLoaded', function () {
73
- run();
74
- });
75
- </script>
@@ -1,74 +0,0 @@
1
- {
2
- "_args": [
3
- [
4
- "swagger-ui-dist@3.42.0",
5
- "/home/travis/build/rswag/rswag/rswag-ui"
6
- ]
7
- ],
8
- "_from": "swagger-ui-dist@3.42.0",
9
- "_id": "swagger-ui-dist@3.42.0",
10
- "_inBundle": false,
11
- "_integrity": "sha512-hTNX6cX7KWtBZgk6ZQSOzsBJhqdCmD5NOIjb6dBPKSnYZidSkIXOcaPMR3+kwxLrj8bDC881bSDlNbLsHikacg==",
12
- "_location": "/swagger-ui-dist",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "swagger-ui-dist@3.42.0",
18
- "name": "swagger-ui-dist",
19
- "escapedName": "swagger-ui-dist",
20
- "rawSpec": "3.42.0",
21
- "saveSpec": null,
22
- "fetchSpec": "3.42.0"
23
- },
24
- "_requiredBy": [
25
- "/"
26
- ],
27
- "_resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-3.42.0.tgz",
28
- "_spec": "3.42.0",
29
- "_where": "/home/travis/build/rswag/rswag/rswag-ui",
30
- "bugs": {
31
- "url": "https://github.com/swagger-api/swagger-ui/issues"
32
- },
33
- "contributors": [
34
- {
35
- "url": "in alphabetical order"
36
- },
37
- {
38
- "name": "Anna Bodnia",
39
- "email": "anna.bodnia@gmail.com"
40
- },
41
- {
42
- "name": "Buu Nguyen",
43
- "email": "buunguyen@gmail.com"
44
- },
45
- {
46
- "name": "Josh Ponelat",
47
- "email": "jponelat@gmail.com"
48
- },
49
- {
50
- "name": "Kyle Shockey",
51
- "email": "kyleshockey1@gmail.com"
52
- },
53
- {
54
- "name": "Robert Barnwell",
55
- "email": "robert@robertismy.name"
56
- },
57
- {
58
- "name": "Sahar Jafari",
59
- "email": "shr.jafari@gmail.com"
60
- }
61
- ],
62
- "dependencies": {},
63
- "description": "[![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)",
64
- "devDependencies": {},
65
- "homepage": "https://github.com/swagger-api/swagger-ui#readme",
66
- "license": "Apache-2.0",
67
- "main": "index.js",
68
- "name": "swagger-ui-dist",
69
- "repository": {
70
- "type": "git",
71
- "url": "git+ssh://git@github.com/swagger-api/swagger-ui.git"
72
- },
73
- "version": "3.42.0"
74
- }