authrocket 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 096723c49812547125806b76766eccebdad66230
4
- data.tar.gz: 43d30b98a0c2f04a89711ffd718844d3387adace
3
+ metadata.gz: 27674ebcbfe9078ba6fa3a64478300fa963881d1
4
+ data.tar.gz: b182499cc381c10331f63e71d10b78d9f2096c4e
5
5
  SHA512:
6
- metadata.gz: 1f985b0d3add0a0f0da557b2fd19530acad46974e7cc362e1dd29ec4092fef990d7b9e0ff8023d67360ad8046a2753f4dc13ceaa5ec1e39de0c4b02d1555567e
7
- data.tar.gz: eef3e0420bfd34b0ecfe8d151b4bc13d92eac66400b867a6e10e35890b9d170579a04b534674d3dc7aa306e8b014ebc8d2d29f8c866d88875d0222b8ba72a553
6
+ metadata.gz: 19a6b03fbc2b51719d0889be25cb91dc2df8712f81fd22394f8dc1e54f8ab0741e0dadd3580dd3026fe335be661fa90adb2ed50fa6fb4e85726e06c15c261c35
7
+ data.tar.gz: b3fd665fde7353d078fec2b55a02910fa5099cec146c060f727b3c3c75562228de21c2fa8ea765ab5f16f7150cab32473cb2e0f6f468b88134cf33433f00c52e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ #### 2.0.3
2
+ - Fix error handling for missing jwt_secret
3
+
1
4
  #### 2.0.2
2
5
  - Add Realm#resource_links
3
6
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Notioneer, Inc.
1
+ Copyright (c) 2014-2016 Notioneer, Inc.
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AuthRocket
2
2
 
3
- [AuthRocket](http://authrocket.com/) provides Auth as a Service, making it quick and easy to add signups, logins, a full user management UI, and much more to your app.
3
+ [AuthRocket](https://authrocket.com/) provides Auth as a Service, making it quick and easy to add signups, logins, social auth, a full user management UI, and much more to your app.
4
4
 
5
5
  This gem works with both Rails and plain Ruby. It will auto-detect Rails and enable Rails-specific features as appropriate.
6
6
 
@@ -1,3 +1,3 @@
1
1
  module AuthRocket
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
@@ -6,7 +6,7 @@ module AuthRocket
6
6
  belongs_to :user
7
7
  has_many :events
8
8
 
9
- attr :custom
9
+ attr :custom, :permissions
10
10
  attr_datetime :expires_at
11
11
 
12
12
 
@@ -14,7 +14,7 @@ module AuthRocket
14
14
 
15
15
  # options - :within - (in seconds) Maximum time since the token was originally issued
16
16
  def self.from_token(token, options={})
17
- secret = (options[:credentials]||credentials)[:jwt_secret]
17
+ secret = (options[:credentials]||credentials||{})[:jwt_secret]
18
18
  raise Error, "missing :jwt_secret (or AUTHROCKET_JWT_SECRET)" unless secret
19
19
  return unless token
20
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authrocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - AuthRocket Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-04 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ncore