json_web_token 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -4
- data/lib/json_web_token/version.rb +1 -1
- data/spec/json_web_token/util_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21a6837b18ab16118d156cf6c60a4755d7b77a5f
|
4
|
+
data.tar.gz: 1fb7a084e74974042be3e5727028952ae3a8cb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d05859095e77ca73ef8c82d827716ff3d9ee0466567b0118ec929e2078ed852dca96fa95f5157a7e98b613e76359b0815c52b3e04fe8bfc232e26a94d1a2f1
|
7
|
+
data.tar.gz: a0ff00b0e9dc1a9ae7f18fa104d0630eda6798aea6450d1af497e2dd13f7e9f6f812186ae05105eaa07e2685e9e51c026ea9a12fa994a1b1f34f392d319a04c0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
# JSON Web Token
|
1
|
+
# JSON Web Token [![travis][ci_img]][travis] [![code_climate][cc_img]][code_climate]
|
2
2
|
|
3
3
|
## A JSON Web Token implementation for Ruby
|
4
4
|
|
5
|
-
[![code_climate][cc_img]][code_climate]
|
6
|
-
|
7
5
|
### Description
|
8
6
|
A Ruby implementation of the JSON Web Token (JWT) Standards Track [RFC 7519][rfc7519]
|
9
7
|
|
@@ -96,7 +94,6 @@ opts = {
|
|
96
94
|
claims = JsonWebToken.validate(jwt, opts)
|
97
95
|
|
98
96
|
# unsecured token (algorithm is 'none')
|
99
|
-
|
100
97
|
unsecured_jwt_example = 'eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt.'
|
101
98
|
|
102
99
|
claims = JsonWebToken.validate(unsecured_jwt_example, alg: 'none')
|
@@ -142,5 +139,7 @@ Future implementation may include these features:
|
|
142
139
|
[oauth2]: https://github.com/intridea/oauth2
|
143
140
|
[rack-cors]: https://github.com/cyu/rack-cors
|
144
141
|
|
142
|
+
[travis]: https://travis-ci.org/garyf/json_web_token
|
143
|
+
[ci_img]: https://travis-ci.org/garyf/json_web_token.svg?branch=master
|
145
144
|
[code_climate]: https://codeclimate.com/github/garyf/json_web_token
|
146
145
|
[cc_img]: https://codeclimate.com/github/garyf/json_web_token/badges/gpa.svg
|
@@ -15,7 +15,7 @@ module JsonWebToken
|
|
15
15
|
|
16
16
|
describe '#symbolize_keys' do
|
17
17
|
it 'returns a new hash with all keys converted to symbols' do
|
18
|
-
original = {'a'
|
18
|
+
original = {'a' => 0, 'b' => '2', c: '3'}
|
19
19
|
expect(Util.symbolize_keys original).to include({a: 0, b: '2', c: '3'})
|
20
20
|
expect(original).to eql original
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_web_token
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Fleshman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|