json_web_token 0.3.0 → 0.3.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: c926ffcdb482f32a80eb5e1d15100d5e03be4101
4
- data.tar.gz: f64c2145334ff5c4df4d65816b2295de71a87ead
3
+ metadata.gz: 53e92d6fa2738b3d32a6cb7ab7d1a6ac0b4da985
4
+ data.tar.gz: 18518b039fe8009cb69d73f7a1bb0a7b1e49e520
5
5
  SHA512:
6
- metadata.gz: d6b6b657427e96afc712ff7fcb2af970a1a77ceba8d3579491076ea3fe2b139c51341518778d89475d1e8a1db54fec1046d89f5577ed86fcbcd10149d451ddd0
7
- data.tar.gz: 4f658d73cfc3efd1a4f80aa96e93a7884d6a05a1e83fd6d7ad346a6407eb697c04882b8dd5900c71c8c2094785cdac0a8bbfc23f50b33d8d2946e15ca3a0914f
6
+ metadata.gz: d871623ab5168a3749e59c0c8a249262136517899d3d875cb7401b99a7f80d33134245e5b66b51673327b3e6e90362a8a75d2ae6082d6f2060404363e7408911
7
+ data.tar.gz: 769622487b7bfc6df0013f4c977e39a17f1f0975328ecb26f7c7c1718e9c96bc66e170321c749beaabebd83c55061bfcdf90b7fa7d927322ffcf8b9032d342e0
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### v0.3.1 (2015-08-25)
4
+
5
+ * bug fix
6
+ * README escaping removed
7
+
3
8
  ### v0.3.0 (2015-08-25)
4
9
 
5
10
  * backward incompatible changes
data/README.md CHANGED
@@ -83,7 +83,7 @@ require 'json_web_token'
83
83
  secure_jwt_example = 'eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt.cGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk'
84
84
 
85
85
  # verify with default algorithm, HMAC SHA256
86
- \{ok: claims\} = JsonWebToken.verify(secure_jwt_example, key: 'gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr9C')
86
+ {ok: claims} = JsonWebToken.verify(secure_jwt_example, key: 'gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr9C')
87
87
 
88
88
  # verify with RSA SHA256 algorithm
89
89
  opts = {
@@ -91,12 +91,12 @@ opts = {
91
91
  key: < RSA public key >
92
92
  }
93
93
 
94
- \{ok: claims\} = JsonWebToken.verify(jwt, opts)
94
+ {ok: claims} = JsonWebToken.verify(jwt, opts)
95
95
 
96
96
  # unsecured token (algorithm is 'none')
97
97
  unsecured_jwt_example = 'eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt.'
98
98
 
99
- \{ok: claims\} = JsonWebToken.verify(unsecured_jwt_example, alg: 'none')
99
+ {ok: claims} = JsonWebToken.verify(unsecured_jwt_example, alg: 'none')
100
100
 
101
101
  ```
102
102
  ### Supported encryption algorithms
@@ -1,3 +1,3 @@
1
1
  module JsonWebToken
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_web_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Fleshman