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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0374ee25c1a3139f90a10af8a2be39cb8836ecc1
4
- data.tar.gz: 22185cb1787d729a44ad69a1d06564c57143dd6c
3
+ metadata.gz: ea432c0dac2e5abb7ad7a54ad30a1c5da4579628
4
+ data.tar.gz: 75d1685e07c41c11fe01b2155be42876038ab3fb
5
5
  SHA512:
6
- metadata.gz: c88a11fa3892e5db4bac029a3b72c0f3a1e8b9200135f41225d013dccbbeebd2efa937769cfe5c2e604c8e7d9ff06f5ce16cb4e2f715a987054a6026d2e8f0a0
7
- data.tar.gz: e67a80cc49097c13c38c3c37e42ebbfcc75debc0d3dedbd0633aa9838386b7fa770f884a8be7d45560ce80aa1df5ce135377027f09872e1d6d1ce05b934409d7
6
+ metadata.gz: 2e1f172f5d149dde455a96beb10436ee6d43481f1f22b5562d350df9bb83c1de5da10bc2638ed9c5edafeff947f53dd4803e3e82966344b839377192bad12290
7
+ data.tar.gz: 2ed269891a4b6f4cb800bf0bfa3ee6a19442eaccb69118e5cbd365a579f4a9544fbfce3a6d71f1deb02982bf75e6fb79538c13c38b459f901b570613fd769795
@@ -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 = { :twitter => "http://twitter.com/intent/tweet?&text=" + URI.encode("#{text} #{url}"),
8
- :facebook => "http://facebook.com/sharer.php?u=#{url}",
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
@@ -1,3 +1,3 @@
1
1
  module Share
2
- VERSION = "0.0.5"
2
+ VERSION = "1.0.0"
3
3
  end
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.5
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-07-13 00:00:00.000000000 Z
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.3
63
+ rubygems_version: 2.0.6
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Social Share Links