ember-auth-rails 3.2.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -117,9 +117,10 @@
117
117
  rememberPeriod: 14
118
118
  });
119
119
 
120
- Auth.Route = Em.Route.extend({
120
+ Auth.Route = Em.Route.extend(Em.Evented, {
121
121
  redirect: function() {
122
122
  if (Auth.Config.get('authRedirect') && !Auth.get('authToken')) {
123
+ this.trigger('authAccess');
123
124
  Auth.set('prevRoute', this.routeName);
124
125
  return this.transitionTo(Auth.Config.get('signInRoute'));
125
126
  }
@@ -1,5 +1,5 @@
1
1
  module EmberAuth
2
2
  module Rails
3
- VERSION = '3.2.0'
3
+ VERSION = '3.3.0'
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module EmberAuth
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ember-rails
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 1.8.24
71
+ rubygems_version: 1.8.25
72
72
  signing_key:
73
73
  specification_version: 3
74
74
  summary: Ember-auth for Rails