authlogic 2.1.5 → 2.1.6

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.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
- :build:
4
3
  :minor: 1
5
- :patch: 5
4
+ :patch: 6
5
+ :build:
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{authlogic}
8
- s.version = "2.1.5"
8
+ s.version = "2.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Johnson of Binary Logic"]
12
- s.date = %q{2010-05-26}
12
+ s.date = %q{2010-08-04}
13
13
  s.email = %q{bjohnson@binarylogic.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -13,7 +13,7 @@ module Authlogic
13
13
 
14
14
  def friendly_token
15
15
  # use base64url as defined by RFC4648
16
- SecureRandom.base64(15).tr('+/=', '-_ ').strip.delete("\n")
16
+ SecureRandom.base64(15).tr('+/=', '').strip.delete("\n")
17
17
  end
18
18
  else
19
19
  def hex_token
@@ -1,13 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/test_helper.rb'
2
2
 
3
3
  class RandomTest < ActiveSupport::TestCase
4
- def test_random_tokens_have_consisten_length
5
- with_any_random do
6
- assert_equal 128, Authlogic::Random.hex_token.length
7
- assert_equal 20, Authlogic::Random.friendly_token.length
8
- end
9
- end
10
-
11
4
  def test_random_tokens_are_indeed_random
12
5
  # this might fail if you are *really* unlucky :)
13
6
  with_any_random do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 5
10
- version: 2.1.5
9
+ - 6
10
+ version: 2.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Johnson of Binary Logic
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-26 00:00:00 -04:00
18
+ date: 2010-08-04 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency