share 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/assets/stylesheets/share/style.css.scss.erb +11 -0
- data/lib/share/helpers.rb +2 -2
- data/lib/share/version.rb +1 -1
- metadata +10 -13
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e0e608c158017b4bc932c619239600eb771a8048
|
4
|
+
data.tar.gz: f5ec77370f02e14e35c14801cea379e8b7034aff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a6962a9b6ecf61230cf3e9e0505bf0f8c2ef259c114c298ede8ecbb738da4d427c436f8ed749e051db1ac4a1905eb6b354d5ce09b1256b83e7d1ca483a133aff
|
7
|
+
data.tar.gz: d01132fcbd1a2de9022fd4930c25b65494dbfe8d28b2d7bd509c07dd9e02c445db45df16fca9875779466c4aadc486cab794bb6a73878ac80b77150a9428728a
|
data/lib/share/helpers.rb
CHANGED
@@ -5,9 +5,9 @@ module Share
|
|
5
5
|
content_tag :ul, :class => "share-container" do |content|
|
6
6
|
{ :twitter => "http://twitter.com/intent/tweet?&text=" + URI.encode("#{text} #{url}"),
|
7
7
|
:facebook => "http://facebook.com/sharer.php?u=#{url}",
|
8
|
-
|
8
|
+
"google-plus" => "https://plus.google.com/share?url=#{url}"}.map do |key, value|
|
9
9
|
content_tag(:li,
|
10
|
-
link_to("", value, :title => "Share on #{key.to_s.humanize}", :class => "share-link #{key}",
|
10
|
+
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
11
|
"onclick" => "javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"
|
12
12
|
), :class => "share-item")
|
13
13
|
end.join.html_safe
|
data/lib/share/version.rb
CHANGED
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: share
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Samer Buna
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-04 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
description: Add a Rails helper to include simple social share links
|
@@ -52,31 +49,31 @@ files:
|
|
52
49
|
- lib/assets/images/share/yahoo.png
|
53
50
|
- lib/assets/images/share/youtube.png
|
54
51
|
- lib/assets/stylesheets/share/icons.css.scss.erb
|
52
|
+
- lib/assets/stylesheets/share/style.css.scss.erb
|
55
53
|
- MIT-LICENSE
|
56
54
|
- Rakefile
|
57
55
|
- README.md
|
58
56
|
homepage: http://github.com/samerbuna/share
|
59
57
|
licenses: []
|
58
|
+
metadata: {}
|
60
59
|
post_install_message:
|
61
60
|
rdoc_options: []
|
62
61
|
require_paths:
|
63
62
|
- lib
|
64
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
64
|
requirements:
|
67
|
-
- -
|
65
|
+
- - '>='
|
68
66
|
- !ruby/object:Gem::Version
|
69
67
|
version: '0'
|
70
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
69
|
requirements:
|
73
|
-
- -
|
70
|
+
- - '>='
|
74
71
|
- !ruby/object:Gem::Version
|
75
72
|
version: '0'
|
76
73
|
requirements: []
|
77
74
|
rubyforge_project:
|
78
|
-
rubygems_version:
|
75
|
+
rubygems_version: 2.0.3
|
79
76
|
signing_key:
|
80
|
-
specification_version:
|
77
|
+
specification_version: 4
|
81
78
|
summary: Social Share Links
|
82
79
|
test_files: []
|