try_api 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b70f5119e6f6c1ed2758866e2b99d7fa5a3eaf27
4
- data.tar.gz: 83ac4e4b5956d9c798d454bff2f794ceae5286ad
3
+ metadata.gz: 2d16dbb8162d703ad4bd7a8163dcdf570e67b720
4
+ data.tar.gz: 9db9b7cc3ea65b2edaa6c1088725927d25791ecf
5
5
  SHA512:
6
- metadata.gz: '054497944b9ed98dd8ae2988331dd101cf73df63555c407d0cdfd8a7ec0fb2ec016ac5458a518658def7813ea15975efcbd187856c19356ccc0761087ff620f3'
7
- data.tar.gz: 3b7156f93db5334342172fd6d52b13ac04e707b7d4c14533a24190f786a3d34fa97f4592ded796b836b73bd623ad47c42e9ba5835694b76bb015a50c34915d36
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.forEach(function(i) {
76
- var header;
77
- header = this;
78
- return headers[header.name] = header.value;
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
- return menu_item.methods.forEach(function() {
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) {
@@ -1,3 +1,3 @@
1
1
  module TryApi
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-16 00:00:00.000000000 Z
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails