prooflink_connect 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,15 @@
1
1
  module ProoflinkConnect
2
2
  class ShareButton
3
3
  attr_accessor :message
4
+ attr_accessor :options
4
5
 
5
- def initialize(message = nil)
6
+ def initialize(message = nil, options = {})
6
7
  @message = message
8
+ @options = options
7
9
  end
8
10
 
9
11
  def to_html
10
- "<iframe src='#{ProoflinkConnect.config.protocol}://#{[ProoflinkConnect.config.subdomain, ProoflinkConnect.config.provider_endpoint].compact.join(".")}/shares/button?message=#{CGI.escape @message}' style='width: 100px; height: 100px; border: 0;display: block' frameborder='0'></iframe>".html_safe
12
+ "<iframe src='#{ProoflinkConnect.config.protocol}://#{[ProoflinkConnect.config.subdomain, ProoflinkConnect.config.provider_endpoint].compact.join(".")}/#{@options[:locale]||"en"}/shares/button?message=#{CGI.escape @message}' style='width: 100px; height: 100px; border: 0;display: block' frameborder='0'></iframe>".html_safe
11
13
  end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module ProoflinkConnect
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 14
10
+ version: 0.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chiel Wester
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-20 00:00:00 +02:00
19
+ date: 2011-05-27 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency