auth-lh 0.0.1 → 0.0.2

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: 96c235602e2827077484c072fd1739ef9b872824
4
- data.tar.gz: 619b0d251b32b8c18df7b454ea715ab8be5de8ad
3
+ metadata.gz: 9a58dc03a609014083b101897c735a60371934d9
4
+ data.tar.gz: 347075011ff1dc6e4ce97ecb919da18383265b7b
5
5
  SHA512:
6
- metadata.gz: 7c56c689dd659850fabb8a1e62a2fe956757937f16de4a110998a68a8233cd75b9fabde65c61584e47219dee4699890a71de2a0af6f017ca926a71582f079f1d
7
- data.tar.gz: 10b677a66de6d83930435366bc817687d1e73d8894d37051b1387731c4607ba4b2ecbf1df245e2ce07c6753d22d66e6b5f7a39d556a4ac7aba78c8980f417187
6
+ metadata.gz: 89927a9dad4297449f3f2baf165307065248c43422ccef0943bf05c560368f56bfcf035094d4fcba4e5100ef5d668856b5c0f13a4afeab58f3fb268f6e9afd99
7
+ data.tar.gz: 5e05946971015750e6d8d29ad141efdbb2b5ac3452e39ca62ed3ca52760273a9ce970ed4f17ce89855ea9792f067dc4fb04107ba2306bd2ad102443b245bf3cb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
1
  ## v0.0.1
2
2
 
3
3
  * Initial release
4
+
5
+ ## v0.0.2
6
+
7
+ * Bugfix: mistyped variable
data/lib/auth/lh/api.rb CHANGED
@@ -23,11 +23,11 @@ module Auth
23
23
 
24
24
  def login_url
25
25
  login_attempt = create_login_attempt
26
- "#{@endpoint_url}/login?attempt=#{login_attempt.token}"
26
+ "#{@endpoint}/login?attempt=#{login_attempt.token}"
27
27
  end
28
28
 
29
29
  def logout_url
30
- "#{@endpoint_url}/logout?return=#{CGI::escape(@return_url)}"
30
+ "#{@endpoint}/logout?return=#{CGI::escape(@return_url)}"
31
31
  end
32
32
 
33
33
  protected
@@ -42,11 +42,11 @@ module Auth
42
42
  end
43
43
 
44
44
  def get_request(action, params={})
45
- JSON.parse(RestClient.get("#{@endpoint_url}#{action}", {params: params}))
45
+ JSON.parse(RestClient.get("#{@endpoint}#{action}", {params: params}))
46
46
  end
47
47
 
48
48
  def post_request(action, params={})
49
- JSON.parse(RestClient.post("#{@endpoint_url}#{action}", params))
49
+ JSON.parse(RestClient.post("#{@endpoint}#{action}", params))
50
50
  end
51
51
  end
52
52
  end
@@ -1,5 +1,5 @@
1
1
  module Auth
2
2
  module Lh
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-lh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick