entp-multipass 1.1.2 → 1.1.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.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :major: 1
3
2
  :minor: 1
4
- :patch: 2
3
+ :patch: 3
4
+ :major: 1
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
 
@@ -1,6 +1,7 @@
1
1
  $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
2
2
  require 'rubygems'
3
3
  require 'test/unit'
4
+ require 'ezcrypto'
4
5
  require 'multipass'
5
6
 
6
7
  class MultiPassTest < Test::Unit::TestCase
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.2
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.2.0
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.