auth-lh 0.0.6 → 0.0.7

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: 060d683639b32bff673542cf158476c58312de4d
4
- data.tar.gz: e6b32af3891f6718f48c066f4f442b75ebdef0bc
3
+ metadata.gz: d0a4cb9df6ecbe0a99d2075d19eea0ac5d50dc23
4
+ data.tar.gz: ee3147313f880505454c8a0ca2b986e50b7756b3
5
5
  SHA512:
6
- metadata.gz: 68aafdbb8d013885b653a124228cfeb6f8104c11c938357bdd59ba4c77f420284bb25a129406703ecf1f59d45b43e531f601265b5b607491d5079656da7c285f
7
- data.tar.gz: 901ab0bfba35a21a7028c9d85298374591250466e1061ae42fa3689a5b3e445385faac8369d041d3590edffcc4616ea1b4a1891d302bb978d591175bcb8cb94c
6
+ metadata.gz: e0140b71fee0abccf3b3ec3a115963bd7ce72eac86bbdbfba9e801733ca19121a661da54a9773ed60b7a5ee9b954f5696bbcab9212c751e618ace36bcf456fde
7
+ data.tar.gz: 6a62e41c5dabc33a8cacd20dc83ae8d7a51922e261c8193412e5f2d7e7f2efaac83340398e1962813bc4ce5db7a68a6b9b4f3a044f157eb09cc21a8a50226ec4
data/CHANGELOG.md CHANGED
@@ -21,3 +21,7 @@
21
21
  ## v0.0.6
22
22
 
23
23
  * Bugfix: api method url mistyped
24
+
25
+ ## v0.0.7
26
+
27
+ * Make return url optional
data/lib/auth/lh/api.rb CHANGED
@@ -43,12 +43,13 @@ module Auth
43
43
  protected
44
44
 
45
45
  def create_login_attempt
46
- result = post_request '/login_attempts', {
47
- app_code: @application_code,
48
- return_url: @return_url
49
- }
46
+ params = { app_code: @application_code }
47
+
48
+ if @return_url
49
+ params[:return_url] = @return_url
50
+ end
50
51
 
51
- LoginAttempt.new(result)
52
+ LoginAttempt.new(post_request('/login_attempts', params))
52
53
  end
53
54
 
54
55
  def get_request(action, params={})
@@ -1,5 +1,5 @@
1
1
  module Auth
2
2
  module Lh
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick