prooflink_connect 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,10 @@ module ProoflinkConnect
21
21
  :embed_forms => '0',
22
22
  :width => 520,
23
23
  :height => 250}.merge(options)
24
- "<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}&forced_connect=#{options[:forced_connect]}&embed_forms=#{options[:embed_forms]}' style='width: #{options[:width]}px; height: #{options[:height]}px; border: 0;display: block' frameborder='0' allowTransparency='true'></iframe>".html_safe
24
+ domain_part = [options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")
25
+ path_part = [options[:locale], 'authentications', 'embedded'].compact.join("/")
26
+ query_part = 'token_url=#{options[:token_url]}&forced_connect=#{options[:forced_connect]}&embed_forms=#{options[:embed_forms]}'
27
+ frame_url = "#{ProoflinkConnect.config.protocol}://#{domain_part}/#{path_part}?#{query_part}"
28
+ "<iframe src='#{frame_url}' style='width: #{options[:width]}px; height: #{options[:height]}px; border: 0;display: block' frameborder='0' allowTransparency='true'></iframe>".html_safe
25
29
  end
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module ProoflinkConnect
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prooflink_connect
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chiel Wester