speakeasy_ruby_sdk 0.0.2 → 0.0.3

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: a5c7142f13bf9e5fe0b870f84fbde001a0dc208b88274c95af17c224cd026b11
4
- data.tar.gz: 150c305a6072b82d34012ee990cd00e7bba4692a05a3afd9c18e060c9afcbf86
3
+ metadata.gz: 4effbaa0cda858d56dc7f8ba0f14f8b31a7e62b7ce8e269a1327a22fa290b248
4
+ data.tar.gz: 3a04b32518dbe2aff768875fd4e81bab54798be961e99ee1408aa9bc7a9a2443
5
5
  SHA512:
6
- metadata.gz: 5e4701dc4f70b099babe9c44c1f4d0083c582de5397cb8d92509824402809a19db505dde9c7b0fdd44aa04a70dbe01fbe1134266c2f9b10085cb3bd8de38b04b
7
- data.tar.gz: a9c69ed3438cd68bbe36242087f06f2912d6c1ad3372a1a8260a9417aca7cab6e4530eafa166ac48b681256acacb72deea604b58b59908afd029612081934af0
6
+ metadata.gz: dbace0f72af66971fd53e7a56b7e4f3217a22f4b74131250b638f62059ffbb5920db6228bd5b5d96ad7c8e9162d2243ad29f8ce535a5a4961e60c8d2b46c759d
7
+ data.tar.gz: f2db0d1a362985c049f74ee2616b1b563a63ded239618458e1b5fa64518394d6e99ee1801c75333c04d91703c7298e7d66ea164f13accba4a0d88cbce7b7be23
@@ -59,6 +59,9 @@ module SpeakeasyRubySdk
59
59
  response_cookies = HTTP::CookieJar.new()
60
60
  if response_headers.include? 'set-cookie'
61
61
  cookies = response_headers['set-cookie']
62
+ if cookies.is_a? String
63
+ cookies = cookies.split("\n")
64
+ end
62
65
  cookies.map { |cookie| response_cookies.parse(cookie, unmasked_url) }
63
66
  end
64
67
 
@@ -12,12 +12,11 @@ module SpeakeasyRubySdk
12
12
  request_uri = request_uri.split('?')[0]
13
13
  end
14
14
  scheme = env['rack.url_scheme']
15
- host = env['HTTP_HOST']
16
15
  if !query_params.nil? && !query_params.empty?
17
16
  updated_query_string = URI.encode_www_form query_params
18
- URI("#{scheme}://#{host}#{request_uri}?#{updated_query_string}")
17
+ URI("#{scheme}://#{request_uri}?#{updated_query_string}")
19
18
  else
20
- URI("#{scheme}://#{host}#{request_uri}")
19
+ URI("#{scheme}://#{request_uri}")
21
20
  end
22
21
  end
23
22
  end
@@ -1,3 +1,3 @@
1
1
  module SpeakeasyRubySdk
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/test/bulk_test.rb CHANGED
@@ -54,7 +54,7 @@ class BulkTest < Test::Unit::TestCase
54
54
  for pair in file_pairs
55
55
  input = JSON.parse(File.read(pair.infile))
56
56
  puts "Testing #{pair.infile}, #{pair.outfile}"
57
- config = {api_id: '123', version_id: '1.0'}
57
+ config = {api_id: '123', api_key: 'abcd', version_id: '1.0'}
58
58
 
59
59
  ## Parse Masking Inputs
60
60
  masking = []
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
@@ -3,7 +3,7 @@
3
3
  "version": "1.2",
4
4
  "creator": {
5
5
  "name": "SpeakeasyRubySdk",
6
- "version": "0.0.1"
6
+ "version": "0.0.3"
7
7
  },
8
8
  "entries": [
9
9
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakeasy_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Bentley