omniauth-standalone 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b119078ad71880485b5b51a10a3ffc15336efb6
4
- data.tar.gz: 6bca25442fc01964fe32f859a16cb8019201d278
3
+ metadata.gz: 5730d8155c0ebf13a45dc5020cafc37e17dae3da
4
+ data.tar.gz: 7211e284b25825cfdc60f181f64c4e05fce2da06
5
5
  SHA512:
6
- metadata.gz: 1334feeb3a3c3b4cd77f5e5f307e3802a09e6b8acea17a69ccd53964a688bd1d053085696557153de027c7602b02702424a01acc1ae6c7964ced3747812e984b
7
- data.tar.gz: e432ed6273058930fdf5599ce47e786a20bfc4916ac060624c5a35ec165f2071d3ed1545ca087d523741413b1833d69f88da816a6156134badb50723642cc521
6
+ metadata.gz: 6c85057b9278119a8225b0dab2d2c16ebee87b0636b25270d93195ba23124f634b0488e430c64176b2843168767e8ca7031d6be34dd60e5cc085d3e83eae2e98
7
+ data.tar.gz: fd7a1a5f0ff9199b50a9da1d33adf7a527f2c3f25ec65c9aa42818a8b8ce886f8e937029fc895ef1724d8a5244ad4108bdc9d16b7475f8cbf230c87bfb543f15
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Standalone
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -6,7 +6,11 @@ module OmniAuth
6
6
  module Strategies
7
7
  class Standalone
8
8
  include ::OmniAuth::Strategy
9
- AuthenticationError = Class.new(RuntimeError)
9
+ class AuthenticationError < RuntimeError
10
+ def to_sym
11
+ message
12
+ end
13
+ end
10
14
 
11
15
  option :name, 'standalone'
12
16
  option :fields, [:name, :email]
@@ -71,7 +75,7 @@ module OmniAuth
71
75
  end
72
76
 
73
77
  def validate!
74
- raise error if error?
78
+ fail!(error) if error?
75
79
  end
76
80
 
77
81
  def sign_up?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-standalone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Owiesniak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.2.2
93
+ rubygems_version: 2.4.6
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: OmniAuth strategy to simplify the standalone sign up and sign in process