prooflink_connect 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/prooflink_connect.rb
CHANGED
@@ -2,6 +2,7 @@ module ProoflinkConnect
|
|
2
2
|
autoload :Configuration, "prooflink_connect/configuration"
|
3
3
|
autoload :Assertion, "prooflink_connect/assertion"
|
4
4
|
autoload :PortableContacts, "prooflink_connect/portable_contacts"
|
5
|
+
autoload :ShareButton, "prooflink_connect/share_button"
|
5
6
|
|
6
7
|
def self.config
|
7
8
|
Configuration.instance
|
@@ -15,9 +16,9 @@ module ProoflinkConnect
|
|
15
16
|
options = {:subdomain => ProoflinkConnect.config.subdomain, :token_url => 'https://example.com/auth/callbacks'}.merge(options)
|
16
17
|
|
17
18
|
if options[:forced_connect]
|
18
|
-
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}&forced_connect=1' style='width: 500px; height: 220px; border: 0;display: block' ></iframe>".html_safe
|
19
|
+
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}&forced_connect=1' style='width: 500px; height: 220px; border: 0;display: block' frameborder='0'></iframe>".html_safe
|
19
20
|
else
|
20
|
-
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}' style='width: 500px; height: 220px; border: 0;display: block' ></iframe>".html_safe
|
21
|
+
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[options[:subdomain], ProoflinkConnect.config.provider_endpoint].compact.join(".")}/authentications/embedded?token_url=#{options[:token_url]}' style='width: 500px; height: 220px; border: 0;display: block' frameborder='0'></iframe>".html_safe
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module ProoflinkConnect
|
2
|
+
class ShareButton
|
3
|
+
attr_accessor :message
|
4
|
+
|
5
|
+
def initialize(message = nil)
|
6
|
+
@message = message
|
7
|
+
end
|
8
|
+
|
9
|
+
def to_html
|
10
|
+
"<iframe src='#{ProoflinkConnect.config.protocol}://#{[ProoflinkConnect.config.subdomain, ProoflinkConnect.config.provider_endpoint].compact.join(".")}/shares/button?message=#{@message}' style='width: 100px; height: 100px; border: 0;display: block' frameborder='0'></iframe>".html_safe
|
11
|
+
end
|
12
|
+
end
|
13
|
+
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chiel Wester
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01
|
18
|
+
date: 2011-04-01 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/prooflink_connect/portable_contacts.rb
|
83
83
|
- lib/prooflink_connect/portable_contacts/collection.rb
|
84
84
|
- lib/prooflink_connect/portable_contacts/person.rb
|
85
|
+
- lib/prooflink_connect/share_button.rb
|
85
86
|
- lib/prooflink_connect/version.rb
|
86
87
|
- prooflink_connect.gemspec
|
87
88
|
- spec/prooflink_connect_spec.rb
|
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
119
|
requirements: []
|
119
120
|
|
120
121
|
rubyforge_project: prooflink_connect
|
121
|
-
rubygems_version: 1.
|
122
|
+
rubygems_version: 1.3.7
|
122
123
|
signing_key:
|
123
124
|
specification_version: 3
|
124
125
|
summary: Make a connection to the prooflink connect api
|