fidor_starter_kits 0.3.1 → 0.3.2

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: 385c43541dc48c1da99e20d60343799b235029da
4
- data.tar.gz: 31041d4908acaa21af5276df0930cc4681e6ab07
3
+ metadata.gz: f4965c8a528cc069cc760ae21236cfae18d44c2c
4
+ data.tar.gz: 1d51a3c6a79360e5ad7052a7e55108a3ab293a5f
5
5
  SHA512:
6
- metadata.gz: 48ebf73bf2cfa9b42a595c75e214b73b851b6a04c931635f9517d834159f515c5f484ef6d6abdd036b34fa0dc3db5589746f9ee60630a3c0c7231ce860bdc825
7
- data.tar.gz: 7b2f60e6dd06aace2defa0ed5de47fa1fbc782cf529cb35199616b4c42cbad1e43a67ae73eedec59956562290ab6d12ceb6e1776f81828abbffb36d601f90dae
6
+ metadata.gz: 36e6c3a9d859c0219d4b1997b4f01756c441049bfd65a0efce262d481920a7c464e3f20bc4b93ed5b5aa45f2282be7afd0250b954d89fbd69b77a988e092eb11
7
+ data.tar.gz: 49667bf7536f7f85b99b41c510a0d8d6e76c71b2496ecae7b182eaa2b2f317e740f10647ccfb6918834540d3f22b693795e862e7604692b3f67b7f5b7ae8b76d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Changelog Fidor Admin API Schema
2
2
  See [commit messages](https://github.com/fidor/fidor_starter_kits/commits/) for details.
3
3
 
4
+ ##2015-01 v.0.3.2
5
+ *bugfix: proper TLS handling for node example
4
6
 
5
7
  ##2014-12
6
8
 
@@ -9,4 +11,4 @@ See [commit messages](https://github.com/fidor/fidor_starter_kits/commits/) for
9
11
 
10
12
  ##2014-11
11
13
 
12
- * init with plain oauth examples for php, ruby, nodejs, golang, java
14
+ * init with plain oauth examples for php, ruby, nodejs, golang, java
@@ -1,3 +1,3 @@
1
1
  module FidorStarterKits
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -63,7 +63,8 @@ function retrieve_access_token_from_code( code, cb ) {
63
63
  }
64
64
  postData = querystring.stringify(postData)
65
65
 
66
- var token_request = http.request(postOptions, function (res) {
66
+ var http_module = oauth_url.protocol == "https:" ? https : http
67
+ var token_request = http_module.request(postOptions, function (res) {
67
68
  // collect the data chunks we received and reassemble them
68
69
  // on request end ...
69
70
  var data = new Buffer(0)
@@ -126,6 +127,7 @@ function listener (request, response) {
126
127
  var url = require("url")
127
128
  var querystring = require("querystring")
128
129
  var http = require("http")
130
+ var https = require("http")
129
131
 
130
132
  var _url = url.parse(fidor_config.app_url)
131
133
  fidor_config.app_port = _url.port
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fidor_starter_kits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip