exvo-auth 0.1.4 → 0.1.5

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 CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{exvo-auth}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacek Becela"]
@@ -17,6 +17,14 @@ module ExvoAuth::PathHelpers
17
17
  def auth_sign_out_url
18
18
  ExvoAuth::Config.host + "/users/sign_out"
19
19
  end
20
+
21
+ def auth_sign_in_url
22
+ ExvoAuth::Config.host + "/users/sign_in"
23
+ end
24
+
25
+ def auth_sign_up_url
26
+ ExvoAuth::Config.host + "/users/sign_up"
27
+ end
20
28
 
21
29
  private
22
30
 
@@ -19,6 +19,6 @@ class ExvoAuth::Strategies::NonInteractive < ExvoAuth::Strategies::Base
19
19
  end
20
20
 
21
21
  def fail!(message_key)
22
- [200, { "Content-Type" => "application/json" }, [MultiJson.encode(:message => "Not signed in!", :status => 401)]]
22
+ [401, { "Content-Type" => "application/json" }, [MultiJson.encode(:message => "Not signed in!", :status => 401)]]
23
23
  end
24
24
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jacek Becela