webget_ruby_secure_token 1.2.0 → 1.2.1

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.tar.gz.sig CHANGED
Binary file
data/LICENSE.txt ADDED
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+
3
+ You may choose any of these licenses:
4
+
5
+ - CreativeCommons License, Non-commercial Share Alike
6
+ - LGPL, GNU Lesser General Public License
7
+ - MIT License
8
+ - Ruby License
9
+
10
+ THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
11
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
data/README.rdoc ADDED
@@ -0,0 +1,25 @@
1
+
2
+ = WebGet Ruby Gem: SecureToken
3
+
4
+ Author:: Joel Parker Henderson, joelparkerhenderson@gmail.com
5
+ Copyright:: Copyright (c) 2006-2010 Joel Parker Henderson
6
+ License:: CreativeCommons License, Non-commercial Share Alike
7
+ License:: LGPL, GNU Lesser General Public License
8
+
9
+ Random token generator to create strong secure text tokens.
10
+
11
+ ==Example
12
+ SecureToken.new => "kavzwbnxremyqlkw"
13
+
14
+ This generates a 16-character token of all lowercase letters,
15
+ using Ruby's securerandom methods.
16
+
17
+ SecureToken is a string, so you can do any string methods on it.
18
+ You can change how tokens are randomly created, however you want.
19
+
20
+ ==SecureRandom
21
+
22
+ Ruby 1.8.6 and older does not have a secure random number method,
23
+ so this gem checks to see if the SecureRandom class is defined;
24
+ if it is not, then we require our webget_ruby_secure_random gem.
25
+
@@ -18,11 +18,15 @@ using Ruby's securerandom methods.
18
18
  SecureToken is a string, so you can do any string methods on it.
19
19
  You can change how tokens are randomly created, however you want.
20
20
 
21
+ ==SecureRandom
22
+
23
+ Ruby 1.8.6 and older does not have a secure random number method,
24
+ so this gem checks to see if the SecureRandom class is defined;
25
+ if it is not, then we require our webget_ruby_secure_random gem.
26
+
21
27
  =end
22
28
 
23
29
 
24
- # Ruby 1.8.6 and older does not have a secure random_number method,
25
- # so we require our secure random gem which provides the method.
26
30
  if !defined?(SecureRandom) then require 'webget_ruby_secure_random' end
27
31
 
28
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webget_ruby_secure_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - WebGet
@@ -32,19 +32,10 @@ cert_chain:
32
32
  DXnLFY0cVuBnNDMOOFl8vk1qIcZjcTovhzgcixpG6Uk5qmUsKHRLQf4oQJx7TfLK
33
33
  -----END CERTIFICATE-----
34
34
 
35
- date: 2010-02-17 00:00:00 -08:00
35
+ date: 2010-02-19 00:00:00 -08:00
36
36
  default_executable:
37
- dependencies:
38
- - !ruby/object:Gem::Dependency
39
- name: webget_ruby_secure_random
40
- type: :runtime
41
- version_requirement:
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 1.2.0
47
- version:
37
+ dependencies: []
38
+
48
39
  description:
49
40
  email: webget@webget.com
50
41
  executables: []
@@ -54,6 +45,8 @@ extensions: []
54
45
  extra_rdoc_files: []
55
46
 
56
47
  files:
48
+ - README.rdoc
49
+ - LICENSE.txt
57
50
  - lib/webget_ruby_secure_token.rb
58
51
  has_rdoc: true
59
52
  homepage: http://webget.com/
metadata.gz.sig CHANGED
Binary file