share 0.0.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/share/helpers.rb +3 -3
- data/lib/share/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea432c0dac2e5abb7ad7a54ad30a1c5da4579628
|
4
|
+
data.tar.gz: 75d1685e07c41c11fe01b2155be42876038ab3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1f172f5d149dde455a96beb10436ee6d43481f1f22b5562d350df9bb83c1de5da10bc2638ed9c5edafeff947f53dd4803e3e82966344b839377192bad12290
|
7
|
+
data.tar.gz: 2ed269891a4b6f4cb800bf0bfa3ee6a19442eaccb69118e5cbd365a579f4a9544fbfce3a6d71f1deb02982bf75e6fb79538c13c38b459f901b570613fd769795
|
data/lib/share/helpers.rb
CHANGED
@@ -4,11 +4,11 @@ module Share
|
|
4
4
|
url = request.url
|
5
5
|
text = options_or_text.is_a?(Hash) ? options_or_text[:tweet] : options_or_text
|
6
6
|
content_tag :ul, :class => "share-container" do |content|
|
7
|
-
lis = {
|
8
|
-
|
7
|
+
lis = { "twitter" => "http://twitter.com/intent/tweet?&text=" + URI.encode("#{text} #{url}"),
|
8
|
+
"facebook" => "http://facebook.com/sharer.php?u=#{url}",
|
9
9
|
"google-plus" => "https://plus.google.com/share?url=#{url}"}.map do |key, value|
|
10
10
|
content_tag(:li,
|
11
|
-
link_to("<i class=\"icon-fa-social icon-#{key}\"></i>".html_safe, value, :title => "Share on #{key.to_s.humanize}", :class => "share-link #{key}",
|
11
|
+
link_to("<i class=\"icon-fa-social icon-#{key}-sign\"></i>".html_safe, value, :title => "Share on #{key.to_s.humanize}", :class => "share-link #{key}",
|
12
12
|
"onclick" => "javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"
|
13
13
|
), :class => "share-item")
|
14
14
|
end
|
data/lib/share/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: share
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samer Buna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.0.
|
63
|
+
rubygems_version: 2.0.6
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Social Share Links
|