social_share_privacy 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/social_share_privacy.rb +7 -2
- data/lib/social_share_privacy/version.rb +1 -1
- data/vendor/assets/images/social_share_privacy/dummy_facebook_like.png +0 -0
- data/vendor/assets/images/social_share_privacy/dummy_facebook_like_de.png +0 -0
- data/vendor/assets/images/social_share_privacy/{dummy_facebook.png → dummy_facebook_recommend.png} +0 -0
- data/vendor/assets/images/social_share_privacy/{dummy_facebook_de.png → dummy_facebook_recommend_de.png} +0 -0
- data/vendor/assets/images/social_share_privacy/socialshareprivacy_info.png +0 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e5e530c764873b13b5b819c548be913d074e1bd
|
4
|
+
data.tar.gz: 0ddfb53c358865442437fa5f07d675856aa70438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c7770c187678eaf85e5b9075b305829e0f32d1c800d0230043de7a60815d99e722dceef2f09c52809ac398ae1b5bd770afeeeeefd25f99d768b3661e593370e
|
7
|
+
data.tar.gz: c42d18aed9c23696ef0f68f275c90e3c59eb1a45c41c1ba08d00d2b174930ec1b25d813f018fbe1179f9579ec107407c9554c48267ba8ef93e8110239be2c84b
|
data/lib/social_share_privacy.rb
CHANGED
@@ -147,11 +147,16 @@ module SocialSharePrivacy
|
|
147
147
|
class Facebook < Service
|
148
148
|
|
149
149
|
@@RE_LOCALE = Regexp.new(/^[a-z]{2}_[A-Z]{2}$/)
|
150
|
-
|
150
|
+
attr_reader :action
|
151
|
+
|
152
|
+
def action= value
|
153
|
+
@action = value
|
154
|
+
@dummy_button = Proc.new {|helper| helper.path_to_image('social_share_privacy/dummy_facebook_' + value.to_s + '.png')}
|
155
|
+
end
|
151
156
|
|
152
157
|
def eval helper
|
153
158
|
result = super helper
|
154
|
-
result.dummy_button = helper.path_to_image('social_share_privacy/
|
159
|
+
result.dummy_button = helper.path_to_image('social_share_privacy/dummy_facebook_' + result.action.to_s + '_de.png') if result.language.to_s.start_with?('de')
|
155
160
|
unless @@RE_LOCALE.match(result.language)
|
156
161
|
if I18n.available_locales.include? result.language.to_sym
|
157
162
|
cur_loc = I18n.locale
|
Binary file
|
data/vendor/assets/images/social_share_privacy/{dummy_facebook.png → dummy_facebook_recommend.png}
RENAMED
File without changes
|
File without changes
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_share_privacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joakim Reinert
|
@@ -69,13 +69,15 @@ files:
|
|
69
69
|
- lib/generators/templates/en_social_share_privacy.yml
|
70
70
|
- lib/generators/templates/de_social_share_privacy.yml
|
71
71
|
- lib/generators/social_share_privacy/install_generator.rb
|
72
|
+
- vendor/assets/images/social_share_privacy/dummy_facebook_recommend_de.png
|
73
|
+
- vendor/assets/images/social_share_privacy/dummy_facebook_like_de.png
|
74
|
+
- vendor/assets/images/social_share_privacy/dummy_facebook_like.png
|
75
|
+
- vendor/assets/images/social_share_privacy/dummy_facebook_recommend.png
|
72
76
|
- vendor/assets/images/social_share_privacy/settings.png
|
73
77
|
- vendor/assets/images/social_share_privacy/dummy_twitter.png
|
74
78
|
- vendor/assets/images/social_share_privacy/socialshareprivacy_on_off.png
|
75
79
|
- vendor/assets/images/social_share_privacy/socialshareprivacy_info.png
|
76
|
-
- vendor/assets/images/social_share_privacy/dummy_facebook_de.png
|
77
80
|
- vendor/assets/images/social_share_privacy/dummy_gplus.png
|
78
|
-
- vendor/assets/images/social_share_privacy/dummy_facebook.png
|
79
81
|
- vendor/assets/stylesheets/social_share_privacy/index.css
|
80
82
|
- vendor/assets/stylesheets/social_share_privacy/socialshareprivacy.css.erb
|
81
83
|
- vendor/assets/javascripts/social_share_privacy/jquery.socialshareprivacy.js
|