rack-indicium 1.0.0 → 1.1.0

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: e2c76d792fe805b3a669ecb042fa8842707e9ca7
4
- data.tar.gz: 1012a5a357b0c0d8bb8b37b3df7760a75caddc99
3
+ metadata.gz: 46a66e02e36c6368bfeef8594f097955a159096f
4
+ data.tar.gz: b6cec0b3551bd9a2786cf4e916f65704446f973b
5
5
  SHA512:
6
- metadata.gz: d9b41b6559bf5e2466f233fed93bfaaafa72ded1b8e7f54587ffc6dbdda69f8c422509013241f0d3b56cfd50d43becfbf530706917b256b3d10a702f6c8fa52c
7
- data.tar.gz: d2716be198f797d4c30e3e8adfc0a666511669da1a2d8be5ccb964dfea2a3ab4a198e4f59a383f535592ce555c3dd58027af9f056e1b6c07626b4d7e0ca08a81
6
+ metadata.gz: cfa63074a7cadf5500f559bc85cdbd2056e68fd2201d44715db5a72dbadbc6fd967c83960f4a3e069a09253df3cc4792a640e54df0804ea9e20f7b73dc174a39
7
+ data.tar.gz: 2578bc1a7df8b1b2edf218ccb9aa9c64c5af1dc532ad9748e68c84e2a294615f96053410ea234082e59948065e2e21d225813e22c7f49263c6c49c59d0f8f8df
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Rack::Indicium
2
2
 
3
- [![Build Status](https://magnum.travis-ci.com/twingly/rack-indicium.svg?token=ADz8fWxRD3uP4KZPPZQS&branch=master)](https://magnum.travis-ci.com/twingly/rack-indicium)
3
+ [![Build Status](https://travis-ci.org/twingly/rack-indicium.svg)](https://travis-ci.org/twingly/rack-indicium)
4
4
 
5
5
  If a [JSON Web Token (JWT)](http://jwt.io/) is sent in the header, it will be decoded and available in the `jwt.payload` and `jwt.header` rack `env` variables.
6
6
 
@@ -69,3 +69,13 @@ run App
69
69
  5. Create a new Pull Request
70
70
 
71
71
  [Sentry Raven]: https://github.com/getsentry/raven-ruby
72
+
73
+ ## Release workflow
74
+
75
+ Build the gem.
76
+
77
+ gem build rack-indicium.gemspec
78
+
79
+ [Publish](http://guides.rubygems.org/publishing/) the gem.
80
+
81
+ gem push rack-indicium-x.y.z.gem
data/lib/rack/indicium.rb CHANGED
@@ -32,6 +32,7 @@ module Rack
32
32
  return unless jwt_payload
33
33
  return unless jwt_header
34
34
 
35
+ env["jwt.raw"] = jwt
35
36
  env["jwt.payload"] = jwt_payload
36
37
  env["jwt.header"] = jwt_header
37
38
  end
@@ -20,6 +20,7 @@ module Rack
20
20
 
21
21
  def check_for_jwt(env)
22
22
  context = {
23
+ "jwt.raw" => env["jwt.raw"],
23
24
  "jwt.header" => env["jwt.header"],
24
25
  "jwt.payload" => env["jwt.payload"],
25
26
  }
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Indicium
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-indicium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twingly AB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -180,3 +180,4 @@ signing_key:
180
180
  specification_version: 4
181
181
  summary: Rack JWT helpers
182
182
  test_files: []
183
+ has_rdoc: