api_auth 0.0.2.2 → 0.0.2.3

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.
@@ -0,0 +1,11 @@
1
+ module ApiAuth
2
+ class Tokenize
3
+ def initialize(options={})
4
+ @tokenize_this = options[:tokenize_this]
5
+ end
6
+
7
+ def self.generate_token
8
+ @tokenize_this + ActiveSupport::SecureRandom.base64(44).tr('+/=', 'xyz')
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module ApiAuth
2
- VERSION = "0.0.2.2"
2
+ VERSION = "0.0.2.3"
3
3
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.0.2.2
9
+ - 3
10
+ version: 0.0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - JGW Maxwell
@@ -35,6 +35,7 @@ files:
35
35
  - Rakefile
36
36
  - api_auth.gemspec
37
37
  - lib/api_auth.rb
38
+ - lib/api_auth/tokenize.rb
38
39
  - lib/api_auth/version.rb
39
40
  has_rdoc: true
40
41
  homepage: ""