entp-multipass 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/multipass.rb +3 -1
- data/test/multipass_test.rb +1 -0
- metadata +14 -4
data/VERSION.yml
CHANGED
data/lib/multipass.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'ezcrypto'
|
2
1
|
require 'time'
|
3
2
|
|
4
3
|
class MultiPass
|
@@ -33,6 +32,9 @@ class MultiPass
|
|
33
32
|
def initialize(site_key, api_key)
|
34
33
|
@site_key = site_key
|
35
34
|
@api_key = api_key
|
35
|
+
if !Object.const_defined?(:EzCrypto)
|
36
|
+
require 'ezcrypto'
|
37
|
+
end
|
36
38
|
@crypto_key = EzCrypto::Key.with_password(@site_key, @api_key)
|
37
39
|
end
|
38
40
|
|
data/test/multipass_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: entp-multipass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rick
|
@@ -11,8 +11,17 @@ cert_chain: []
|
|
11
11
|
|
12
12
|
date: 2009-05-20 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: ezcrypto
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
16
25
|
description:
|
17
26
|
email: technoweenie@gmail.com
|
18
27
|
executables: []
|
@@ -30,6 +39,7 @@ files:
|
|
30
39
|
- LICENSE
|
31
40
|
has_rdoc: false
|
32
41
|
homepage: http://github.com/entp/multipass
|
42
|
+
licenses:
|
33
43
|
post_install_message:
|
34
44
|
rdoc_options:
|
35
45
|
- --inline-source
|
@@ -51,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
61
|
requirements: []
|
52
62
|
|
53
63
|
rubyforge_project:
|
54
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.3.5
|
55
65
|
signing_key:
|
56
66
|
specification_version: 3
|
57
67
|
summary: Bare bones implementation of encoding and decoding MultiPass values for SSO.
|