try_api 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/try_api/application.js.erb +6 -8
- data/lib/try_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d16dbb8162d703ad4bd7a8163dcdf570e67b720
|
4
|
+
data.tar.gz: 9db9b7cc3ea65b2edaa6c1088725927d25791ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b167a7721be67ad7f0b0fcf35f908b8bcceaee13ff7f754c3d60182b1addc21737fa169538568ab64109e9f2073ae1d05bc2a654f26c30fe691ea351a5372892
|
7
|
+
data.tar.gz: dc523f4f85fcfb8e6329a7cb96703aa4668171a4e4e9e39f68a5452f27fd5db61f1ec227e98ab73d56d9e2f187efa142fd897174e5acd32e9eea1fb50de0e388
|
@@ -72,11 +72,11 @@ TryApiApp.controller('HomeController', [
|
|
72
72
|
headers = {
|
73
73
|
'Content-Type': void 0
|
74
74
|
};
|
75
|
-
method.headers
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
75
|
+
if(method.headers) {
|
76
|
+
method.headers.forEach(function (header) {
|
77
|
+
return headers[header.name] = header.value;
|
78
|
+
});
|
79
|
+
}
|
80
80
|
path = $scope.project.host;
|
81
81
|
if ($scope.project.port) {
|
82
82
|
path += ':' + $scope.project.port;
|
@@ -114,9 +114,7 @@ TryApiApp.controller('HomeController', [
|
|
114
114
|
return $.each($scope.project.menu_items, function() {
|
115
115
|
var menu_item;
|
116
116
|
menu_item = this;
|
117
|
-
|
118
|
-
var method;
|
119
|
-
method = this;
|
117
|
+
menu_item.methods.forEach(function(method) {
|
120
118
|
method.pending = false;
|
121
119
|
method.endpoint = $scope.project.endpoint;
|
122
120
|
method.response_handler = function(data, status, headers, config) {
|
data/lib/try_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: try_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Skubenych
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|