api_auth 0.0.2 → 0.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ApiAuth
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.2.1"
3
3
  end
data/lib/api_auth.rb CHANGED
@@ -1,7 +1,11 @@
1
+ require 'active_support/dependencies'
2
+
1
3
  module ApiAuth
2
4
 
3
- def self.authenticate(token)
4
- token == "hello" ? true : false
5
+ module Tokenize
6
+
7
+ def self.generate_token
8
+ ActiveSupport::SecureRandom.base64(44).tr('+/=', 'xyz')
9
+ end
5
10
  end
6
-
7
11
  end
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 2
9
- version: 0.0.2
9
+ - 1
10
+ version: 0.0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - JGW Maxwell