unbutton 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module Unbutton
11
11
 
12
12
  def self.linkedin_link(url, options)
13
13
  base = "http://www.linkedin.com/shareArticle"
14
- params = params = { url: url, mini: true }
14
+ params = { url: url, mini: true }
15
15
  options.has_key?(:title) && params[:title] = options[:title]
16
16
  options.has_key?(:description) && params[:summary] = options[:description]
17
17
  options.has_key?(:source) && params[:source] = options[:source]
@@ -61,6 +61,14 @@ module Unbutton
61
61
  create_url base, params
62
62
  end
63
63
 
64
+ def self.skoletube_link(url, options)
65
+ base = "http://www.skoletube.dk/app/upload/"
66
+ params = { embed_code: url, iframe: true, secondpage: 'embed' }
67
+ options.has_key?(:thumbnail) && params[:thumbnail] = options[:thumbnail]
68
+
69
+ create_url base, params
70
+ end
71
+
64
72
  private
65
73
 
66
74
  def self.create_url(base, params)
@@ -1,3 +1,3 @@
1
1
  module Unbutton
2
- VERSION = "0.1"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unbutton
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-16 00:00:00.000000000 Z
12
+ date: 2013-12-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Unbutton provides a set of helper methods to share content on the web
15
15
  without crappy buttons
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  requirements: []
49
49
  rubyforge_project:
50
- rubygems_version: 1.8.24
50
+ rubygems_version: 1.8.23
51
51
  signing_key:
52
52
  specification_version: 3
53
53
  summary: Generate facebook, twitter, linkedin, pinterest share links