stormpath-rails 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module Stormpath
27
27
  end
28
28
 
29
29
  def self.verify_account_email(token)
30
- self.connection.client.current_tenant.verify_account_email token
30
+ self.client.current_tenant.verify_account_email token
31
31
  end
32
32
 
33
33
  def self.create_account!(attributes)
@@ -59,8 +59,12 @@ module Stormpath
59
59
  end
60
60
 
61
61
  def self.ds
62
+ self.client.data_store
63
+ end
64
+
65
+ def self.client
62
66
  self.connection ||= ::ClientApplicationBuilder.new.set_application_href(Config[:href]).build
63
- self.connection.client.data_store
67
+ self.connection.client
64
68
  end
65
69
  end
66
70
  end
@@ -1,5 +1,5 @@
1
1
  module Stormpath
2
2
  module Rails
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.summary = %q{Stormpath SDK API Wrapper}
13
13
 
14
14
  gem.add_dependency "activesupport"
15
- gem.add_dependency "stormpath-sdk"
15
+ gem.add_dependency "stormpath-sdk", '~> 0.4.0'
16
16
 
17
17
  gem.files = `git ls-files`.split($/)
18
18
  gem.test_files = gem.files.grep(%r{^(spec|features)/})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -32,17 +32,17 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: 0.4.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '0'
45
+ version: 0.4.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rake
48
48
  requirement: !ruby/object:Gem::Requirement