jwt 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/jwt.gemspec +2 -2
- data/lib/jwt.rb +1 -1
- data/spec/jwt_spec.rb +7 -0
- metadata +2 -2
data/Rakefile
CHANGED
data/jwt.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "jwt"
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.11"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jeff Lindsay"]
|
9
|
-
s.date = "2014-01-
|
9
|
+
s.date = "2014-01-17"
|
10
10
|
s.description = "JSON Web Token implementation in Ruby"
|
11
11
|
s.email = "progrium@gmail.com"
|
12
12
|
s.extra_rdoc_files = ["lib/jwt.rb"]
|
data/lib/jwt.rb
CHANGED
data/spec/jwt_spec.rb
CHANGED
@@ -159,4 +159,11 @@ PUBKEY
|
|
159
159
|
)
|
160
160
|
lambda { JWT.decode(jwt, pubkey, true) }.should raise_error(JWT::DecodeError)
|
161
161
|
end
|
162
|
+
|
163
|
+
describe "urlsafe base64 encoding" do
|
164
|
+
it "replaces + and / with - and _" do
|
165
|
+
Base64.stub(:encode64) { "string+with/non+url-safe/characters_" }
|
166
|
+
JWT.base64url_encode("foo").should == "string-with_non-url-safe_characters_"
|
167
|
+
end
|
168
|
+
end
|
162
169
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|