tito 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbcfc2e33a486952025a18c74a0d7d5ea16a9eaf
4
- data.tar.gz: 00dac2e1cbafaf7db2b62e307392e4e578c38992
3
+ metadata.gz: 918ce8db06477eca39dc90a359bfa30cc1f0d8d2
4
+ data.tar.gz: a0004c7c9e0278895c92d32df0a576eed6019dea
5
5
  SHA512:
6
- metadata.gz: 4f73f2adb05d5fece4893ff3662c7c23f3f9cf9d615c939873ca9c073116b631f6d74a7246d885841772e3cb7fa71604524a64f0854ac0b46990e37102c623c5
7
- data.tar.gz: dbddf26fd4a90bb00241ffb3204bf172733fe64b10462b26d1a7efebda02b864aff2e269368919b235a07292d0c10abebaf43a2b2fa7cc3cffe943942233e173
6
+ metadata.gz: 9c8157e53fe70d6f8cb57218536f23513632d446839ed721e7f96022df435620da721ca71a0f48acc2da96252e29f22f1ab920372f8325e459a23645efc5acd8
7
+ data.tar.gz: a7effb0b35f05eeb56e2c8a7d1effc813ef8a3a4fa5920b3d4dd079d484fce6c7b83a36f9129270e0a2d8991ecc224333359955be30771e1d30f15253a85abc4
@@ -14,7 +14,11 @@ module Tito
14
14
 
15
15
  if token.respond_to?(:empty?) && !token.empty?
16
16
  env[:url].query = build_query params
17
- env[:request_headers][AUTH_HEADER] ||= %(Bearer #{token})
17
+ if token.length > 30
18
+ env[:request_headers][AUTH_HEADER] ||= %(Bearer #{token})
19
+ else
20
+ env[:request_headers][AUTH_HEADER] ||= %(Token token="#{token}")
21
+ end
18
22
  end
19
23
 
20
24
  @app.call env
@@ -1,3 +1,3 @@
1
1
  module Tito
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: tito
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
  - Paul Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2016-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client