grand_id_simple 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 7fd425f3d614ca8058c8545052fffa7ed02a337edfd30e202683b93e3e110733
4
- data.tar.gz: 6c14aa556412aadea0d3ac5ae7958f5f8f241dc6de28778e9364d845f22b128f
3
+ metadata.gz: 3d4bd8555409124e1b9e3ada14c4d7f6fa1922a7e589638d6526fdc0667a26db
4
+ data.tar.gz: 3a7b8476abf8a14266553bc18645a2935f4e44889d75dfb2bb27a8fcef4c8b33
5
5
  SHA512:
6
- metadata.gz: dd88789c2f2fa1c78974ef9eefb9ba0dc721d7b8623d6b4798658ed26828bedb98bfb93e57eb52785647238aaa85dc388ff5a94bada9e5534e8d6cbb0b749d65
7
- data.tar.gz: 873c900abe5df8f249c49f4fd33da1f22861d8645bacfdad2c788131ee0b56363ae06c5aaa9022413aef404bdadd47bb59663cc694e58d216a0f31a95dabc401
6
+ metadata.gz: 641b56153b7fc523839e059d41f5846ecc5ae440e191573e4ff2721aa1cbe62b3ee7370616bcaae5e1234c02de62f69163d85203b597b611d47e509d35476d9b
7
+ data.tar.gz: fc1aa93521ee825fdd21e99fae60f8dc73fec98794c5d90143b24a1d0deff0c52049f4d13616c311349857d0f99685f768334e35a730929d55c0020d43ed32d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grand_id_simple (0.2.0)
4
+ grand_id_simple (1.0.0)
5
5
  sinatra (~> 2.2)
6
6
  typhoeus (~> 1.4)
7
7
  webrick (~> 1.8)
@@ -46,13 +46,9 @@ class FakeGrandIdSimple < GrandIdSimple
46
46
  @server_thread = Thread.start { @server.start }
47
47
  end
48
48
 
49
- def federated_login(callback_url, personal_number: nil)
49
+ def federated_login(**options)
50
50
  @people.concat(@block.call) if @people.empty?
51
- redirect_url = if personal_number && person = @people.find {|p| p.personal_number == personal_number }
52
- FakeGrandIdSimple.add_query_parameter(callback_url, 'grandidsession', person.session_id)
53
- else
54
- FakeGrandIdSimple.add_query_parameter(@base_url, 'callback_url', callback_url)
55
- end
51
+ redirect_url = FakeGrandIdSimple.add_query_parameter(@base_url, 'callback_url', options[:callbackUrl])
56
52
  Login.new(redirect_url: redirect_url)
57
53
  end
58
54
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GrandIdSimple
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grand_id_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fonsan