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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8edcad4e223e03c0e62c87821bda85d261108a4
4
- data.tar.gz: 3eaa77429d1e1e114226ad5db6ade121a46c56f8
3
+ metadata.gz: 21a6837b18ab16118d156cf6c60a4755d7b77a5f
4
+ data.tar.gz: 1fb7a084e74974042be3e5727028952ae3a8cb05
5
5
  SHA512:
6
- metadata.gz: 9e39740af0f48f4781537d5b64ad6f94eaa21945d96155a9beed99db588509201233c07f320eda7aa3ba78126a800c857e35a03c26b1fb4d90935e72061c4aee
7
- data.tar.gz: 84d4f1ad8cdb91063fcfa3ad48706722ebae3df3cf78deb947a5c512c62f56c78fada15408b840e5d2014ea24a20f69f4f4d5bc496bfa7e6fd19d4576f009989
6
+ metadata.gz: b2d05859095e77ca73ef8c82d827716ff3d9ee0466567b0118ec929e2078ed852dca96fa95f5157a7e98b613e76359b0815c52b3e04fe8bfc232e26a94d1a2f1
7
+ data.tar.gz: a0ff00b0e9dc1a9ae7f18fa104d0630eda6798aea6450d1af497e2dd13f7e9f6f812186ae05105eaa07e2685e9e51c026ea9a12fa994a1b1f34f392d319a04c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### v0.1.1 (2015-07-13)
4
+
5
+ * bug fix
6
+ * #symbolize_keys spec failing on < ruby-2.2.0
7
+
3
8
  ### v0.1.0 (2015-07-12)
4
9
 
5
10
  * enhancements
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
@@ -1,3 +1,3 @@
1
1
  module JsonWebToken
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -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': 0, 'b': '2', c: '3'}
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2015-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json