swagger-ui_rails 0.1.0 → 0.1.2

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: f0fb3b0fc2c244610a947832b02c782488d68313
4
- data.tar.gz: d64d082c47838087751e91a4b1490800c4fa3774
3
+ metadata.gz: 7ad58ddad08485ae2974906f56aeddc6c0e1fa8f
4
+ data.tar.gz: 53d1b3faf304e780afba734ad0cc4c758f472e98
5
5
  SHA512:
6
- metadata.gz: dbe3689f6b0dd18c3a46616d5fbcfb262f9f904af980174fd404e2e734d8f6e2f950e48f3e4a930dcc03bc4801aa5018ec6e6dff9e8e21cc095a078bab69e448
7
- data.tar.gz: 57b8f6542b359efbc7deb526f794db33439115e065949a51a12d5ce41286f559d10c84694ae28dd65a2ce9fd44ad9d45bdcaa99fad318d4ab9fb3d069e16a03a
6
+ metadata.gz: 2006eac9b9d25042b2579bd1076bc9de7ab22479cf1dd880432aa4adbf8d472bdbba753c57c399d76d54daa08f98097a9d2e6839f17e57f211890062e944a289
7
+ data.tar.gz: f0369a36ecb23adac9b29008f1de770452772e4df995919020aa157d0613e9e0c2730e45534ca67dbbe70833405e08b9c561c72f6905f405349d9fb4a3976603
@@ -1188,19 +1188,46 @@
1188
1188
  }
1189
1189
  cb = obj.on;
1190
1190
  res = {
1191
- error: function(response) {
1191
+ error: function(raw) {
1192
+ var headers, out;
1192
1193
  if (obj) {
1193
- return cb.error(response);
1194
+ headers = raw._headers;
1195
+ out = {
1196
+ headers: headers,
1197
+ url: raw.request.url,
1198
+ method: raw.request.method,
1199
+ status: raw.status,
1200
+ data: raw.content.data
1201
+ };
1202
+ return cb.error(out);
1194
1203
  }
1195
1204
  },
1196
- redirect: function(response) {
1205
+ redirect: function(raw) {
1206
+ var headers, out;
1197
1207
  if (obj) {
1198
- return cb.redirect(response);
1208
+ headers = raw._headers;
1209
+ out = {
1210
+ headers: headers,
1211
+ url: raw.request.url,
1212
+ method: raw.request.method,
1213
+ status: raw.status,
1214
+ data: raw.content.data
1215
+ };
1216
+ return cb.redirect(out);
1199
1217
  }
1200
1218
  },
1201
- 307: function(response) {
1219
+ 307: function(raw) {
1220
+ var headers, out;
1202
1221
  if (obj) {
1203
- return cb.redirect(response);
1222
+ headers = raw._headers;
1223
+ out = {
1224
+ headers: headers,
1225
+ url: raw.request.url,
1226
+ method: raw.request.method,
1227
+ status: raw.status,
1228
+ data: raw.content.data
1229
+ };
1230
+ return cb.redirect(out);
1204
1231
  }
1205
1232
  },
1206
1233
  response: function(raw) {
@@ -1424,4 +1451,4 @@
1424
1451
 
1425
1452
  this.authorizations = new SwaggerAuthorizations();
1426
1453
 
1427
- }).call(this);
1454
+ }).call(this);
@@ -365,7 +365,7 @@ function program9(depth0,data) {
365
365
  function program11(depth0,data) {
366
366
 
367
367
 
368
- return "\n <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <img alt='Throbber' class='response_throbber' src='images/throbber.gif' style='display:none' />\n </div>\n ";
368
+ return "\n <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <img alt='Throbber' class='response_throbber' src='/throbber.gif' style='display:none' />\n </div>\n ";
369
369
  }
370
370
 
371
371
  buffer += "\n <ul class='operations' >\n <li class='";
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  module UiRails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger-ui_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,7 +51,6 @@ files:
51
51
  - README.md
52
52
  - Rakefile
53
53
  - app/assets/images/logo_small.png
54
- - app/assets/images/throbber.gif
55
54
  - app/assets/javascripts/lib/backbone-min.js
56
55
  - app/assets/javascripts/lib/handlebars-1.0.0.js
57
56
  - app/assets/javascripts/lib/highlight.7.3.pack.js
@@ -72,6 +71,7 @@ files:
72
71
  - lib/swagger-ui_rails.rb
73
72
  - lib/swagger-ui_rails/engine.rb
74
73
  - lib/swagger-ui_rails/version.rb
74
+ - public/throbber.gif
75
75
  - swagger-ui_rails.gemspec
76
76
  homepage: https://github.com/d4be4st/swagger-ui_rails
77
77
  licenses: