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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c74081b34675987c0d1f5f149b24364aecf711b
4
- data.tar.gz: b627d8a166402aef97972b1a631ada9f49b5eec0
3
+ metadata.gz: 2e5e530c764873b13b5b819c548be913d074e1bd
4
+ data.tar.gz: 0ddfb53c358865442437fa5f07d675856aa70438
5
5
  SHA512:
6
- metadata.gz: 049930e0c9dfb86cf2ebea831fa4cf7764e755fea391e0a104457a59e2d13d5c28676cf52cd43970b2ac644ebff9f711b42c2921e332953fed0d6c94cfdde292
7
- data.tar.gz: 1f2a9720493c6437e8962e31bbfab5ad5105b5022b0379dd8e45b0f5139fecba55cf1a3ce0c410f5411310545bac846d8d93bf47ef1d2bca42be2e4d5b035982
6
+ metadata.gz: 2c7770c187678eaf85e5b9075b305829e0f32d1c800d0230043de7a60815d99e722dceef2f09c52809ac398ae1b5bd770afeeeeefd25f99d768b3661e593370e
7
+ data.tar.gz: c42d18aed9c23696ef0f68f275c90e3c59eb1a45c41c1ba08d00d2b174930ec1b25d813f018fbe1179f9579ec107407c9554c48267ba8ef93e8110239be2c84b
@@ -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
- attr_accessor :action
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/dummy_facebook_de.png') if result.language.to_s.start_with?('de')
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
@@ -1,3 +1,3 @@
1
1
  module SocialSharePrivacy
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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